11 #include <linux/kernel.h>
18 #include <linux/i2c.h>
21 #include <linux/videodev2.h>
42 #define NAND_BLOCK_SIZE SZ_128K
63 .name =
"filesystem1",
68 .name =
"filesystem2",
77 .mask_chipsel =
BIT(14),
78 .parts = davinci_nand_partitions,
79 .nr_parts =
ARRAY_SIZE(davinci_nand_partitions),
85 static struct resource davinci_nand_resources[] = {
98 .name =
"davinci_nand",
101 .num_resources =
ARRAY_SIZE(davinci_nand_resources),
102 .resource = davinci_nand_resources,
105 .platform_data = &davinci_nand_data,
118 static int dm355evm_mmc_gpios = -
EINVAL;
120 static void dm355evm_mmcsd_gpios(
unsigned gpio)
131 dm355evm_mmc_gpios =
gpio;
136 .platform_data = dm355evm_mmcsd_gpios,
142 static void __init evm_init_i2c(
void)
154 static struct resource dm355evm_dm9000_rsrc[] = {
174 .resource = dm355evm_dm9000_rsrc,
175 .num_resources =
ARRAY_SIZE(dm355evm_dm9000_rsrc),
184 #define TVP514X_STD_ALL (V4L2_STD_NTSC | V4L2_STD_PAL)
206 static struct vpfe_route tvp5146_routes[] = {
217 static struct vpfe_subdev_info vpfe_sub_devs[] = {
222 .inputs = tvp5146_inputs,
223 .routes = tvp5146_routes,
226 .if_type = VPFE_BT656,
227 .hdpol = VPFE_PINPOL_POSITIVE,
228 .vdpol = VPFE_PINPOL_POSITIVE,
232 .platform_data = &tvp5146_pdata,
237 static struct vpfe_config vpfe_cfg = {
240 .sub_devs = vpfe_sub_devs,
241 .card_name =
"DM355 EVM",
242 .ccdc =
"DM355 CCDC",
247 &davinci_nand_device,
254 static void __init dm355_evm_map_io(
void)
261 static int dm355evm_mmc_get_cd(
int module)
263 if (!gpio_is_valid(dm355evm_mmc_gpios))
269 static int dm355evm_mmc_get_ro(
int module)
271 if (!gpio_is_valid(dm355evm_mmc_gpios))
278 .get_cd = dm355evm_mmc_get_cd,
279 .get_ro = dm355evm_mmc_get_ro,
281 .max_freq = 50000000,
291 #ifdef CONFIG_USB_MUSB_PERIPHERAL
292 #define USB_ID_VALUE 0
294 #define USB_ID_VALUE 1
307 .platform_data = &at25640a,
308 .max_speed_hz = 10 * 1000 * 1000,
315 static __init void dm355_evm_init(
void)
323 aemif =
clk_get(&dm355evm_dm9000.
dev,
"aemif");
325 WARN(
"%s: unable to get AEMIF clock\n", __func__);
355 .atag_offset = 0x100,
356 .map_io = dm355_evm_map_io,
359 .init_machine = dm355_evm_init,