Add slow clock bypass

If the slow clock is setup to use an external clock to provide the
32768Hz frequency, it is mandatory to bypass the crystal oscillator.
Failing to do so makes the board unbootable.

Signed-off-by: David Vincent <freesilicon@gmail.com>
driver: at91_pio: improve the implementation of at91_pio driver

To be compatible with the new chip, SAMA5D4X, which the gap of PIO banks is not 0x200.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
board: amemd the board files due to the PIO register definition changing

The board file which directly operate on the PIO registers
	at91sam9260ek/at91sam9260ek.c,
	at91sam9g10ek/at91sam9g10ek.c,
	at91sam9m10g45ek/at91sam9m10g45ek.c.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
define the accurate PIO_NUM for each SoC chip

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
board: sama5d4xek: adding the new board

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
pmc: sama5d4: amemd the at91_pmc driver

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
ddramc: amend for sama5d4

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
driver: ds24xx: ammend for sama5d4ek

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
matrix: H64MX/H32MX: add support to matrix

Configure the AHB slaves' security and APB slaves' security.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
monitor: add monitor initialization and monitor handler

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
tz: add svc handler and management

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
nandflash: support no pmecc gf table in rom in sama5d4

In this case we will generate pmecc gf code by a function.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
sama5d4: initialize DACR for all domains and initialize CPACR

Program the DACR to allow client access to all domains

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
sama5d4: add an Abort handler for clearing the pending one

Abort handler needed. CPSR.A bit must be toggled to be able
to take and thus clear the exception.

Adding a CONFIG_CPU_V7 directive to allow the use of AT91Bootstrap
in pre-ARMv7 SoC.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
driver/load_kernel: add support load kernel and device tree

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
defconfig: sama5d4ek: create the default config files

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
sama5d4: add USART2 to NWd configuration

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
sama5d4: add HSMCI1 to NWd configuration

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
sama5d4: spi stuff update for EK revB

Serial dataflash is no more connected to spi1 on EK revB but to spi0.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
sama5d4: add TWI0 to NWd configuration

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>