public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
* [PATCH] m68k: add Sysam AMCORE open board support
@ 2016-09-28 23:00 Angelo Dureghello
  2016-12-13 11:32 ` Geert Uytterhoeven
  0 siblings, 1 reply; 8+ messages in thread
From: Angelo Dureghello @ 2016-09-28 23:00 UTC (permalink / raw)
  To: linux-m68k; +Cc: Angelo Dureghello

Add support for Sysam AMCORE board, an open hardware embedded Linux
board, see http://sysam.it/openzone/projects/amcore/amcore.html for
any info.

Signed-off-by: Angelo Dureghello <angelo@sysam.it>
---
 arch/m68k/Kconfig.machine        | 6 ++++++
 arch/m68k/coldfire/Makefile      | 1 +
 arch/m68k/include/asm/m5307sim.h | 7 +++++++
 3 files changed, 14 insertions(+)

diff --git a/arch/m68k/Kconfig.machine b/arch/m68k/Kconfig.machine
index 2a5c7ab..9225b4a 100644
--- a/arch/m68k/Kconfig.machine
+++ b/arch/m68k/Kconfig.machine
@@ -259,6 +259,12 @@ config M5407C3
 	help
 	  Support for the Motorola M5407C3 board.
 
+config AMCORE
+	bool "Sysam AMCORE board support"
+	depends on M5307
+	help
+	  Support for the Sysam AMCORE open-hardware generic board.
+
 config FIREBEE
 	bool "FireBee board support"
 	depends on M547x
diff --git a/arch/m68k/coldfire/Makefile b/arch/m68k/coldfire/Makefile
index 68f0fac..4aa2c57 100644
--- a/arch/m68k/coldfire/Makefile
+++ b/arch/m68k/coldfire/Makefile
@@ -34,6 +34,7 @@ obj-$(CONFIG_NETtel)	+= nettel.o
 obj-$(CONFIG_CLEOPATRA)	+= nettel.o
 obj-$(CONFIG_FIREBEE)	+= firebee.o
 obj-$(CONFIG_MCF8390)	+= mcf8390.o
+obj-$(CONFIG_AMCORE)    += amcore.o
 
 obj-$(CONFIG_PCI)	+= pci.o
 
diff --git a/arch/m68k/include/asm/m5307sim.h b/arch/m68k/include/asm/m5307sim.h
index 5d0bb7e..81f1afd 100644
--- a/arch/m68k/include/asm/m5307sim.h
+++ b/arch/m68k/include/asm/m5307sim.h
@@ -131,6 +131,11 @@
 #define MCFGPIO_IRQ_MAX		-1
 #define MCFGPIO_IRQ_VECBASE	-1
 
+/*
+ * I2C module.
+ */
+#define MCFI2C_IOBASE		(MCF_MBAR + 0x280)
+
 
 /* Definition offset address for CS2-7  -- old mask 5307 */
 
@@ -148,6 +153,7 @@
 #define	MCFSIM_SWDICR		MCFSIM_ICR0	/* Watchdog timer ICR */
 #define	MCFSIM_TIMER1ICR	MCFSIM_ICR1	/* Timer 1 ICR */
 #define	MCFSIM_TIMER2ICR	MCFSIM_ICR2	/* Timer 2 ICR */
+#define MCFSIM_I2CICR		MCFSIM_ICR3	/* I2C ICR */
 #define	MCFSIM_UART1ICR		MCFSIM_ICR4	/* UART 1 ICR */
 #define	MCFSIM_UART2ICR		MCFSIM_ICR5	/* UART 2 ICR */
 #define	MCFSIM_DMA0ICR		MCFSIM_ICR6	/* DMA 0 ICR */
@@ -174,6 +180,7 @@
 /*
  *	Define system peripheral IRQ usage.
  */
+#define MCF_IRQ_I2C		29		/* I2C */
 #define	MCF_IRQ_TIMER		30		/* Timer0, Level 6 */
 #define	MCF_IRQ_PROFILER	31		/* Timer1, Level 7 */
 #define	MCF_IRQ_UART0		73		/* UART0 */
-- 
2.8.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread
[parent not found: <1475103520-25311-1-git-send-email-angelo@sysam.it>]

end of thread, other threads:[~2016-12-13 13:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-28 23:00 [PATCH] m68k: add Sysam AMCORE open board support Angelo Dureghello
2016-12-13 11:32 ` Geert Uytterhoeven
     [not found] <1475103520-25311-1-git-send-email-angelo@sysam.it>
     [not found] ` <CAMuHMdXpEp=2NZM7b7RqYZszO3Tq-Am1ZVqe8XbfB4=j1rqNsw@mail.gmail.com>
     [not found]   ` <70227e89-7d57-0d66-67f6-df6d87a93f0a@sysam.it>
2016-12-13 13:13     ` Geert Uytterhoeven
2016-12-13 13:19       ` Angelo Dureghello
2016-12-13 13:21         ` Geert Uytterhoeven
2016-12-13 13:25           ` John Paul Adrian Glaubitz
2016-12-13 13:31             ` Angelo Dureghello
2016-12-13 13:29           ` Angelo Dureghello

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox