diff options
author | Scott Jiang <scott.jiang.linux@gmail.com> | 2012-06-08 14:22:36 -0400 |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-07-24 01:39:50 -0400 |
commit | b5c00ae78fb90481b7abe00dfc114f42236955a9 (patch) | |
tree | 3fe7a31b2e32704ea25dfe9a4891e115a26e4c10 | |
parent | bbca5c6d9e7d0b0cdecd70766b7f4698462a53e0 (diff) |
bf609: add CVBS and S-Video support for adv7842
Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
-rw-r--r-- | arch/blackfin/mach-bf609/boards/ezkit.c | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/arch/blackfin/mach-bf609/boards/ezkit.c b/arch/blackfin/mach-bf609/boards/ezkit.c index 14b73b55a48e..60347a83d70e 100644 --- a/arch/blackfin/mach-bf609/boards/ezkit.c +++ b/arch/blackfin/mach-bf609/boards/ezkit.c | |||
@@ -922,31 +922,43 @@ static struct v4l2_input adv7842_inputs[] = { | |||
922 | static struct bcap_route adv7842_routes[] = { | 922 | static struct bcap_route adv7842_routes[] = { |
923 | { | 923 | { |
924 | .input = 3, | 924 | .input = 3, |
925 | .output = 0, | ||
925 | }, | 926 | }, |
926 | { | 927 | { |
927 | .input = 4, | 928 | .input = 4, |
929 | .output = 0, | ||
928 | }, | 930 | }, |
929 | { | 931 | { |
930 | .input = 2, | 932 | .input = 2, |
933 | .output = 0, | ||
931 | }, | 934 | }, |
932 | { | 935 | { |
933 | .input = 1, | 936 | .input = 1, |
937 | .output = 0, | ||
934 | }, | 938 | }, |
935 | { | 939 | { |
936 | .input = 0, | 940 | .input = 0, |
941 | .output = 0, | ||
942 | }, | ||
943 | }; | ||
944 | |||
945 | static struct adv7842_output_format adv7842_opf[] = { | ||
946 | { | ||
947 | .op_ch_sel = ADV7842_OP_CH_SEL_BRG, | ||
948 | .op_format_sel = ADV7842_OP_FORMAT_SEL_SDR_ITU656_8, | ||
949 | .op_656_range = 1, | ||
950 | .blank_data = 1, | ||
951 | .insert_av_codes = 1, | ||
937 | }, | 952 | }, |
938 | }; | 953 | }; |
939 | 954 | ||
940 | static struct adv7842_platform_data adv7842_data = { | 955 | static struct adv7842_platform_data adv7842_data = { |
956 | .opf = adv7842_opf, | ||
957 | .num_opf = ARRAY_SIZE(adv7842_opf), | ||
941 | .ain_sel = ADV7842_AIN10_11_12_NC_SYNC_4_1, | 958 | .ain_sel = ADV7842_AIN10_11_12_NC_SYNC_4_1, |
942 | .op_ch_sel = ADV7842_OP_CH_SEL_BRG, | ||
943 | .prim_mode = ADV7842_PRIM_MODE_SDP, | 959 | .prim_mode = ADV7842_PRIM_MODE_SDP, |
944 | .vid_std_select = ADV7842_SDP_VID_STD_CVBS_SD_4x1, | 960 | .vid_std_select = ADV7842_SDP_VID_STD_CVBS_SD_4x1, |
945 | .inp_color_space = ADV7842_INP_COLOR_SPACE_AUTO, | 961 | .inp_color_space = ADV7842_INP_COLOR_SPACE_AUTO, |
946 | .op_format_sel = ADV7842_OP_FORMAT_SEL_SDR_ITU656_8, | ||
947 | .op_656_range = 1, | ||
948 | .blank_data = 1, | ||
949 | .insert_av_codes = 1, | ||
950 | .i2c_sdp_io = 0x30, | 962 | .i2c_sdp_io = 0x30, |
951 | .i2c_sdp = 0x31, | 963 | .i2c_sdp = 0x31, |
952 | .i2c_cp = 0x32, | 964 | .i2c_cp = 0x32, |
@@ -958,6 +970,7 @@ static struct adv7842_platform_data adv7842_data = { | |||
958 | .i2c_infoframe = 0x38, | 970 | .i2c_infoframe = 0x38, |
959 | .i2c_cec = 0x39, | 971 | .i2c_cec = 0x39, |
960 | .i2c_avlink = 0x3a, | 972 | .i2c_avlink = 0x3a, |
973 | .i2c_ex = 0x26, | ||
961 | }; | 974 | }; |
962 | 975 | ||
963 | static struct bfin_capture_config bfin_capture_data = { | 976 | static struct bfin_capture_config bfin_capture_data = { |