diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-11 12:19:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-11 12:19:02 -0400 |
commit | 835a1c092432b3293ba6c4dec45ee6869c6f61fd (patch) | |
tree | a48582e4e4de3a8924b700c5ccaae78cd299cd73 /arch/mips/rb532/devices.c | |
parent | d3570a5a7b8d0604fa012129f92637dc1534f62c (diff) | |
parent | 9609e74093abd9f61fb1d20a8915a8ea87c77d5a (diff) |
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: (49 commits)
MIPS: RB532: provide GPIO_BUILTIN_NR and irq_to_gpio/gpio_to_irq
MIPS: Move ptrace prototypes to ptrace.h
MIPS: Ptrace support for HARDWARE_WATCHPOINTS
MIPS: Scheduler support for HARDWARE_WATCHPOINTS.
MIPS: Watch exception handling for HARDWARE_WATCHPOINTS.
MIPS: Probe watch registers and report configuration.
MIPS: Add HARDWARE_WATCHPOINTS definitions and support code.
MIPS: Add HARDWARE_WATCHPOINTS configure option.
MIPS: Replace use of <asm-generic/uaccess.h> with native implementations.
MIPS: TXx9: Add TX4939 ATA support (v2)
MIPS: Rewrite spinlocks to ticket locks.
MIPS: IP checksums: Optimize adjust of sum on buffers of odd alignment.
MIPS: IP checksums: Remove unncessary .set pseudos
MIPS: IP checksums: Remove unncessary folding of sum to 16 bit.
MIPS: Move headfiles to new location below arch/mips/include
MIPS: Alchemy: rename directory
MIPS: Optimize get_user and put_user for 64-bit
MIPS: TXx9: Implement prom_free_prom_memory
MIPS: TXx9: Add RBTX4939 board support
MIPS: TXx9: Add TX4939 SoC support
...
Diffstat (limited to 'arch/mips/rb532/devices.c')
-rw-r--r-- | arch/mips/rb532/devices.c | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/arch/mips/rb532/devices.c b/arch/mips/rb532/devices.c index 82ab395efa33..31619c601b11 100644 --- a/arch/mips/rb532/devices.c +++ b/arch/mips/rb532/devices.c | |||
@@ -34,21 +34,11 @@ | |||
34 | #include <asm/mach-rc32434/rb.h> | 34 | #include <asm/mach-rc32434/rb.h> |
35 | #include <asm/mach-rc32434/integ.h> | 35 | #include <asm/mach-rc32434/integ.h> |
36 | #include <asm/mach-rc32434/gpio.h> | 36 | #include <asm/mach-rc32434/gpio.h> |
37 | 37 | #include <asm/mach-rc32434/irq.h> | |
38 | #define ETH0_DMA_RX_IRQ (GROUP1_IRQ_BASE + 0) | ||
39 | #define ETH0_DMA_TX_IRQ (GROUP1_IRQ_BASE + 1) | ||
40 | #define ETH0_RX_OVR_IRQ (GROUP3_IRQ_BASE + 9) | ||
41 | #define ETH0_TX_UND_IRQ (GROUP3_IRQ_BASE + 10) | ||
42 | 38 | ||
43 | #define ETH0_RX_DMA_ADDR (DMA0_BASE_ADDR + 0 * DMA_CHAN_OFFSET) | 39 | #define ETH0_RX_DMA_ADDR (DMA0_BASE_ADDR + 0 * DMA_CHAN_OFFSET) |
44 | #define ETH0_TX_DMA_ADDR (DMA0_BASE_ADDR + 1 * DMA_CHAN_OFFSET) | 40 | #define ETH0_TX_DMA_ADDR (DMA0_BASE_ADDR + 1 * DMA_CHAN_OFFSET) |
45 | 41 | ||
46 | /* NAND definitions */ | ||
47 | #define GPIO_RDY (1 << 0x08) | ||
48 | #define GPIO_WPX (1 << 0x09) | ||
49 | #define GPIO_ALE (1 << 0x0a) | ||
50 | #define GPIO_CLE (1 << 0x0b) | ||
51 | |||
52 | static struct resource korina_dev0_res[] = { | 42 | static struct resource korina_dev0_res[] = { |
53 | { | 43 | { |
54 | .name = "korina_regs", | 44 | .name = "korina_regs", |
@@ -94,15 +84,13 @@ static struct korina_device korina_dev0_data = { | |||
94 | }; | 84 | }; |
95 | 85 | ||
96 | static struct platform_device korina_dev0 = { | 86 | static struct platform_device korina_dev0 = { |
97 | .id = 0, | 87 | .id = -1, |
98 | .name = "korina", | 88 | .name = "korina", |
99 | .dev.platform_data = &korina_dev0_data, | 89 | .dev.platform_data = &korina_dev0_data, |
100 | .resource = korina_dev0_res, | 90 | .resource = korina_dev0_res, |
101 | .num_resources = ARRAY_SIZE(korina_dev0_res), | 91 | .num_resources = ARRAY_SIZE(korina_dev0_res), |
102 | }; | 92 | }; |
103 | 93 | ||
104 | #define CF_GPIO_NUM 13 | ||
105 | |||
106 | static struct resource cf_slot0_res[] = { | 94 | static struct resource cf_slot0_res[] = { |
107 | { | 95 | { |
108 | .name = "cf_membase", | 96 | .name = "cf_membase", |
@@ -116,11 +104,11 @@ static struct resource cf_slot0_res[] = { | |||
116 | }; | 104 | }; |
117 | 105 | ||
118 | static struct cf_device cf_slot0_data = { | 106 | static struct cf_device cf_slot0_data = { |
119 | .gpio_pin = 13 | 107 | .gpio_pin = CF_GPIO_NUM |
120 | }; | 108 | }; |
121 | 109 | ||
122 | static struct platform_device cf_slot0 = { | 110 | static struct platform_device cf_slot0 = { |
123 | .id = 0, | 111 | .id = -1, |
124 | .name = "pata-rb532-cf", | 112 | .name = "pata-rb532-cf", |
125 | .dev.platform_data = &cf_slot0_data, | 113 | .dev.platform_data = &cf_slot0_data, |
126 | .resource = cf_slot0_res, | 114 | .resource = cf_slot0_res, |
@@ -185,7 +173,7 @@ static struct mtd_partition rb532_partition_info[] = { | |||
185 | 173 | ||
186 | static struct platform_device rb532_led = { | 174 | static struct platform_device rb532_led = { |
187 | .name = "rb532-led", | 175 | .name = "rb532-led", |
188 | .id = 0, | 176 | .id = -1, |
189 | }; | 177 | }; |
190 | 178 | ||
191 | static struct gpio_keys_button rb532_gpio_btn[] = { | 179 | static struct gpio_keys_button rb532_gpio_btn[] = { |