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:
parent
795363beff
commit
f920ebcc80
2 changed files with 7 additions and 1 deletions
4
drivers/media/video/rk_camsys/camsys_gpio.h
Executable file → Normal file
4
drivers/media/video/rk_camsys/camsys_gpio.h
Executable file → Normal 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;
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue