MLK-10449-1: 74x164: Add new property registers-default
For some platform such as imx7D SDB, one pin of 74x164 to control all peripheral power supply(PERI_3V_EN). The pin should keep in high voltage level when 74x164 loading, otherwise the module depend on PERI_3V3 will lose power. So add new property registers-default into 74x164 driver. Signed-off-by: Sandor Yu <R01008@freescale.com> Signed-off-by: Fugang Duan <B38611@freescale.com> (cherry picked from commit: 61fe7af7e47dd8bf6acc91ceabd9e660d28de28a)pull/10/head
parent
330d56ce1c
commit
f193b466ac
|
@ -147,6 +147,9 @@ static int gen_74x164_probe(struct spi_device *spi)
|
||||||
chip->registers = nregs;
|
chip->registers = nregs;
|
||||||
chip->gpio_chip.ngpio = GEN_74X164_NUMBER_GPIOS * chip->registers;
|
chip->gpio_chip.ngpio = GEN_74X164_NUMBER_GPIOS * chip->registers;
|
||||||
|
|
||||||
|
of_property_read_u8_array(spi->dev.of_node, "registers-default",
|
||||||
|
chip->buffer, chip->registers);
|
||||||
|
|
||||||
chip->gpio_chip.can_sleep = true;
|
chip->gpio_chip.can_sleep = true;
|
||||||
chip->gpio_chip.parent = &spi->dev;
|
chip->gpio_chip.parent = &spi->dev;
|
||||||
chip->gpio_chip.owner = THIS_MODULE;
|
chip->gpio_chip.owner = THIS_MODULE;
|
||||||
|
|
Loading…
Reference in New Issue