diff options
Diffstat (limited to 'arch/arm/mach-davinci/include/mach')
-rw-r--r-- | arch/arm/mach-davinci/include/mach/da8xx.h | 11 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/mux.h | 42 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/psc.h | 1 |
3 files changed, 54 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/include/mach/da8xx.h b/arch/arm/mach-davinci/include/mach/da8xx.h index 33e78ae2a254..13d229575757 100644 --- a/arch/arm/mach-davinci/include/mach/da8xx.h +++ b/arch/arm/mach-davinci/include/mach/da8xx.h | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/platform_device.h> | 16 | #include <linux/platform_device.h> |
17 | #include <linux/davinci_emac.h> | 17 | #include <linux/davinci_emac.h> |
18 | #include <linux/spi/spi.h> | 18 | #include <linux/spi/spi.h> |
19 | #include <linux/videodev2.h> | ||
19 | 20 | ||
20 | #include <mach/serial.h> | 21 | #include <mach/serial.h> |
21 | #include <mach/edma.h> | 22 | #include <mach/edma.h> |
@@ -26,6 +27,8 @@ | |||
26 | #include <linux/platform_data/usb-davinci.h> | 27 | #include <linux/platform_data/usb-davinci.h> |
27 | #include <linux/platform_data/spi-davinci.h> | 28 | #include <linux/platform_data/spi-davinci.h> |
28 | 29 | ||
30 | #include <media/davinci/vpif_types.h> | ||
31 | |||
29 | extern void __iomem *da8xx_syscfg0_base; | 32 | extern void __iomem *da8xx_syscfg0_base; |
30 | extern void __iomem *da8xx_syscfg1_base; | 33 | extern void __iomem *da8xx_syscfg1_base; |
31 | 34 | ||
@@ -63,6 +66,7 @@ extern unsigned int da850_max_speed; | |||
63 | #define DA8XX_PLL0_BASE 0x01c11000 | 66 | #define DA8XX_PLL0_BASE 0x01c11000 |
64 | #define DA8XX_TIMER64P0_BASE 0x01c20000 | 67 | #define DA8XX_TIMER64P0_BASE 0x01c20000 |
65 | #define DA8XX_TIMER64P1_BASE 0x01c21000 | 68 | #define DA8XX_TIMER64P1_BASE 0x01c21000 |
69 | #define DA8XX_VPIF_BASE 0x01e17000 | ||
66 | #define DA8XX_GPIO_BASE 0x01e26000 | 70 | #define DA8XX_GPIO_BASE 0x01e26000 |
67 | #define DA8XX_PSC1_BASE 0x01e27000 | 71 | #define DA8XX_PSC1_BASE 0x01e27000 |
68 | #define DA8XX_AEMIF_CS2_BASE 0x60000000 | 72 | #define DA8XX_AEMIF_CS2_BASE 0x60000000 |
@@ -92,6 +96,11 @@ int da8xx_register_cpuidle(void); | |||
92 | void __iomem * __init da8xx_get_mem_ctlr(void); | 96 | void __iomem * __init da8xx_get_mem_ctlr(void); |
93 | int da850_register_pm(struct platform_device *pdev); | 97 | int da850_register_pm(struct platform_device *pdev); |
94 | int __init da850_register_sata(unsigned long refclkpn); | 98 | int __init da850_register_sata(unsigned long refclkpn); |
99 | int __init da850_register_vpif(void); | ||
100 | int __init da850_register_vpif_display | ||
101 | (struct vpif_display_config *display_config); | ||
102 | int __init da850_register_vpif_capture | ||
103 | (struct vpif_capture_config *capture_config); | ||
95 | void da8xx_restart(char mode, const char *cmd); | 104 | void da8xx_restart(char mode, const char *cmd); |
96 | 105 | ||
97 | extern struct platform_device da8xx_serial_device; | 106 | extern struct platform_device da8xx_serial_device; |
@@ -126,6 +135,8 @@ extern const short da830_ecap1_pins[]; | |||
126 | extern const short da830_ecap2_pins[]; | 135 | extern const short da830_ecap2_pins[]; |
127 | extern const short da830_eqep0_pins[]; | 136 | extern const short da830_eqep0_pins[]; |
128 | extern const short da830_eqep1_pins[]; | 137 | extern const short da830_eqep1_pins[]; |
138 | extern const short da850_vpif_capture_pins[]; | ||
139 | extern const short da850_vpif_display_pins[]; | ||
129 | 140 | ||
130 | extern const short da850_i2c0_pins[]; | 141 | extern const short da850_i2c0_pins[]; |
131 | extern const short da850_i2c1_pins[]; | 142 | extern const short da850_i2c1_pins[]; |
diff --git a/arch/arm/mach-davinci/include/mach/mux.h b/arch/arm/mach-davinci/include/mach/mux.h index a7e92fca32e6..9e95b8a1edb6 100644 --- a/arch/arm/mach-davinci/include/mach/mux.h +++ b/arch/arm/mach-davinci/include/mach/mux.h | |||
@@ -928,6 +928,48 @@ enum davinci_da850_index { | |||
928 | DA850_GPIO6_10, | 928 | DA850_GPIO6_10, |
929 | DA850_GPIO6_13, | 929 | DA850_GPIO6_13, |
930 | DA850_RTC_ALARM, | 930 | DA850_RTC_ALARM, |
931 | |||
932 | /* VPIF Capture */ | ||
933 | DA850_VPIF_DIN0, | ||
934 | DA850_VPIF_DIN1, | ||
935 | DA850_VPIF_DIN2, | ||
936 | DA850_VPIF_DIN3, | ||
937 | DA850_VPIF_DIN4, | ||
938 | DA850_VPIF_DIN5, | ||
939 | DA850_VPIF_DIN6, | ||
940 | DA850_VPIF_DIN7, | ||
941 | DA850_VPIF_DIN8, | ||
942 | DA850_VPIF_DIN9, | ||
943 | DA850_VPIF_DIN10, | ||
944 | DA850_VPIF_DIN11, | ||
945 | DA850_VPIF_DIN12, | ||
946 | DA850_VPIF_DIN13, | ||
947 | DA850_VPIF_DIN14, | ||
948 | DA850_VPIF_DIN15, | ||
949 | DA850_VPIF_CLKIN0, | ||
950 | DA850_VPIF_CLKIN1, | ||
951 | DA850_VPIF_CLKIN2, | ||
952 | DA850_VPIF_CLKIN3, | ||
953 | |||
954 | /* VPIF Display */ | ||
955 | DA850_VPIF_DOUT0, | ||
956 | DA850_VPIF_DOUT1, | ||
957 | DA850_VPIF_DOUT2, | ||
958 | DA850_VPIF_DOUT3, | ||
959 | DA850_VPIF_DOUT4, | ||
960 | DA850_VPIF_DOUT5, | ||
961 | DA850_VPIF_DOUT6, | ||
962 | DA850_VPIF_DOUT7, | ||
963 | DA850_VPIF_DOUT8, | ||
964 | DA850_VPIF_DOUT9, | ||
965 | DA850_VPIF_DOUT10, | ||
966 | DA850_VPIF_DOUT11, | ||
967 | DA850_VPIF_DOUT12, | ||
968 | DA850_VPIF_DOUT13, | ||
969 | DA850_VPIF_DOUT14, | ||
970 | DA850_VPIF_DOUT15, | ||
971 | DA850_VPIF_CLKO2, | ||
972 | DA850_VPIF_CLKO3, | ||
931 | }; | 973 | }; |
932 | 974 | ||
933 | enum davinci_tnetv107x_index { | 975 | enum davinci_tnetv107x_index { |
diff --git a/arch/arm/mach-davinci/include/mach/psc.h b/arch/arm/mach-davinci/include/mach/psc.h index 405318e35bf6..40a0027838e8 100644 --- a/arch/arm/mach-davinci/include/mach/psc.h +++ b/arch/arm/mach-davinci/include/mach/psc.h | |||
@@ -166,6 +166,7 @@ | |||
166 | #define DA830_LPSC1_McASP1 8 | 166 | #define DA830_LPSC1_McASP1 8 |
167 | #define DA850_LPSC1_SATA 8 | 167 | #define DA850_LPSC1_SATA 8 |
168 | #define DA830_LPSC1_McASP2 9 | 168 | #define DA830_LPSC1_McASP2 9 |
169 | #define DA850_LPSC1_VPIF 9 | ||
169 | #define DA8XX_LPSC1_SPI1 10 | 170 | #define DA8XX_LPSC1_SPI1 10 |
170 | #define DA8XX_LPSC1_I2C 11 | 171 | #define DA8XX_LPSC1_I2C 11 |
171 | #define DA8XX_LPSC1_UART1 12 | 172 | #define DA8XX_LPSC1_UART1 12 |