aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorKuninori Morimoto <morimoto.kuninori@renesas.com>2010-02-23 03:19:14 -0500
committerPaul Mundt <lethal@linux-sh.org>2010-02-25 02:31:28 -0500
commitbbb892aac4724b7cc6e1626665310eddfd747235 (patch)
tree4c805c1665c8b0fd8f61ea4e509e625aa884289c /arch
parent263657168549075b57ecfbf730738105d1af8b65 (diff)
sh: ms7724: Add sh_sir support
Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/boards/mach-se/7724/setup.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c
index 1f6cf8604943..6419f27a9ef2 100644
--- a/arch/sh/boards/mach-se/7724/setup.c
+++ b/arch/sh/boards/mach-se/7724/setup.c
@@ -489,6 +489,26 @@ static struct platform_device sdhi1_cn8_device = {
489 }, 489 },
490}; 490};
491 491
492/* IrDA */
493static struct resource irda_resources[] = {
494 [0] = {
495 .name = "IrDA",
496 .start = 0xA45D0000,
497 .end = 0xA45D0049,
498 .flags = IORESOURCE_MEM,
499 },
500 [1] = {
501 .start = 20,
502 .flags = IORESOURCE_IRQ,
503 },
504};
505
506static struct platform_device irda_device = {
507 .name = "sh_sir",
508 .num_resources = ARRAY_SIZE(irda_resources),
509 .resource = irda_resources,
510};
511
492static struct platform_device *ms7724se_devices[] __initdata = { 512static struct platform_device *ms7724se_devices[] __initdata = {
493 &heartbeat_device, 513 &heartbeat_device,
494 &smc91x_eth_device, 514 &smc91x_eth_device,
@@ -503,6 +523,7 @@ static struct platform_device *ms7724se_devices[] __initdata = {
503 &fsi_device, 523 &fsi_device,
504 &sdhi0_cn7_device, 524 &sdhi0_cn7_device,
505 &sdhi1_cn8_device, 525 &sdhi1_cn8_device,
526 &irda_device,
506}; 527};
507 528
508/* I2C device */ 529/* I2C device */
@@ -599,6 +620,7 @@ static int __init devices_setup(void)
599 ~((1 << 1) | /* LAN */ 620 ~((1 << 1) | /* LAN */
600 (1 << 6) | /* VIDEO DAC */ 621 (1 << 6) | /* VIDEO DAC */
601 (1 << 7) | /* AK4643 */ 622 (1 << 7) | /* AK4643 */
623 (1 << 8) | /* IrDA */
602 (1 << 12) | /* USB0 */ 624 (1 << 12) | /* USB0 */
603 (1 << 14)), /* RMII */ 625 (1 << 14)), /* RMII */
604 FPGA_OUT); 626 FPGA_OUT);
@@ -788,6 +810,10 @@ static int __init devices_setup(void)
788 gpio_request(GPIO_FN_SDHI1CMD, NULL); 810 gpio_request(GPIO_FN_SDHI1CMD, NULL);
789 gpio_request(GPIO_FN_SDHI1CLK, NULL); 811 gpio_request(GPIO_FN_SDHI1CLK, NULL);
790 812
813 /* enable IrDA */
814 gpio_request(GPIO_FN_IRDA_OUT, NULL);
815 gpio_request(GPIO_FN_IRDA_IN, NULL);
816
791 /* 817 /*
792 * enable SH-Eth 818 * enable SH-Eth
793 * 819 *