| To: | linux-mips@linux-mips.org, ralf@linux-mips.org |
|---|---|
| Subject: | [PATCH 7/7] MIPS: bcm63xx: initialize gpio_out_low & out_high to current value at boot. |
| From: | Maxime Bizon <mbizon@freebox.fr> |
| Date: | Sat, 30 Jan 2010 18:34:58 +0100 |
| Cc: | Maxime Bizon <mbizon@freebox.fr> |
| In-reply-to: | <1264872898-28149-1-git-send-email-mbizon@freebox.fr> |
| References: | <1264872898-28149-1-git-send-email-mbizon@freebox.fr> |
| Sender: | linux-mips-bounce@linux-mips.org |
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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 6/7] MIPS: bcm63xx: call board_register_device from device_initcall(), Maxime Bizon |
|---|---|
| Next by Date: | [PATCH 2/2] bcm63xx_uart: allow more than one uart to be registered., Maxime Bizon |
| Previous by Thread: | [PATCH 6/7] MIPS: bcm63xx: call board_register_device from device_initcall(), Maxime Bizon |
| Next by Thread: | bcm63xx_uart updates for 2.6.34, Maxime Bizon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |