29 static struct resource heartbeat_resource = {
35 static unsigned char heartbeat_bit_pos[] = { 0, 1, 2, 3 };
47 .platform_data = &heartbeat_data,
50 .resource = &heartbeat_resource,
54 #define GBECONT 0xffc10100
55 #define GBECONT_RMII1 BIT(17)
56 #define GBECONT_RMII0 BIT(16)
57 static void sh7757_eth_set_mdio_gate(
void *
addr)
59 if (((
unsigned long)addr & 0x00000fff) < 0x0800)
65 static struct resource sh_eth0_resources[] = {
81 .set_mdio_gate = sh7757_eth_set_mdio_gate,
86 .resource = sh_eth0_resources,
88 .num_resources =
ARRAY_SIZE(sh_eth0_resources),
90 .platform_data = &sh7757_eth0_pdata,
94 static struct resource sh_eth1_resources[] = {
110 .set_mdio_gate = sh7757_eth_set_mdio_gate,
115 .resource = sh_eth1_resources,
117 .num_resources =
ARRAY_SIZE(sh_eth1_resources),
119 .platform_data = &sh7757_eth1_pdata,
123 static void sh7757_eth_giga_set_mdio_gate(
void *
addr)
125 if (((
unsigned long)addr & 0x00000fff) < 0x0800) {
134 static struct resource sh_eth_giga0_resources[] = {
155 .set_mdio_gate = sh7757_eth_giga_set_mdio_gate,
161 .resource = sh_eth_giga0_resources,
163 .num_resources =
ARRAY_SIZE(sh_eth_giga0_resources),
165 .platform_data = &sh7757_eth_giga0_pdata,
169 static struct resource sh_eth_giga1_resources[] = {
190 .set_mdio_gate = sh7757_eth_giga_set_mdio_gate,
196 .resource = sh_eth_giga1_resources,
198 .num_resources =
ARRAY_SIZE(sh_eth_giga1_resources),
200 .platform_data = &sh7757_eth_giga1_pdata,
214 static struct resource sh_mmcif_resources[] = {
243 .platform_data = &sh_mmcif_plat,
245 .num_resources =
ARRAY_SIZE(sh_mmcif_resources),
246 .resource = sh_mmcif_resources,
256 static struct resource sdhi_resources[] = {
269 .name =
"sh_mobile_sdhi",
271 .resource = sdhi_resources,
274 .platform_data = &sdhi_info,
284 .platform_callback = {
285 .get_id = usbhs0_get_id,
292 static struct resource usb0_resources[] = {
306 .name =
"renesas_usbhs",
309 .platform_data = &usb0_data,
312 .resource = usb0_resources,
319 &sh7757_eth_giga0_device,
320 &sh7757_eth_giga1_device,
334 .max_speed_hz = 25000000,
337 .platform_data = &spi_flash_data,
341 static int __init sh7757lcr_devices_setup(
void)
344 ARRAY_SIZE(fixed3v3_power_consumers), 3300000);
590 static void __init sh7757lcr_setup(
char **cmdline_p)
595 static int sh7757lcr_mode_pins(
void)
610 .mv_name =
"SH7757LCR",
611 .mv_setup = sh7757lcr_setup,
613 .mv_mode_pins = sh7757lcr_mode_pins,