Commit 591ae6be authored by Ye Zhang's avatar Ye Zhang Committed by Bartosz Golaszewski
Browse files

gpio: rockchip: explan the format of the GPIO version ID

parent e106b1dd
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -26,9 +26,15 @@
#include "../pinctrl/core.h"
#include "../pinctrl/pinctrl-rockchip.h"

/*
 * Version ID Register
 * Bits [31:24] - Major Version
 * Bits [23:16] - Minor Version
 * Bits [15:0]  - Revision Number
 */
#define GPIO_TYPE_V1		(0)           /* GPIO Version ID reserved */
#define GPIO_TYPE_V2		(0x01000C2B)  /* GPIO Version ID 0x01000C2B */
#define GPIO_TYPE_V2_1		(0x0101157C)  /* GPIO Version ID 0x0101157C */
#define GPIO_TYPE_V2		(0x01000C2B)
#define GPIO_TYPE_V2_1		(0x0101157C)

static const struct rockchip_gpio_regs gpio_regs_v1 = {
	.port_dr = 0x00,