diff options
author | sfking@fdwdc.com <sfking@fdwdc.com> | 2009-06-19 21:11:03 -0400 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2009-09-09 22:01:22 -0400 |
commit | afde8560b4217338c17b7dbc9e9d7676c1b3a5ff (patch) | |
tree | af262b5b77e26894b4c5a2d814cc3b26847dd334 /arch/m68k/include/asm/m520xsim.h | |
parent | 24a1836ecd471409aeb5362f63032126ebe7fb10 (diff) |
generic GPIO support for the Freescale Coldfire 520x.
Add support for the 520x.
Signed-off-by: Steven King <sfking@fdwdc.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k/include/asm/m520xsim.h')
-rw-r--r-- | arch/m68k/include/asm/m520xsim.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/m520xsim.h b/arch/m68k/include/asm/m520xsim.h index 83bbcfd6e8f..e80b6a54ea9 100644 --- a/arch/m68k/include/asm/m520xsim.h +++ b/arch/m68k/include/asm/m520xsim.h | |||
@@ -41,6 +41,62 @@ | |||
41 | #define MCFSIM_SDCS0 0x000a8110 /* SDRAM Chip Select 0 Configuration */ | 41 | #define MCFSIM_SDCS0 0x000a8110 /* SDRAM Chip Select 0 Configuration */ |
42 | #define MCFSIM_SDCS1 0x000a8114 /* SDRAM Chip Select 1 Configuration */ | 42 | #define MCFSIM_SDCS1 0x000a8114 /* SDRAM Chip Select 1 Configuration */ |
43 | 43 | ||
44 | #define MCFEPORT_EPDDR 0xFC088002 | ||
45 | #define MCFEPORT_EPDR 0xFC088004 | ||
46 | #define MCFEPORT_EPPDR 0xFC088005 | ||
47 | |||
48 | #define MCFGPIO_PODR_BUSCTL 0xFC0A4000 | ||
49 | #define MCFGPIO_PODR_BE 0xFC0A4001 | ||
50 | #define MCFGPIO_PODR_CS 0xFC0A4002 | ||
51 | #define MCFGPIO_PODR_FECI2C 0xFC0A4003 | ||
52 | #define MCFGPIO_PODR_QSPI 0xFC0A4004 | ||
53 | #define MCFGPIO_PODR_TIMER 0xFC0A4005 | ||
54 | #define MCFGPIO_PODR_UART 0xFC0A4006 | ||
55 | #define MCFGPIO_PODR_FECH 0xFC0A4007 | ||
56 | #define MCFGPIO_PODR_FECL 0xFC0A4008 | ||
57 | |||
58 | #define MCFGPIO_PDDR_BUSCTL 0xFC0A400C | ||
59 | #define MCFGPIO_PDDR_BE 0xFC0A400D | ||
60 | #define MCFGPIO_PDDR_CS 0xFC0A400E | ||
61 | #define MCFGPIO_PDDR_FECI2C 0xFC0A400F | ||
62 | #define MCFGPIO_PDDR_QSPI 0xFC0A4010 | ||
63 | #define MCFGPIO_PDDR_TIMER 0xFC0A4011 | ||
64 | #define MCFGPIO_PDDR_UART 0xFC0A4012 | ||
65 | #define MCFGPIO_PDDR_FECH 0xFC0A4013 | ||
66 | #define MCFGPIO_PDDR_FECL 0xFC0A4014 | ||
67 | |||
68 | #define MCFGPIO_PPDSDR_BUSCTL 0xFC0A401A | ||
69 | #define MCFGPIO_PPDSDR_BE 0xFC0A401B | ||
70 | #define MCFGPIO_PPDSDR_CS 0xFC0A401C | ||
71 | #define MCFGPIO_PPDSDR_FECI2C 0xFC0A401D | ||
72 | #define MCFGPIO_PPDSDR_QSPI 0xFC0A401E | ||
73 | #define MCFGPIO_PPDSDR_TIMER 0xFC0A401F | ||
74 | #define MCFGPIO_PPDSDR_UART 0xFC0A4021 | ||
75 | #define MCFGPIO_PPDSDR_FECH 0xFC0A4021 | ||
76 | #define MCFGPIO_PPDSDR_FECL 0xFC0A4022 | ||
77 | |||
78 | #define MCFGPIO_PCLRR_BUSCTL 0xFC0A4024 | ||
79 | #define MCFGPIO_PCLRR_BE 0xFC0A4025 | ||
80 | #define MCFGPIO_PCLRR_CS 0xFC0A4026 | ||
81 | #define MCFGPIO_PCLRR_FECI2C 0xFC0A4027 | ||
82 | #define MCFGPIO_PCLRR_QSPI 0xFC0A4028 | ||
83 | #define MCFGPIO_PCLRR_TIMER 0xFC0A4029 | ||
84 | #define MCFGPIO_PCLRR_UART 0xFC0A402A | ||
85 | #define MCFGPIO_PCLRR_FECH 0xFC0A402B | ||
86 | #define MCFGPIO_PCLRR_FECL 0xFC0A402C | ||
87 | /* | ||
88 | * Generic GPIO support | ||
89 | */ | ||
90 | #define MCFGPIO_PODR MCFGPIO_PODR_BUSCTL | ||
91 | #define MCFGPIO_PDDR MCFGPIO_PDDR_BUSCTL | ||
92 | #define MCFGPIO_PPDR MCFGPIO_PPDSDR_BUSCTL | ||
93 | #define MCFGPIO_SETR MCFGPIO_PPDSDR_BUSCTL | ||
94 | #define MCFGPIO_CLRR MCFGPIO_PCLRR_BUSCTL | ||
95 | |||
96 | #define MCFGPIO_PIN_MAX 80 | ||
97 | #define MCFGPIO_IRQ_MAX 8 | ||
98 | #define MCFGPIO_IRQ_VECBASE MCFINT_VECBASE | ||
99 | /****************************************************************************/ | ||
44 | 100 | ||
45 | #define MCF_GPIO_PAR_UART (0xA4036) | 101 | #define MCF_GPIO_PAR_UART (0xA4036) |
46 | #define MCF_GPIO_PAR_FECI2C (0xA4033) | 102 | #define MCF_GPIO_PAR_FECI2C (0xA4033) |