linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] bcm63xx: only set the proper GPIO overlay settings
@ 2009-08-31 18:28 Florian Fainelli
  2009-08-31 20:26 ` Maxime Bizon
  0 siblings, 1 reply; 5+ messages in thread
From: Florian Fainelli @ 2009-08-31 18:28 UTC (permalink / raw)
  To: ralf Baechle; +Cc: linux-mips, Maxime Bizon

This patch makes the GPIO pin multiplexing configuration
read the initial GPIO mode register value instead of
setting it initially to 0, then setting the correct
bits, this is safer.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
diff --git a/arch/mips/bcm63xx/boards/board_bcm963xx.c b/arch/mips/bcm63xx/boards/board_bcm963xx.c
index cfe32af..6ae4242 100644
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -634,7 +634,7 @@ void __init board_prom_init(void)
 	/* setup pin multiplexing depending on board enabled device,
 	 * this has to be done this early since PCI init is done
 	 * inside arch_initcall */
-	val = 0;
+	val = bcm_gpio_readl(GPIO_MODE_REG);
 
 #ifdef CONFIG_PCI
 	if (board.has_pci) {

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-10-12 16:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-31 18:28 [PATCH 2/2] bcm63xx: only set the proper GPIO overlay settings Florian Fainelli
2009-08-31 20:26 ` Maxime Bizon
2009-08-31 21:37   ` Florian Fainelli
2009-10-11 22:53     ` Ralf Baechle
2009-10-12 16:12       ` Florian Fainelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).