Hi,
I was to able to find this information in Device tree, but maybe due to the
fact that i have limited knowledge.
On Sunday, March 13, 2016 at 12:49:12 PM UTC+1, Gregor Riepl wrote:
>
> > I think i solve it using
> >
> > static struct i2c_board_info __initdata inv_mpu_i2c2_board_info[] = {
> I think i solve it using
>
> static struct i2c_board_info __initdata inv_mpu_i2c2_board_info[] = {
> {
> ...
> };
>
> static void __init sun7i_init(void)
> {
> ...
> inv_mpu_i2c2_board_info[0].irq = __gpio_to_irq(176);
> ...
> }
Not that I want to sound nitpicky, but isn't that information tha
I think i solve it using
static struct i2c_board_info __initdata inv_mpu_i2c2_board_info[] = {
{
I2C_BOARD_INFO("mpu9150", 0x69),
/*.irq = MPU_IRQ,*/
.platform_data = &mpu_gyro_data,
},
{
I2C_BOARD_INFO("ak8975", 0x0E),
.platform_data = &mpu_compass_
Hi,
Thank you for your reply.
I forgot to mention thet the question is valid for A20.
The only reference i can find is EINT0 for pin PH00, unfortunately i cant
assign this value in the driver and the only clue i got so far is the use
of gpio_to_irq function
but this doesn't work or i don't know
On Sat, 2016-03-12 at 01:18 -0800, ION GROZEA wrote:
> Hello all,
>
> I am trying to add the MPU9150 driver in to kernel 3.4.39
>
> In the mach-sun71/core.c i have
>
> #define MPU_IRQ gpio_to_irq(176) - i need the IRQ for PH00
>
> static struct i2c_board_info __initdata inv_mpu_i2c2_boar
Hello all,
I am trying to add the MPU9150 driver in to kernel 3.4.39
In the mach-sun71/core.c i have
#define MPU_IRQ gpio_to_irq(176) - i need the IRQ for PH00
static struct i2c_board_info __initdata inv_mpu_i2c2_board_info[] = {
{
I2C_BOARD_INFO("mpu9150", 0x69),
.irq = MPU_IRQ,
.platform_dat