diff options
Diffstat (limited to 'arch/sh/boards/renesas/r7780rp/setup.c')
-rw-r--r-- | arch/sh/boards/renesas/r7780rp/setup.c | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/arch/sh/boards/renesas/r7780rp/setup.c b/arch/sh/boards/renesas/r7780rp/setup.c index afe9de73666a..2a9ac6bcd8d6 100644 --- a/arch/sh/boards/renesas/r7780rp/setup.c +++ b/arch/sh/boards/renesas/r7780rp/setup.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <linux/platform_device.h> | 17 | #include <linux/platform_device.h> |
18 | #include <linux/pata_platform.h> | 18 | #include <linux/pata_platform.h> |
19 | #include <net/ax88796.h> | ||
19 | #include <asm/machvec.h> | 20 | #include <asm/machvec.h> |
20 | #include <asm/r7780rp.h> | 21 | #include <asm/r7780rp.h> |
21 | #include <asm/clock.h> | 22 | #include <asm/clock.h> |
@@ -136,11 +137,50 @@ static struct platform_device heartbeat_device = { | |||
136 | .resource = heartbeat_resources, | 137 | .resource = heartbeat_resources, |
137 | }; | 138 | }; |
138 | 139 | ||
140 | static struct ax_plat_data ax88796_platdata = { | ||
141 | .flags = AXFLG_HAS_93CX6, | ||
142 | .wordlength = 2, | ||
143 | .dcr_val = 0x1, | ||
144 | .rcr_val = 0x40, | ||
145 | }; | ||
146 | |||
147 | static struct resource ax88796_resources[] = { | ||
148 | { | ||
149 | #ifdef CONFIG_SH_R7780RP | ||
150 | .start = 0xa5800400, | ||
151 | .end = 0xa5800400 + (0x20 * 0x2) - 1, | ||
152 | #else | ||
153 | .start = 0xa4100400, | ||
154 | .end = 0xa4100400 + (0x20 * 0x2) - 1, | ||
155 | #endif | ||
156 | .flags = IORESOURCE_MEM, | ||
157 | }, | ||
158 | { | ||
159 | .start = IRQ_AX88796, | ||
160 | .end = IRQ_AX88796, | ||
161 | .flags = IORESOURCE_IRQ, | ||
162 | }, | ||
163 | }; | ||
164 | |||
165 | static struct platform_device ax88796_device = { | ||
166 | .name = "ax88796", | ||
167 | .id = 0, | ||
168 | |||
169 | .dev = { | ||
170 | .platform_data = &ax88796_platdata, | ||
171 | }, | ||
172 | |||
173 | .num_resources = ARRAY_SIZE(ax88796_resources), | ||
174 | .resource = ax88796_resources, | ||
175 | }; | ||
176 | |||
177 | |||
139 | static struct platform_device *r7780rp_devices[] __initdata = { | 178 | static struct platform_device *r7780rp_devices[] __initdata = { |
140 | &r8a66597_usb_host_device, | 179 | &r8a66597_usb_host_device, |
141 | &m66592_usb_peripheral_device, | 180 | &m66592_usb_peripheral_device, |
142 | &cf_ide_device, | 181 | &cf_ide_device, |
143 | &heartbeat_device, | 182 | &heartbeat_device, |
183 | &ax88796_device, | ||
144 | }; | 184 | }; |
145 | 185 | ||
146 | static int __init r7780rp_devices_setup(void) | 186 | static int __init r7780rp_devices_setup(void) |