aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorScott Jiang <scott.jiang.linux@gmail.com>2014-12-11 04:47:37 -0500
committerSteven Miao <realmz6@gmail.com>2015-04-23 09:34:32 -0400
commitb3df664b85c7926619346cddad3aefab6554e0b1 (patch)
treee7b34b1014697996dcb21e3217879857d6213ff2 /arch/blackfin
parentef7dcaf1e7bbf7adaaf45cac1c1d208929fb25e5 (diff)
bf609: add resources for lcd nl8048
Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com> Signed-off-by: Steven Miao <realmz6@gmail.com>
Diffstat (limited to 'arch/blackfin')
-rw-r--r--arch/blackfin/mach-bf609/boards/ezkit.c31
1 files changed, 30 insertions, 1 deletions
diff --git a/arch/blackfin/mach-bf609/boards/ezkit.c b/arch/blackfin/mach-bf609/boards/ezkit.c
index e41cb1d6f4ac..2c61fc0c98f9 100644
--- a/arch/blackfin/mach-bf609/boards/ezkit.c
+++ b/arch/blackfin/mach-bf609/boards/ezkit.c
@@ -1207,6 +1207,35 @@ static struct platform_device bfin_display_device = {
1207}; 1207};
1208#endif 1208#endif
1209 1209
1210#if defined(CONFIG_FB_BF609_NL8048) \
1211 || defined(CONFIG_FB_BF609_NL8048_MODULE)
1212static struct resource nl8048_resources[] = {
1213 {
1214 .start = EPPI2_STAT,
1215 .end = EPPI2_STAT,
1216 .flags = IORESOURCE_MEM,
1217 },
1218 {
1219 .start = CH_EPPI2_CH0,
1220 .end = CH_EPPI2_CH0,
1221 .flags = IORESOURCE_DMA,
1222 },
1223 {
1224 .start = IRQ_EPPI2_STAT,
1225 .end = IRQ_EPPI2_STAT,
1226 .flags = IORESOURCE_IRQ,
1227 },
1228};
1229static struct platform_device bfin_fb_device = {
1230 .name = "bf609_nl8048",
1231 .num_resources = ARRAY_SIZE(nl8048_resources),
1232 .resource = nl8048_resources,
1233 .dev = {
1234 .platform_data = (void *)GPIO_PC15,
1235 },
1236};
1237#endif
1238
1210#if defined(CONFIG_BFIN_CRC) 1239#if defined(CONFIG_BFIN_CRC)
1211#define BFIN_CRC_NAME "bfin-crc" 1240#define BFIN_CRC_NAME "bfin-crc"
1212 1241
@@ -2107,7 +2136,7 @@ static struct pinctrl_map __initdata bfin_pinmux_map[] = {
2107 PIN_MAP_MUX_GROUP_DEFAULT("bfin-rotary", "pinctrl-adi2.0", NULL, "rotary"), 2136 PIN_MAP_MUX_GROUP_DEFAULT("bfin-rotary", "pinctrl-adi2.0", NULL, "rotary"),
2108 PIN_MAP_MUX_GROUP_DEFAULT("bfin_can.0", "pinctrl-adi2.0", NULL, "can0"), 2137 PIN_MAP_MUX_GROUP_DEFAULT("bfin_can.0", "pinctrl-adi2.0", NULL, "can0"),
2109 PIN_MAP_MUX_GROUP_DEFAULT("physmap-flash.0", "pinctrl-adi2.0", NULL, "smc0"), 2138 PIN_MAP_MUX_GROUP_DEFAULT("physmap-flash.0", "pinctrl-adi2.0", NULL, "smc0"),
2110 PIN_MAP_MUX_GROUP_DEFAULT("bf609_nl8048.2", "pinctrl-adi2.0", "ppi2_16bgrp", "ppi2"), 2139 PIN_MAP_MUX_GROUP_DEFAULT("bf609_nl8048.0", "pinctrl-adi2.0", "ppi2_16bgrp", "ppi2"),
2111 PIN_MAP_MUX_GROUP("bfin_display.0", "8bit", "pinctrl-adi2.0", "ppi2_8bgrp", "ppi2"), 2140 PIN_MAP_MUX_GROUP("bfin_display.0", "8bit", "pinctrl-adi2.0", "ppi2_8bgrp", "ppi2"),
2112 PIN_MAP_MUX_GROUP_DEFAULT("bfin_display.0", "pinctrl-adi2.0", "ppi2_16bgrp", "ppi2"), 2141 PIN_MAP_MUX_GROUP_DEFAULT("bfin_display.0", "pinctrl-adi2.0", "ppi2_16bgrp", "ppi2"),
2113 PIN_MAP_MUX_GROUP("bfin_display.0", "16bit", "pinctrl-adi2.0", "ppi2_16bgrp", "ppi2"), 2142 PIN_MAP_MUX_GROUP("bfin_display.0", "16bit", "pinctrl-adi2.0", "ppi2_16bgrp", "ppi2"),