camera: rockchip: camsys driver v0.0x22.1

gpio0_D is unavailable on rk3288 with current pinctrl driver.

Change-Id: I7d38ebd3b00ac0df31861406f758bdd9e57f9903
Signed-off-by: xcq <shawn.xu@rock-chips.com>
This commit is contained in:
xcq 2017-06-16 17:52:19 +08:00 committed by Huang, Tao
commit f920ebcc80
2 changed files with 7 additions and 1 deletions

4
drivers/media/video/rk_camsys/camsys_gpio.h Executable file → Normal file
View file

@ -6,6 +6,7 @@
#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)
{
@ -79,6 +80,9 @@ static inline unsigned int camsys_gpio_get(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;

View file

@ -166,8 +166,10 @@
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"