19 #include <linux/i2c.h>
21 #include <linux/types.h>
26 #include <mach/common.h>
27 #include <mach/hardware.h>
36 static unsigned int smartbot_pins[] = {
59 #define CAM_POWER IOMUX_TO_GPIO(MX31_PIN_GPIO3_1)
60 #define CAM_RST_B IOMUX_TO_GPIO(MX31_PIN_GPIO3_0)
62 static int smartbot_cam_power(
struct device *
dev,
int on)
68 static int smartbot_cam_reset(
struct device *
dev)
84 .power = smartbot_cam_power,
85 .reset = smartbot_cam_reset,
86 .board_info = &smartbot_i2c_devices[0],
92 .name =
"soc-camera-pdrv",
95 .platform_data = &base_iclink,
104 static int __init smartbot_cam_init(
void)
123 #if defined(CONFIG_USB_ULPI)
131 .init = smartbot_otg_init,
135 static int __init smartbot_otg_host_init(
void)
141 if (!otg_host_pdata.otg)
146 return PTR_ERR(pdev);
151 static inline int smartbot_otg_host_init(
void) {
return 0; }
154 #define POWER_EN IOMUX_TO_GPIO(MX31_PIN_DTR_DCE1)
155 #define DSPIC_RST_B IOMUX_TO_GPIO(MX31_PIN_DSR_DCE1)
156 #define TRSLAT_RST_B IOMUX_TO_GPIO(MX31_PIN_RI_DCE1)
157 #define TRSLAT_SRC_CHOICE IOMUX_TO_GPIO(MX31_PIN_DCD_DCE1)
159 static void smartbot_resets_init(
void)
198 smartbot_otg_host_init();
205 smartbot_resets_init();