[Top] [All Lists]

[PATCH 0/2] RFC: Alchemy: multiple timer base address support

To: Linux-MIPS <>, Ralf Baechle <>
Subject: [PATCH 0/2] RFC: Alchemy: multiple timer base address support
From: Manuel Lauss <>
Date: Sat, 22 Aug 2009 18:09:59 +0200
Cc: Manuel Lauss <>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=zhRWrqz1duPgK2Cb6jUqlfvzMo9dvfiUHQwAHEUiWno=; b=G9+U9dOLl38M7m1hj6tGIqzktackaDJpdPBh0ynCGNX8qZXNage2MTr42J33Bvuuux BRdVHOmib2Ucnio34jZwYJLS91oTZus52V+XsUpmG5jGK7N394Fsat8eY28LxpjoqjVh jEgBfV0s1vFUqN+9CnVbexDPFP+pYqROnQA9A=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=DYHjSRQSm7kiLsZ6IWvn52N1Md3AOWiJgPJX3a4FxlNS+6nGxZCDK97cLkyQA2FSRd ooRG4IqgI25is86d3iyQAZiqeJcM7KNEVEshoZuXQsn+6d1NvW6NhjE/C/Jvi8qfEx2q L+PdAbTkL0kaqQ1bJIyMY7OCf0ML1q+or9674=
Original-recipient: rfc822;
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(-)

<Prev in Thread] Current Thread [Next in Thread>