25 #include <linux/i2c.h>
27 #include <linux/input.h>
38 #include <linux/videodev2.h>
41 #include <mach/irqs.h>
43 #include <mach/common.h>
53 #define GPIO_PCF8575_BASE (GPIO_NR)
54 #define GPIO_PCF8575_PORT10 (GPIO_NR + 8)
55 #define GPIO_PCF8575_PORT11 (GPIO_NR + 9)
56 #define GPIO_PCF8575_PORT12 (GPIO_NR + 10)
57 #define GPIO_PCF8575_PORT13 (GPIO_NR + 11)
58 #define GPIO_PCF8575_PORT14 (GPIO_NR + 12)
59 #define GPIO_PCF8575_PORT15 (GPIO_NR + 13)
60 #define GPIO_PCF8575_PORT16 (GPIO_NR + 14)
77 static struct resource smsc9221_resources[] = {
99 .platform_data = &smsc9221_platdata,
101 .resource = smsc9221_resources,
102 .num_resources =
ARRAY_SIZE(smsc9221_resources),
111 static struct resource usb_resources[] = {
114 .end = 0x1001ffff - 1,
124 .name =
"r8a66597_hcd",
126 .platform_data = &usb_host_data,
128 .coherent_dma_mask = 0xffffffff,
131 .resource = usb_resources,
141 #define IRQ15 intcs_evt2irq(0x03e0)
142 #define USB_PHY_MODE (1 << 4)
143 #define USB_PHY_INT_EN ((1 << 3) | (1 << 2))
144 #define USB_PHY_ON (1 << 1)
145 #define USB_PHY_OFF (1 << 0)
146 #define USB_PHY_INT_CLR (USB_PHY_ON | USB_PHY_OFF)
148 #define usbhs_get_priv(pdev) \
149 container_of(renesas_usbhs_get_info(pdev), struct usbhs_private, info)
193 dev_name(&pdev->
dev), pdev);
215 static u32 usbhs_pipe_cfg[] = {
236 .cr2 =
IOMEM(0xe605810c),
238 .platform_callback = {
239 .hardware_init = usbhs_hardware_init,
240 .hardware_exit = usbhs_hardware_exit,
241 .get_id = usbhs_get_id,
242 .phy_reset = usbhs_phy_reset,
243 .get_vbus = usbhs_get_vbus,
248 .pipe_type = usbhs_pipe_cfg,
254 static struct resource usbhs_resources[] = {
257 .end = 0xE68900e6 - 1,
268 .name =
"renesas_usbhs",
272 .coherent_dma_mask = 0xffffffff,
273 .platform_data = &usbhs_private.
info,
276 .resource = usbhs_resources,
281 .name =
"WVGA Panel",
298 .interface_type =
RGB24,
299 .lcd_modes = &kzm_lcdc_mode,
310 static struct resource lcdc_resources[] = {
324 .name =
"sh_mobile_lcdc_fb",
326 .resource = lcdc_resources,
328 .platform_data = &lcdc_info,
329 .coherent_dma_mask = ~0,
341 static struct resource sh_mmcif_resources[] = {
369 .coherent_dma_mask = 0xffffffff,
370 .platform_data = &sh_mmcif_platdata,
372 .num_resources =
ARRAY_SIZE(sh_mmcif_resources),
373 .resource = sh_mmcif_resources,
392 static struct resource sdhi0_resources[] = {
417 .name =
"sh_mobile_sdhi",
419 .resource = sdhi0_resources,
421 .platform_data = &sdhi0_info,
435 static struct resource sdhi2_resources[] = {
460 .name =
"sh_mobile_sdhi",
463 .resource = sdhi2_resources,
465 .platform_data = &sdhi2_info,
470 #define GPIO_KEY(c, g, d) { .code = c, .gpio = g, .desc = d, .active_low = 1 }
483 .buttons = gpio_buttons,
490 .platform_data = &gpio_key_info,
501 static struct resource fsi_resources[] = {
505 .end = 0xEC230400 - 1,
518 .resource = fsi_resources,
520 .platform_data = &fsi_info,
533 .card =
"FSI2A-AK4648",
534 .cpu_dai =
"fsia-dai",
535 .codec =
"ak4642-codec.0-0012",
536 .platform =
"sh_fsi2",
537 .codec_dai =
"ak4642-hifi",
538 .init = &fsi2_ak4648_init_info,
542 .name =
"asoc-simple-card",
544 .platform_data = &fsi2_ak4648_info,
573 .platform_data = &pcf8575_pdata,
595 static int __init as3711_enable_lcdc_backlight(
void)
614 if (!machine_is_kzm9g())
627 if (0xff ==
msg.buf[0]) {
634 pr_err(
"i2c transfer fail\n");
643 static void __init kzm_init(
void)
646 ARRAY_SIZE(fixed1v8_power_consumers), 1800000);
648 ARRAY_SIZE(fixed2v8_power_consumers), 2800000);
752 #ifdef CONFIG_CACHE_L2X0
765 static void kzm9g_restart(
char mode,
const char *
cmd)
767 #define RESCNT2 IOMEM(0xe6188020)
769 writel((1 << 31), RESCNT2);
772 static const char *kzm9g_boards_compat_dt[] __initdata = {
784 .init_machine = kzm_init,
785 .init_late = shmobile_init_late,
787 .restart = kzm9g_restart,
788 .dt_compat = kzm9g_boards_compat_dt,