Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c268a743 authored by Nicolas Ferre's avatar Nicolas Ferre Committed by Olof Johansson
Browse files

ARM: at91/soc: add basic support for new sama5d2 SoC



Add Kconfig entries, header file changes and addition to the documentation.
The early debug infrastructure is also added for easy development.

Signed-off-by: default avatarLudovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent f15107f4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -90,6 +90,11 @@ the Atmel website: http://www.atmel.com.
        + Datasheet
          http://www.atmel.com/Images/Atmel-11238-32-bit-Cortex-A5-Microcontroller-SAMA5D4_Datasheet.pdf

      - sama5d2 family
        - sama5d27
        + Datasheet
          Coming soon


Linux kernel information
------------------------
+2 −0
Original line number Diff line number Diff line
@@ -27,6 +27,8 @@ compatible: must be one of:
    o "atmel,at91sam9xe"
 * "atmel,sama5" for SoCs using a Cortex-A5, shall be extended with the specific
   SoC family:
    o "atmel,sama5d2" shall be extended with the specific SoC compatible:
       - "atmel,sama5d27"
    o "atmel,sama5d3" shall be extended with the specific SoC compatible:
       - "atmel,sama5d31"
       - "atmel,sama5d33"
+6 −0
Original line number Diff line number Diff line
@@ -141,6 +141,12 @@ choice
		depends on ARCH_AT91
		depends on SOC_SAMA5

	config AT91_DEBUG_LL_DBGU3
		bool "Kernel low-level debugging on sama5d2"
		select DEBUG_AT91_UART
		depends on ARCH_AT91
		depends on SOC_SAMA5

	config DEBUG_BCM2835
		bool "Kernel low-level debugging on BCM2835 PL011 UART"
		depends on ARCH_BCM2835
+4 −1
Original line number Diff line number Diff line
@@ -13,9 +13,12 @@
#define AT91_DBGU 0xfffff200 /* AT91_BASE_DBGU0 */
#elif defined(CONFIG_AT91_DEBUG_LL_DBGU1)
#define AT91_DBGU 0xffffee00 /* AT91_BASE_DBGU1 */
#else
#elif defined(CONFIG_AT91_DEBUG_LL_DBGU2)
/* On sama5d4, use USART3 as low level serial console */
#define AT91_DBGU 0xfc00c000 /* SAMA5D4_BASE_USART3 */
#else
/* On sama5d2, use UART1 as low level serial console */
#define AT91_DBGU 0xf8020000
#endif

#ifdef CONFIG_MMU
+12 −0
Original line number Diff line number Diff line
@@ -8,6 +8,18 @@ menuconfig ARCH_AT91
	select SOC_BUS

if ARCH_AT91
config SOC_SAMA5D2
	bool "SAMA5D2 family" if ARCH_MULTI_V7
	select SOC_SAMA5
	select CACHE_L2X0
	select HAVE_FB_ATMEL
	select HAVE_AT91_UTMI
	select HAVE_AT91_USB_CLK
	select HAVE_AT91_H32MX
	select HAVE_AT91_GENERATED_CLK
	help
	  Select this if ou are using one of Atmel's SAMA5D2 family SoC.

config SOC_SAMA5D3
	bool "SAMA5D3 family" if ARCH_MULTI_V7
	select SOC_SAMA5
Loading