Hi all,
I have an accelerometer sensor connected to the OMAP3 spi4 bus. I am having problems to read/write the register of this device from a driver probe function. I am trying to see the clock on the OMAP but no signal is comming out.
I have the following settings, please advise if I missed something, your help is much appreciated:
from board_config*.c file:
/* SPI config dor Accelerometer */
static struct spi_board_info lis3dh_spi_board_info[] __initdata =
{
{
.modalias = "lis3dh",
.bus_num = 4,
.chip_select = 0,
.max_speed_hz = 12000000,
.controller_data = &lis3dh_acc_mcspi_config,
.irq = OMAP_GPIO_IRQ(17),
.mode = SPI_MODE_1,
//.platform_data = &lis3dh_acc_board_data,
},
};
static int __init omap3_nhp_spi_init (void)
{
spi_register_board_info(lis3dh_spi_board_info,
ARRAY_SIZE(lis3dh_spi_board_info));
return 0;
}