MIPS: Yosemite, Emma: Fix off-by-two in arcs_cmdline buffer size check
[linux-2.6/linux-mips.git] / arch / arm / mach-davinci / include / mach / dm646x.h
blob2a00fe5ac253dc7a3f810cbeb4d58553bb51ad21
1 /*
2 * Chip specific defines for DM646x SoC
4 * Author: Kevin Hilman, Deep Root Systems, LLC
6 * 2007 (c) Deep Root Systems, LLC. This file is licensed under
7 * the terms of the GNU General Public License version 2. This program
8 * is licensed "as is" without any warranty of any kind, whether express
9 * or implied.
11 #ifndef __ASM_ARCH_DM646X_H
12 #define __ASM_ARCH_DM646X_H
14 #include <mach/hardware.h>
15 #include <mach/asp.h>
16 #include <linux/i2c.h>
17 #include <linux/videodev2.h>
18 #include <linux/davinci_emac.h>
20 #define DM646X_EMAC_BASE (0x01C80000)
21 #define DM646X_EMAC_MDIO_BASE (DM646X_EMAC_BASE + 0x4000)
22 #define DM646X_EMAC_CNTRL_OFFSET (0x0000)
23 #define DM646X_EMAC_CNTRL_MOD_OFFSET (0x1000)
24 #define DM646X_EMAC_CNTRL_RAM_OFFSET (0x2000)
25 #define DM646X_EMAC_CNTRL_RAM_SIZE (0x2000)
27 #define DM646X_ASYNC_EMIF_CONTROL_BASE 0x20008000
28 #define DM646X_ASYNC_EMIF_CS2_SPACE_BASE 0x42000000
30 void __init dm646x_init(void);
31 void __init dm646x_init_mcasp0(struct snd_platform_data *pdata);
32 void __init dm646x_init_mcasp1(struct snd_platform_data *pdata);
33 int __init dm646x_init_edma(struct edma_rsv_info *rsv);
35 void dm646x_video_init(void);
37 enum vpif_if_type {
38 VPIF_IF_BT656,
39 VPIF_IF_BT1120,
40 VPIF_IF_RAW_BAYER
43 struct vpif_interface {
44 enum vpif_if_type if_type;
45 unsigned hd_pol:1;
46 unsigned vd_pol:1;
47 unsigned fid_pol:1;
50 struct vpif_subdev_info {
51 const char *name;
52 struct i2c_board_info board_info;
53 u32 input;
54 u32 output;
55 unsigned can_route:1;
56 struct vpif_interface vpif_if;
59 struct vpif_display_config {
60 int (*set_clock)(int, int);
61 struct vpif_subdev_info *subdevinfo;
62 int subdev_count;
63 const char **output;
64 int output_count;
65 const char *card_name;
68 struct vpif_input {
69 struct v4l2_input input;
70 const char *subdev_name;
73 #define VPIF_CAPTURE_MAX_CHANNELS 2
75 struct vpif_capture_chan_config {
76 const struct vpif_input *inputs;
77 int input_count;
80 struct vpif_capture_config {
81 int (*setup_input_channel_mode)(int);
82 int (*setup_input_path)(int, const char *);
83 struct vpif_capture_chan_config chan_config[VPIF_CAPTURE_MAX_CHANNELS];
84 struct vpif_subdev_info *subdev_info;
85 int subdev_count;
86 const char *card_name;
89 void dm646x_setup_vpif(struct vpif_display_config *,
90 struct vpif_capture_config *);
92 #endif /* __ASM_ARCH_DM646X_H */