diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-02-28 20:50:51 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-02-28 20:50:51 +0000 |
commit | a1bd9bdd429c9139a9e4bfd76adb2e491391dc7e (patch) | |
tree | bdba4afdca90282c214abee5f2aff4e9f37ce6ca /target/linux/brcm63xx/patches-2.6.32/210-init_gpio_out_low_high_current_value_at_boot.patch | |
parent | 5a42dfc864792b29c31e866707cda3413129a5eb (diff) |
[brcm63xx] add support for 2.6.32, dropped the SPI patch for now
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19919 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/patches-2.6.32/210-init_gpio_out_low_high_current_value_at_boot.patch')
-rw-r--r-- | target/linux/brcm63xx/patches-2.6.32/210-init_gpio_out_low_high_current_value_at_boot.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/patches-2.6.32/210-init_gpio_out_low_high_current_value_at_boot.patch b/target/linux/brcm63xx/patches-2.6.32/210-init_gpio_out_low_high_current_value_at_boot.patch new file mode 100644 index 000000000..0f13e3b58 --- /dev/null +++ b/target/linux/brcm63xx/patches-2.6.32/210-init_gpio_out_low_high_current_value_at_boot.patch @@ -0,0 +1,25 @@ +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(-) + +diff --git a/arch/mips/bcm63xx/gpio.c b/arch/mips/bcm63xx/gpio.c +index 3725345..315bc7f 100644 +--- a/arch/mips/bcm63xx/gpio.c ++++ b/arch/mips/bcm63xx/gpio.c +@@ -125,6 +125,8 @@ static struct gpio_chip bcm63xx_gpio_chip = { + + 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); + +-- +1.6.3.3 + + |