35 #define LAN9115_READY (__raw_readl(0xA8000084UL) & 0x00000001UL)
38 static int __init ethernet_reset_finished(
void)
45 for (i = 0; i < 10; ++
i) {
54 static void __init reset_ethernet(
void)
65 static void __init setup_chip_select(
void)
98 static void __init setup_port_multiplexing(
void)
164 #if CONFIG_SH_MAGIC_PANEL_R2_VERSION == 2
166 #elif CONFIG_SH_MAGIC_PANEL_R2_VERSION == 3
169 #error Unknown revision of PLATFORM_MP_R2
212 static void __init mpr2_setup(
char **cmdline_p)
239 setup_port_multiplexing();
244 CONFIG_SH_MAGIC_PANEL_R2_VERSION);
246 if (ethernet_reset_finished() == 0)
250 static struct resource smsc911x_resources[] = {
273 .num_resources =
ARRAY_SIZE(smsc911x_resources),
274 .resource = smsc911x_resources,
276 .platform_data = &smsc911x_config,
280 static struct resource heartbeat_resources[] = {
296 .platform_data = &heartbeat_data,
298 .num_resources =
ARRAY_SIZE(heartbeat_resources),
299 .resource = heartbeat_resources,
305 .name =
"Bootloader",
306 .offset = 0x00000000
UL,
325 .parts = mpr2_partitions,
330 static struct resource flash_resource = {
337 .
name =
"physmap-flash",
339 .resource = &flash_resource,
342 .platform_data = &flash_data,
357 static int __init mpr2_devices_setup(
void)
368 static void __init init_mpr2_IRQ(
void)
391 .mv_setup = mpr2_setup,
392 .mv_init_irq = init_mpr2_IRQ,