drivers/pinctrl: Enable pinctrl driver for it51xxx series
Enable pinctrl driver for ITE it51xxx series. Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
This commit is contained in:
parent
678adea066
commit
f0d21fb497
4 changed files with 657 additions and 1 deletions
|
@ -183,6 +183,7 @@ struct gpio_it51xxx_regs {
|
|||
/* GPIO register fields */
|
||||
/* 0x00: General Control */
|
||||
#define IT51XXX_GPIO_LPCRSTEN (BIT(2) | BIT(1))
|
||||
#define ITE_EC_GPIO_LPCRSTEN IT51XXX_GPIO_LPCRSTEN
|
||||
#define IT51XXX_GPIO_GCR_ESPI_RST_D2 0x2
|
||||
#define IT51XXX_GPIO_GCR_ESPI_RST_POS 1
|
||||
#define IT51XXX_GPIO_GCR_ESPI_RST_EN_MASK (0x3 << IT51XXX_GPIO_GCR_ESPI_RST_POS)
|
||||
|
@ -298,4 +299,8 @@ struct gctrl_it51xxx_regs {
|
|||
/* 0x38: Special Control 9 */
|
||||
#define IT51XXX_GCTRL_ALTIE BIT(4)
|
||||
|
||||
/* Alias gpio_ite_ec_regs to gpio_it51xxx_regs for compatibility */
|
||||
#define gpio_ite_ec_regs gpio_it51xxx_regs
|
||||
#define GPIO_ITE_EC_REGS_BASE GPIO_IT51XXX_REGS_BASE
|
||||
|
||||
#endif /* CHIP_CHIPREGS_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue