The Au1300 has the SYS_ block, which incorporates the 32kHz timer, PM support and other stuff, at a base address different from all previous models. The following two patches add support for runtime detection of CPU type and setup the timer on the correct base address (and as preparation for a later patchseries, also irq number for RTCMATCH2). Patch overview: #1 adds a simple CPU subtype enumerator, #2 implements the core changes. Run-tested on DB1200. Manuel Lauss (2): Alchemy: simple cpu subtype detector. Alchemy: timer: support multiple SYS_BASE addresses arch/mips/alchemy/common/time.c | 137 ++++++++++++++++++++-------- arch/mips/alchemy/devboards/pm.c | 58 +++++++----- arch/mips/include/asm/mach-au1x00/au1000.h | 66 ++++++++++++-- 3 files changed, 191 insertions(+), 70 deletions(-)