aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorScott Jiang <scott.jiang.linux@gmail.com>2013-08-07 02:30:43 -0400
committerSteven Miao <realmz6@gmail.com>2013-09-12 22:42:34 -0400
commit4940c53d264c749c3b2a288e9e015584328fbb77 (patch)
tree09bb3959c0e041cf35f39a909e57cc76422db0ba /arch/blackfin
parent3036dccf2c2a5186bb50939f412c54c6c74a0fb0 (diff)
bf609: add adv7343 video encoder support
Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com>
Diffstat (limited to 'arch/blackfin')
-rw-r--r--arch/blackfin/mach-bf609/boards/ezkit.c54
1 files changed, 54 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf609/boards/ezkit.c b/arch/blackfin/mach-bf609/boards/ezkit.c
index 0bc47231540b..663ad5df96a3 100644
--- a/arch/blackfin/mach-bf609/boards/ezkit.c
+++ b/arch/blackfin/mach-bf609/boards/ezkit.c
@@ -1107,6 +1107,60 @@ static struct bfin_display_config bfin_display_data = {
1107}; 1107};
1108#endif 1108#endif
1109 1109
1110#if IS_ENABLED(CONFIG_VIDEO_ADV7343)
1111#include <media/adv7343.h>
1112
1113static struct v4l2_output adv7343_outputs[] = {
1114 {
1115 .index = 0,
1116 .name = "Composite",
1117 .type = V4L2_OUTPUT_TYPE_ANALOG,
1118 .std = V4L2_STD_ALL,
1119 .capabilities = V4L2_OUT_CAP_STD,
1120 },
1121};
1122
1123static struct disp_route adv7343_routes[] = {
1124 {
1125 .output = 0,
1126 },
1127};
1128
1129static struct adv7343_platform_data adv7343_data = {
1130 .mode_config = {
1131 .sleep_mode = false,
1132 .pll_control = false,
1133 .dac_1 = true,
1134 .dac_2 = true,
1135 .dac_3 = true,
1136 .dac_4 = true,
1137 .dac_5 = true,
1138 .dac_6 = true,
1139 },
1140 .sd_config = {
1141 .sd_dac_out1 = false,
1142 .sd_dac_out2 = false,
1143 },
1144};
1145
1146static struct bfin_display_config bfin_display_data = {
1147 .card_name = "BF609",
1148 .outputs = adv7343_outputs,
1149 .num_outputs = ARRAY_SIZE(adv7343_outputs),
1150 .routes = adv7343_routes,
1151 .i2c_adapter_id = 0,
1152 .board_info = {
1153 .type = "adv7343",
1154 .addr = 0x2b,
1155 .platform_data = (void *)&adv7343_data,
1156 },
1157 .ppi_info = &ppi_info_disp,
1158 .ppi_control = (PACK_EN | DLEN_8 | EPPI_CTL_FS1LO_FS2LO
1159 | EPPI_CTL_POLC3 | EPPI_CTL_BLANKGEN | EPPI_CTL_SYNC2
1160 | EPPI_CTL_NON656 | EPPI_CTL_DIR),
1161};
1162#endif
1163
1110static struct platform_device bfin_display_device = { 1164static struct platform_device bfin_display_device = {
1111 .name = "bfin_display", 1165 .name = "bfin_display",
1112 .dev = { 1166 .dev = {