aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2007-10-14 21:36:45 -0400
committerPaul Mundt <lethal@linux-sh.org>2007-10-29 19:44:12 -0400
commitc6f93a340ffe90aec3759a2eea8f9167123b310a (patch)
tree99044df1de430f0e20857e43fc845ae42f010b7d /arch/sh
parent82798a17ad40df827d465329a20ace80497f9b32 (diff)
sh: add support for ax88796 and 93cx6 to highlander boards
This patch adds support for the ax88796 driver on highlander boards. Implemented using the 93cx6 EEPROM support introduced by commit-id 89e536a190f90d038bae7905a0c582cb7089b739. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/boards/renesas/r7780rp/setup.c40
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
140static struct ax_plat_data ax88796_platdata = {
141 .flags = AXFLG_HAS_93CX6,
142 .wordlength = 2,
143 .dcr_val = 0x1,
144 .rcr_val = 0x40,
145};
146
147static 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
165static 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
139static struct platform_device *r7780rp_devices[] __initdata = { 178static 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
146static int __init r7780rp_devices_setup(void) 186static int __init r7780rp_devices_setup(void)