mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-09-18 21:23:41 +03:00
4d9258acb3
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19921 3c298f89-4303-0410-b956-a3cf2f4a3e73
20 lines
620 B
Diff
20 lines
620 B
Diff
To avoid glitch during gpio initialisation, fetch gpio output
|
|
registers values left by bootloader.
|
|
|
|
Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
|
|
---
|
|
arch/mips/bcm63xx/gpio.c | 2 ++
|
|
1 files changed, 2 insertions(+), 0 deletions(-)
|
|
|
|
--- a/arch/mips/bcm63xx/gpio.c
|
|
+++ b/arch/mips/bcm63xx/gpio.c
|
|
@@ -125,6 +125,8 @@ static struct gpio_chip bcm63xx_gpio_chi
|
|
|
|
int __init bcm63xx_gpio_init(void)
|
|
{
|
|
+ gpio_out_low = bcm_gpio_readl(GPIO_DATA_LO_REG);
|
|
+ gpio_out_high = bcm_gpio_readl(GPIO_DATA_HI_REG);
|
|
bcm63xx_gpio_chip.ngpio = bcm63xx_gpio_count();
|
|
pr_info("registering %d GPIOs\n", bcm63xx_gpio_chip.ngpio);
|
|
|