gpio0_D is unavailable on rk3288 with current pinctrl driver.
Change-Id: I7d38ebd3b00ac0df31861406f758bdd9e57f9903
Signed-off-by: xcq <shawn.xu@rock-chips.com>
#define NUM_GROUP (32)
#define GPIO_BANKS (9)
#endif
+extern unsigned int CHIP_TYPE;
static inline unsigned int camsys_gpio_group_pin(unsigned char *io_name)
{
else
gpio += group * NUM_GROUP + group_pin;
}
+ /* gpio0_D is unavailable on rk3288. */
+ if (!strstr(io_name, "PIN0") && 3288 == CHIP_TYPE)
+ gpio -= 8;
}
#endif
return gpio;
1) add reference count for marvin.
*v0.0x22.0:
1) delete node in irqpool list when thread disconnect.
+*v0.0x22.1:
+ 1) gpio0_D is unavailable on rk3288 with current pinctrl driver.
*/
-#define CAMSYS_DRIVER_VERSION KERNEL_VERSION(0, 0x22, 0)
+#define CAMSYS_DRIVER_VERSION KERNEL_VERSION(0, 0x22, 1)
#define CAMSYS_PLATFORM_DRV_NAME "RockChip-CamSys"
#define CAMSYS_PLATFORM_MARVIN_NAME "Platform_MarvinDev"