-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: at91: introduce basic SAMA5D4 support
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
- Loading branch information
Nicolas Ferre
committed
Sep 22, 2014
1 parent
bcc5fd4
commit 2dc850b
Showing
7 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Chip-specific header file for the SAMA5D4 family | ||
* | ||
* Copyright (C) 2013 Atmel Corporation, | ||
* Nicolas Ferre <nicolas.ferre@atmel.com> | ||
* | ||
* Common definitions. | ||
* Based on SAMA5D4 datasheet. | ||
* | ||
* Licensed under GPLv2 or later. | ||
*/ | ||
|
||
#ifndef SAMA5D4_H | ||
#define SAMA5D4_H | ||
|
||
/* | ||
* User Peripheral physical base addresses. | ||
*/ | ||
#define SAMA5D4_BASE_USART3 0xfc00c000 /* (USART3 non-secure) Base Address */ | ||
#define SAMA5D4_BASE_PMC 0xf0018000 /* (PMC) Base Address */ | ||
#define SAMA5D4_BASE_MPDDRC 0xf0010000 /* (MPDDRC) Base Address */ | ||
#define SAMA5D4_BASE_PIOD 0xfc068000 /* (PIOD) Base Address */ | ||
|
||
/* Some other peripherals */ | ||
#define SAMA5D4_BASE_SYS2 SAMA5D4_BASE_PIOD | ||
|
||
/* | ||
* Internal Memory. | ||
*/ | ||
#define SAMA5D4_NS_SRAM_BASE 0x00210000 /* Internal SRAM base address Non-Secure */ | ||
#define SAMA5D4_NS_SRAM_SIZE (64 * SZ_1K) /* Internal SRAM size Non-Secure part (64Kb) */ | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Chip-specific setup code for the SAMA5D4 family | ||
* | ||
* Copyright (C) 2013 Atmel Corporation, | ||
* Nicolas Ferre <nicolas.ferre@atmel.com> | ||
* | ||
* Licensed under GPLv2 or later. | ||
*/ | ||
|
||
#include <linux/module.h> | ||
#include <linux/dma-mapping.h> | ||
#include <linux/clk/at91_pmc.h> | ||
|
||
#include <asm/irq.h> | ||
#include <asm/mach/arch.h> | ||
#include <asm/mach/map.h> | ||
#include <mach/sama5d4.h> | ||
#include <mach/cpu.h> | ||
#include <mach/hardware.h> | ||
|
||
#include "soc.h" | ||
#include "generic.h" | ||
#include "sam9_smc.h" | ||
|
||
/* -------------------------------------------------------------------- | ||
* Processor initialization | ||
* -------------------------------------------------------------------- */ | ||
|
||
static void __init sama5d4_map_io(void) | ||
{ | ||
at91_init_sram(0, SAMA5D4_NS_SRAM_BASE, SAMA5D4_NS_SRAM_SIZE); | ||
} | ||
|
||
AT91_SOC_START(sama5d4) | ||
.map_io = sama5d4_map_io, | ||
AT91_SOC_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters