I am trying to integrate the NXP 7150 drivers into Android P for an x86 based platform.
Here are the integration guidelines given : https://www.nxp.com/docs/en/application-note/AN11690.pdf
Since x86 does not support device tree as of now, I need to use the Platform data. But I am not sure in which file should I place this info :
static struct pn544_i2c_platform_data nfc_pdata = {
.irq_gpio = GPIO_TO_PIN(1,29),
.ven_gpio = GPIO_TO_PIN(0,30),
.firm_gpio = GPIO_UNUSED
.clkreq_gpio = GPIO_UNUSED
};
static struct i2c_board_info __initdata nfc_board_info[] = {
{
I2C_BOARD_INFO("pn547", 0x28),
.platform_data = &nfc_pdata,
},
};
I have minimal driver development knowledge, hence I am not able to figure out. I have built the driver as a builtin module. I understand that I need to plug the PN7150 dongle and then put the device info somewhere in the kernel code, which can call the probe of the driver on boot up. Please help.