22 #include <linux/kernel.h>
35 #include <linux/videodev2.h>
36 #include <linux/input.h>
46 #include <mach/hardware.h>
47 #include <mach/irqs.h>
49 #include <mach/common.h>
54 #include <asm/traps.h>
62 static struct resource smsc9220_resources[] = {
65 .end = 0x14000000 +
SZ_64K - 1,
85 .platform_data = &smsc9220_platdata,
87 .resource = smsc9220_resources,
88 .num_resources =
ARRAY_SIZE(smsc9220_resources),
108 static struct resource keysc_resources[] = {
112 .end = 0xe61b0098 - 1,
125 .resource = keysc_resources,
127 .platform_data = &keysc_platdata,
132 static struct resource fsi_resources[] = {
136 .end = 0xEC230400 - 1,
149 .resource = fsi_resources,
159 static struct resource sh_mmcif_resources[] = {
189 .coherent_dma_mask = 0xffffffff,
190 .platform_data = &sh_mmcif_platdata,
192 .num_resources =
ARRAY_SIZE(sh_mmcif_resources),
193 .resource = sh_mmcif_resources,
197 static struct resource irda_resources[] = {
200 .end = 0xE6D01FD4 - 1,
212 .resource = irda_resources,
216 static unsigned char lcd_backlight_seq[3][2] = {
222 static void lcd_backlight_on(
void)
229 for (k = 0; a && k < 3; k++) {
231 msg.buf = &lcd_backlight_seq[
k][0];
239 static void lcd_backlight_reset(
void)
249 .name =
"R63302(QHD)",
266 .interface_type =
RGB24,
270 .lcd_modes = lcdc0_modes,
275 .display_on = lcd_backlight_on,
276 .display_off = lcd_backlight_reset,
281 static struct resource lcdc0_resources[] = {
295 .name =
"sh_mobile_lcdc_fb",
297 .resource = lcdc0_resources,
300 .platform_data = &lcdc0_info,
301 .coherent_dma_mask = ~0,
306 static struct resource mipidsi0_resources[] = {
331 goto sh_mipi_set_dot_clock_pck_err;
337 goto sh_mipi_set_dot_clock_phy_err;
353 sh_mipi_set_dot_clock_phy_err:
355 sh_mipi_set_dot_clock_pck_err:
361 .lcd_chan = &lcdc0_info.
ch[0],
368 .set_dot_clock = sh_mipi_set_dot_clock,
372 .name =
"sh-mipi-dsi",
373 .num_resources =
ARRAY_SIZE(mipidsi0_resources),
374 .resource = mipidsi0_resources,
377 .platform_data = &mipidsi0_info,
398 static struct resource sdhi0_resources[] = {
423 .name =
"sh_mobile_sdhi",
426 .resource = sdhi0_resources,
428 .platform_data = &sdhi0_info,
443 .num_consumer_supplies =
ARRAY_SIZE(cn4_power_consumers),
444 .consumer_supplies = cn4_power_consumers,
448 .supply_name =
"CN4 SD/MMC Vdd",
449 .microvolts = 3300000,
452 .init_data = &cn4_power_init_data,
456 .name =
"reg-fixed-voltage",
459 .platform_data = &cn4_power_info,
465 static int power_gpio = -
EINVAL;
467 if (power_gpio < 0) {
490 .set_pwr = ag5evm_sdhi1_set_pwr,
493 static struct resource sdhi1_resources[] = {
518 .name =
"sh_mobile_sdhi",
521 .platform_data = &sh_sdhi1_info,
524 .resource = sdhi1_resources,
540 static void __init ag5evm_init(
void)
543 ARRAY_SIZE(fixed1v8_power_consumers), 1800000);
545 ARRAY_SIZE(fixed2v8_power_consumers), 3300000);
624 lcd_backlight_reset();
643 #ifdef CONFIG_CACHE_L2X0
658 .init_machine = ag5evm_init,
659 .init_late = shmobile_init_late,