19 #include <linux/i2c.h>
27 #include <linux/errno.h>
31 #include <asm/clock.h>
38 static struct resource heartbeat_resource = {
48 .resource = &heartbeat_resource,
65 .size = 4 * 1024 * 1024,
76 .parts = nor_flash_partitions,
80 static struct resource nor_flash_resources[] = {
89 .name =
"physmap-flash",
91 .platform_data = &nor_flash_data,
93 .num_resources =
ARRAY_SIZE(nor_flash_resources),
94 .resource = nor_flash_resources,
102 static struct resource r8a66597_usb_host_resources[] = {
116 .name =
"r8a66597_hcd",
120 .coherent_dma_mask = 0xffffffff,
121 .platform_data = &r8a66597_data,
123 .num_resources =
ARRAY_SIZE(r8a66597_usb_host_resources),
124 .resource = r8a66597_usb_host_resources,
127 static struct resource sm501_resources[] = {
172 .def_mode = &sm501_default_mode_pnl,
182 .def_mode = &sm501_default_mode_crt,
191 .fb_crt = &sm501_pdata_fbsub_crt,
192 .fb_pnl = &sm501_pdata_fbsub_pnl,
201 .mclk = 84 * 1000000,
202 .m1xclk = 112 * 1000000,
206 .init = &sm501_initdata,
207 .fb = &sm501_fb_pdata,
214 .platform_data = &sm501_platform_data,
217 .resource = sm501_resources,
220 static struct resource i2c_proto_resources[] = {
233 static struct resource i2c_resources[] = {
253 .name =
"i2c-pca-platform",
256 .platform_data = &i2c_platform_data,
259 .resource = i2c_resources,
265 &r8a66597_usb_host_device,
276 static int __init sh7785lcr_devices_setup(
void)
281 if (mach_is_sh7785lcr_pt()) {
282 i2c_device.
resource = i2c_proto_resources;
298 static int sh7785lcr_clk_init(
void)
312 static void sh7785lcr_power_off(
void)
329 static void __init sh7785lcr_setup(
char **cmdline_p)
333 printk(
KERN_INFO "Renesas Technology Corp. R0P7785LC0011RL support.\n");
349 static int sh7785lcr_mode_pins(
void)
372 .mv_name =
"SH7785LCR",
373 .mv_setup = sh7785lcr_setup,
374 .mv_clk_init = sh7785lcr_clk_init,
376 .mv_mode_pins = sh7785lcr_mode_pins,