linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] MIPS: BCM63XX: fix BCM6358 GPIO count
@ 2020-05-24 18:59 Daniel González Cabanelas
  2020-05-25 13:29 ` Thomas Bogendoerfer
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel González Cabanelas @ 2020-05-24 18:59 UTC (permalink / raw)
  To: tsbogend; +Cc: f.fainelli, bcm-kernel-feedback-list, linux-mips

The BCM6358 SoC has only 38 available GPIOs. Fix it.

Signed-off-by: Daniel González Cabanelas <dgcbueu@gmail.com>
---
 arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h
index 8fe88c2251..9212429d5e 100644
--- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h
+++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h
@@ -13,16 +13,16 @@ static inline unsigned long bcm63xx_gpio_count(void)
 	case BCM6328_CPU_ID:
 		return 32;
 	case BCM3368_CPU_ID:
-	case BCM6358_CPU_ID:
 		return 40;
 	case BCM6338_CPU_ID:
 		return 8;
 	case BCM6345_CPU_ID:
 		return 16;
-	case BCM6362_CPU_ID:
-		return 48;
+	case BCM6358_CPU_ID:
 	case BCM6368_CPU_ID:
 		return 38;
+	case BCM6362_CPU_ID:
+		return 48;
 	case BCM6348_CPU_ID:
 	default:
 		return 37;
-- 
2.26.2





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

* Re: [PATCH] MIPS: BCM63XX: fix BCM6358 GPIO count
  2020-05-24 18:59 [PATCH] MIPS: BCM63XX: fix BCM6358 GPIO count Daniel González Cabanelas
@ 2020-05-25 13:29 ` Thomas Bogendoerfer
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Bogendoerfer @ 2020-05-25 13:29 UTC (permalink / raw)
  To: Daniel González Cabanelas
  Cc: f.fainelli, bcm-kernel-feedback-list, linux-mips

On Sun, May 24, 2020 at 08:59:53PM +0200, Daniel González Cabanelas wrote:
> The BCM6358 SoC has only 38 available GPIOs. Fix it.
> 
> Signed-off-by: Daniel González Cabanelas <dgcbueu@gmail.com>
> ---
>  arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

applied to mips-next.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

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

end of thread, other threads:[~2020-05-25 13:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-24 18:59 [PATCH] MIPS: BCM63XX: fix BCM6358 GPIO count Daniel González Cabanelas
2020-05-25 13:29 ` Thomas Bogendoerfer

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).