aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-mips/txx9/tx4927.h
diff options
context:
space:
mode:
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>2008-07-11 10:27:54 -0400
committerRalf Baechle <ralf@linux-mips.org>2008-07-15 13:44:35 -0400
commitedcaf1a6a77315562e9781245cc8e028c9a921dc (patch)
treea20a0a85071fa283c36db87a41d1a7e091a35781 /include/asm-mips/txx9/tx4927.h
parent766891565bdaf605ea4aebe3e75de77e848254d0 (diff)
[MIPS] TXx9: Make single kernel can support multiple boards
Make single kernel can be used on RBTX4927/37/38. Also make some SoC-specific code independent from board-specific code. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/txx9/tx4927.h')
-rw-r--r--include/asm-mips/txx9/tx4927.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/include/asm-mips/txx9/tx4927.h b/include/asm-mips/txx9/tx4927.h
index c0382fd2ae7f..46d60afc038b 100644
--- a/include/asm-mips/txx9/tx4927.h
+++ b/include/asm-mips/txx9/tx4927.h
@@ -32,20 +32,6 @@
32#include <asm/txx9irq.h> 32#include <asm/txx9irq.h>
33#include <asm/txx9/tx4927pcic.h> 33#include <asm/txx9/tx4927pcic.h>
34 34
35#define TX4927_IRQ_CP0_BEG MIPS_CPU_IRQ_BASE
36#define TX4927_IRQ_CP0_END (MIPS_CPU_IRQ_BASE + 8 - 1)
37
38#define TX4927_IRQ_PIC_BEG TXX9_IRQ_BASE
39#define TX4927_IRQ_PIC_END (TXX9_IRQ_BASE + TXx9_MAX_IR - 1)
40
41
42#define TX4927_IRQ_USER0 (TX4927_IRQ_CP0_BEG+0)
43#define TX4927_IRQ_USER1 (TX4927_IRQ_CP0_BEG+1)
44#define TX4927_IRQ_NEST_PIC_ON_CP0 (TX4927_IRQ_CP0_BEG+2)
45#define TX4927_IRQ_CPU_TIMER (TX4927_IRQ_CP0_BEG+7)
46
47#define TX4927_IRQ_NEST_EXT_ON_PIC (TX4927_IRQ_PIC_BEG+3)
48
49#define TX4927_SDRAMC_REG 0xff1f8000 35#define TX4927_SDRAMC_REG 0xff1f8000
50#define TX4927_EBUSC_REG 0xff1f9000 36#define TX4927_EBUSC_REG 0xff1f9000
51#define TX4927_PCIC_REG 0xff1fd000 37#define TX4927_PCIC_REG 0xff1fd000
@@ -54,10 +40,14 @@
54#define TX4927_NR_TMR 3 40#define TX4927_NR_TMR 3
55#define TX4927_TMR_REG(ch) (0xff1ff000 + (ch) * 0x100) 41#define TX4927_TMR_REG(ch) (0xff1ff000 + (ch) * 0x100)
56 42
43#define TX4927_IR_INT(n) (2 + (n))
44#define TX4927_IR_SIO(n) (8 + (n))
57#define TX4927_IR_PCIC 16 45#define TX4927_IR_PCIC 16
58#define TX4927_IR_PCIERR 22 46#define TX4927_IR_PCIERR 22
59#define TX4927_NUM_IR 32 47#define TX4927_NUM_IR 32
60 48
49#define TX4927_IRC_INT 2 /* IP[2] in Status register */
50
61struct tx4927_sdramc_reg { 51struct tx4927_sdramc_reg {
62 volatile unsigned long long cr[4]; 52 volatile unsigned long long cr[4];
63 volatile unsigned long long unused0[4]; 53 volatile unsigned long long unused0[4];
@@ -224,5 +214,6 @@ static inline void tx4927_ccfg_change(__u64 change, __u64 new)
224 214
225int tx4927_report_pciclk(void); 215int tx4927_report_pciclk(void);
226int tx4927_pciclk66_setup(void); 216int tx4927_pciclk66_setup(void);
217void tx4927_irq_init(void);
227 218
228#endif /* __ASM_TXX9_TX4927_H */ 219#endif /* __ASM_TXX9_TX4927_H */