Example #1
0
	}, {
		.id = MC13783_REG_VVIB,  /* Power CMOS */
		.init_data = &vvib_init,
	},
};

/* MC13783 */
static struct mc13xxx_platform_data mc13783_pdata __initdata = {
	.regulators = mx31_3ds_regulators,
	.num_regulators = ARRAY_SIZE(mx31_3ds_regulators),
	.flags  = MC13XXX_USE_REGULATOR | MC13XXX_USE_TOUCHSCREEN
};

/* SPI */
static int spi0_internal_chipselect[] = {
	MXC_SPI_CS(2),
};

static const struct spi_imx_master spi0_pdata __initconst = {
	.chipselect	= spi0_internal_chipselect,
	.num_chipselect	= ARRAY_SIZE(spi0_internal_chipselect),
};

static int spi1_internal_chipselect[] = {
	MXC_SPI_CS(0),
	MXC_SPI_CS(2),
};

static const struct spi_imx_master spi1_pdata __initconst = {
	.chipselect	= spi1_internal_chipselect,
	.num_chipselect	= ARRAY_SIZE(spi1_internal_chipselect),
Example #2
0
};

/* SPI */
static struct spi_board_info pcm037_spi_dev[] = {
    {
        .modalias	= "dac124s085",
        .max_speed_hz	= 400000,
        .bus_num	= 0,
        .chip_select	= 0,		/* Index in pcm037_spi1_cs[] */
        .mode		= SPI_CPHA,
    },
};

/* Platform Data for MXC CSPI */
#if defined(CONFIG_SPI_IMX) || defined(CONFIG_SPI_IMX_MODULE)
static int pcm037_spi1_cs[] = {MXC_SPI_CS(1), IOMUX_TO_GPIO(MX31_PIN_KEY_COL7)};

struct spi_imx_master pcm037_spi1_master = {
    .chipselect = pcm037_spi1_cs,
    .num_chipselect = ARRAY_SIZE(pcm037_spi1_cs),
};
#endif

/* GPIO-keys input device */
static struct gpio_keys_button pcm037_gpio_keys[] = {
    {
        .type	= EV_KEY,
        .code	= KEY_L,
        .gpio	= 0,
        .desc	= "Wheel Manual",
        .wakeup	= 0,
Example #3
0
	.id		= -1,
	.num_resources	= ARRAY_SIZE(smsc911x_resources),
	.resource	= smsc911x_resources,
	.dev		= {
		.platform_data = &smsc911x_config,
	},
};

/*
 * SPI
 *
 * The MC13783 is the only hard-wired SPI device on the module.
 */

static int spi_internal_chipselect[] = {
	MXC_SPI_CS(0),
};

static const struct spi_imx_master spi1_pdata __initconst = {
	.chipselect	= spi_internal_chipselect,
	.num_chipselect	= ARRAY_SIZE(spi_internal_chipselect),
};

static struct mc13783_platform_data mc13783_pdata __initdata = {
	.flags  = MC13783_USE_RTC |
		  MC13783_USE_REGULATOR,
};

static struct spi_board_info mc13783_spi_dev __initdata = {
	.modalias       = "mc13783",
	.max_speed_hz   = 1000000,
	PAD_CTL_PUE 		|	\
	PAD_CTL_PKE 		| 	\
	PAD_CTL_DSE_MAX 	|	\
	PAD_CTL_PUS_47K_UP 	|	\
	PAD_CTL_SRE_FAST		\
)

#define MX35_ESDHC1_DATA__PAD_CFG 	\
	MX35_ESDHC1_CMD__PAD_CFG

static const struct imxuart_platform_data uart_pdata = {
	.flags = IMXUART_HAVE_RTSCTS,
};

static int spi_internal_chipselect[] = {
	MXC_SPI_CS(0),
	MXC_SPI_CS(1),
	MXC_SPI_CS(2),
	MXC_SPI_CS(3),
};

static const struct spi_imx_master spi_pdata = {
	.chipselect = spi_internal_chipselect,
	.num_chipselect = ARRAY_SIZE(spi_internal_chipselect),
};

static const struct imxi2c_platform_data i2c_data = {
	.bitrate = 100000,
};

static unsigned int sdhc_get_card_det_status(struct device *dev)