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
11 #ifndef __ASM_ARCH_DM646X_H
12 #define __ASM_ARCH_DM646X_H
14 #include <mach/hardware.h>
16 #include <linux/i2c.h>
17 #include <linux/videodev2.h>
18 #include <linux/clk.h>
19 #include <linux/davinci_emac.h>
21 #define DM646X_EMAC_BASE (0x01C80000)
22 #define DM646X_EMAC_MDIO_BASE (DM646X_EMAC_BASE + 0x4000)
23 #define DM646X_EMAC_CNTRL_OFFSET (0x0000)
24 #define DM646X_EMAC_CNTRL_MOD_OFFSET (0x1000)
25 #define DM646X_EMAC_CNTRL_RAM_OFFSET (0x2000)
26 #define DM646X_EMAC_MDIO_OFFSET (0x4000)
27 #define DM646X_EMAC_CNTRL_RAM_SIZE (0x2000)
29 #define DM646X_ASYNC_EMIF_CONTROL_BASE 0x20008000
30 #define DM646X_ASYNC_EMIF_CS2_SPACE_BASE 0x42000000
32 void __init
dm646x_init(void);
33 void __init
dm646x_init_mcasp0(struct snd_platform_data
*pdata
);
34 void __init
dm646x_init_mcasp1(struct snd_platform_data
*pdata
);
35 void __init
dm646x_board_setup_refclk(struct clk
*clk
);
36 int __init
dm646x_init_edma(struct edma_rsv_info
*rsv
);
38 void dm646x_video_init(void);
46 struct vpif_interface
{
47 enum vpif_if_type if_type
;
53 struct vpif_subdev_info
{
55 struct i2c_board_info board_info
;
59 struct vpif_interface vpif_if
;
62 struct vpif_display_config
{
63 int (*set_clock
)(int, int);
64 struct vpif_subdev_info
*subdevinfo
;
68 const char *card_name
;
72 struct v4l2_input input
;
73 const char *subdev_name
;
76 #define VPIF_CAPTURE_MAX_CHANNELS 2
78 struct vpif_capture_chan_config
{
79 const struct vpif_input
*inputs
;
83 struct vpif_capture_config
{
84 int (*setup_input_channel_mode
)(int);
85 int (*setup_input_path
)(int, const char *);
86 struct vpif_capture_chan_config chan_config
[VPIF_CAPTURE_MAX_CHANNELS
];
87 struct vpif_subdev_info
*subdev_info
;
89 const char *card_name
;
92 void dm646x_setup_vpif(struct vpif_display_config
*,
93 struct vpif_capture_config
*);
95 #endif /* __ASM_ARCH_DM646X_H */