ARM: at91: sfr: convert to Kconfig
This converts the at91 sfr to Kconfig Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
This commit is contained in:
parent
44b5c40be3
commit
d231e37a20
@ -46,6 +46,7 @@ config AT91SAM9X5
|
|||||||
config SAMA5D2
|
config SAMA5D2
|
||||||
bool
|
bool
|
||||||
select CPU_V7A
|
select CPU_V7A
|
||||||
|
select ATMEL_SFR
|
||||||
|
|
||||||
config SAMA5D3
|
config SAMA5D3
|
||||||
bool
|
bool
|
||||||
@ -54,6 +55,7 @@ config SAMA5D3
|
|||||||
config SAMA5D4
|
config SAMA5D4
|
||||||
bool
|
bool
|
||||||
select CPU_V7A
|
select CPU_V7A
|
||||||
|
select ATMEL_SFR
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Atmel AT91 board select"
|
prompt "Atmel AT91 board select"
|
||||||
@ -173,6 +175,7 @@ config TARGET_SAMA5D27_SOM1_EK
|
|||||||
select BOARD_LATE_INIT
|
select BOARD_LATE_INIT
|
||||||
select CPU_V7A
|
select CPU_V7A
|
||||||
select SUPPORT_SPL
|
select SUPPORT_SPL
|
||||||
|
select ATMEL_SFR
|
||||||
help
|
help
|
||||||
The SAMA5D27 SOM1 embeds SAMA5D2 SiP(System in Package),
|
The SAMA5D27 SOM1 embeds SAMA5D2 SiP(System in Package),
|
||||||
a 64Mbit QSPI flash, KSZ8081 Phy and a Mac-address EEPROM
|
a 64Mbit QSPI flash, KSZ8081 Phy and a Mac-address EEPROM
|
||||||
@ -196,7 +199,7 @@ config TARGET_SAMA5D27_WLSOM1_EK
|
|||||||
|
|
||||||
config TARGET_SAMA5D2_ICP
|
config TARGET_SAMA5D2_ICP
|
||||||
bool "SAMA5D2 Industrial Connectivity Platform (ICP)"
|
bool "SAMA5D2 Industrial Connectivity Platform (ICP)"
|
||||||
select CPU_V7A
|
select SAMA5D2
|
||||||
select SUPPORT_SPL
|
select SUPPORT_SPL
|
||||||
select BOARD_EARLY_INIT_F
|
select BOARD_EARLY_INIT_F
|
||||||
select BOARD_LATE_INIT
|
select BOARD_LATE_INIT
|
||||||
@ -292,6 +295,10 @@ config TARGET_WB50N
|
|||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
config ATMEL_SFR
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
config SYS_SOC
|
config SYS_SOC
|
||||||
default "at91"
|
default "at91"
|
||||||
|
|
||||||
|
@ -7,10 +7,11 @@ obj-$(CONFIG_AT91SAM9G20) += sdram.o spl_at91.o
|
|||||||
obj-$(CONFIG_AT91SAM9M10G45) += mpddrc.o spl_at91.o
|
obj-$(CONFIG_AT91SAM9M10G45) += mpddrc.o spl_at91.o
|
||||||
obj-$(CONFIG_AT91SAM9N12) += mpddrc.o spl_at91.o
|
obj-$(CONFIG_AT91SAM9N12) += mpddrc.o spl_at91.o
|
||||||
obj-$(CONFIG_AT91SAM9X5) += mpddrc.o spl_at91.o
|
obj-$(CONFIG_AT91SAM9X5) += mpddrc.o spl_at91.o
|
||||||
obj-$(CONFIG_SAMA5D2) += bootparams_atmel.o mpddrc.o spl_atmel.o matrix.o atmel_sfr.o
|
obj-$(CONFIG_SAMA5D2) += bootparams_atmel.o mpddrc.o spl_atmel.o matrix.o
|
||||||
obj-$(CONFIG_SAMA5D3) += bootparams_atmel.o mpddrc.o spl_atmel.o
|
obj-$(CONFIG_SAMA5D3) += bootparams_atmel.o mpddrc.o spl_atmel.o
|
||||||
obj-$(CONFIG_SAMA5D4) += bootparams_atmel.o mpddrc.o spl_atmel.o matrix.o atmel_sfr.o
|
obj-$(CONFIG_SAMA5D4) += bootparams_atmel.o mpddrc.o spl_atmel.o matrix.o
|
||||||
obj-y += spl.o
|
obj-y += spl.o
|
||||||
|
obj-$(CONFIG_ATMEL_SFR) += atmel_sfr.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
obj-y += clock.o
|
obj-y += clock.o
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/arch/sama5_sfr.h>
|
#include <asm/arch/sama5_sfr.h>
|
||||||
|
|
||||||
|
#if defined(CONFIG_SAMA5D2) || defined(CONFIG_SAMA5D4)
|
||||||
void redirect_int_from_saic_to_aic(void)
|
void redirect_int_from_saic_to_aic(void)
|
||||||
{
|
{
|
||||||
struct atmel_sfr *sfr = (struct atmel_sfr *)ATMEL_BASE_SFR;
|
struct atmel_sfr *sfr = (struct atmel_sfr *)ATMEL_BASE_SFR;
|
||||||
@ -26,3 +27,5 @@ void configure_2nd_sram_as_l2_cache(void)
|
|||||||
|
|
||||||
writel(1, &sfr->l2cc_hramc);
|
writel(1, &sfr->l2cc_hramc);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user