Re: [PATCH V2] m68knommu: refactor mcfgpio.h to check for defines instead of CONFIG_ symbols.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Steven,

On 12/06/14 13:00, Steven King wrote:
While the various Coldfire parts use several different methods for implementing
GPIO, we can use the common aspects shared between the different parts as
defined in the m5xxxsim.h files rather than relying on CONFIG_ symbols.  This
should reduce the clutter and should make it more portable for other Coldfire
devices.

V2: leave the blank lines seperating the sections in the headers.

Signed-off-by: Steven King <sfking@xxxxxxxxx>
---
[snip]
--- a/arch/m68k/include/asm/m5272sim.h
+++ b/arch/m68k/include/asm/m5272sim.h
@@ -135,6 +135,7 @@
  #define MCFGPIO_PIN_MAX		48
  #define MCFGPIO_IRQ_MAX		-1
  #define MCFGPIO_IRQ_VECBASE	-1
+#define MCFGPIO_PORTSIZE	16
/****************************************************************************/
  #endif	/* m5272sim_h */
diff --git a/arch/m68k/include/asm/m527xsim.h b/arch/m68k/include/asm/m527xsim.h
index 1bebbe7..86be5b9 100644
--- a/arch/m68k/include/asm/m527xsim.h
+++ b/arch/m68k/include/asm/m527xsim.h
@@ -193,7 +193,7 @@
  #define MCFGPIO_PIN_MAX		100
  #define MCFGPIO_IRQ_MAX		8
  #define MCFGPIO_IRQ_VECBASE	MCFINT_VECBASE
-
+#define MCFGPIO_PORTSIZE	8
  /*

Can you leave the blank line in here?


[snip]
diff --git a/arch/m68k/include/asm/m54xxsim.h b/arch/m68k/include/asm/m54xxsim.h
index a5fbd17..3f1ecfa 100644
--- a/arch/m68k/include/asm/m54xxsim.h
+++ b/arch/m68k/include/asm/m54xxsim.h
@@ -64,7 +64,7 @@
  #define MCFGPIO_PIN_MAX		136	/* 128 gpio + 8 eport */
  #define MCFGPIO_IRQ_MAX		8
  #define MCFGPIO_IRQ_VECBASE	MCFINT_VECBASE
-
+#define MCFGPIO_PORTSIZE	8
  /*

And here too...

Regards
Greg


--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux