ARM: uniphier: prepare directory structure for ARMv8 SoC support
Before adding ARMv8 support, this commit refactors the directory structure. Move ARMv7 specific files to arch/arm/mach-uniphier/arm32 to avoid a mess by mixture of ARMv7 and ARMv8 code. Also move the "select CPU_V7" to the lower-level menu because we will have to select ARM64 instead of CPU_V7 for ARMv8 SoCs. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
2247c332db
commit
fe5ea57bdb
11 changed files with 22 additions and 11 deletions
|
@ -690,7 +690,6 @@ config TARGET_COLIBRI_PXA270
|
||||||
config ARCH_UNIPHIER
|
config ARCH_UNIPHIER
|
||||||
bool "Socionext UniPhier SoCs"
|
bool "Socionext UniPhier SoCs"
|
||||||
select CLK_UNIPHIER
|
select CLK_UNIPHIER
|
||||||
select CPU_V7
|
|
||||||
select SUPPORT_SPL
|
select SUPPORT_SPL
|
||||||
select SPL
|
select SPL
|
||||||
select OF_CONTROL
|
select OF_CONTROL
|
||||||
|
|
|
@ -9,15 +9,19 @@ choice
|
||||||
|
|
||||||
config ARCH_UNIPHIER_PH1_SLD3
|
config ARCH_UNIPHIER_PH1_SLD3
|
||||||
bool "UniPhier PH1-sLD3 SoC"
|
bool "UniPhier PH1-sLD3 SoC"
|
||||||
|
select CPU_V7
|
||||||
|
|
||||||
config ARCH_UNIPHIER_LD4_SLD8
|
config ARCH_UNIPHIER_LD4_SLD8
|
||||||
bool "UniPhier PH1-LD4/PH1-sLD8 SoC"
|
bool "UniPhier PH1-LD4/PH1-sLD8 SoC"
|
||||||
|
select CPU_V7
|
||||||
|
|
||||||
config ARCH_UNIPHIER_PH1_PRO4
|
config ARCH_UNIPHIER_PH1_PRO4
|
||||||
bool "UniPhier PH1-Pro4 SoC"
|
bool "UniPhier PH1-Pro4 SoC"
|
||||||
|
select CPU_V7
|
||||||
|
|
||||||
config ARCH_UNIPHIER_PRO5_PXS2_LD6B
|
config ARCH_UNIPHIER_PRO5_PXS2_LD6B
|
||||||
bool "UniPhier PH1-Pro5/ProXstream2/PH1-LD6b SoC"
|
bool "UniPhier PH1-Pro5/ProXstream2/PH1-LD6b SoC"
|
||||||
|
select CPU_V7
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
|
|
@ -4,16 +4,11 @@
|
||||||
|
|
||||||
ifdef CONFIG_SPL_BUILD
|
ifdef CONFIG_SPL_BUILD
|
||||||
|
|
||||||
obj-y += lowlevel_init.o
|
|
||||||
|
|
||||||
obj-y += init/ bcu/ memconf/ pll/ early-clk/ early-pinctrl/
|
obj-y += init/ bcu/ memconf/ pll/ early-clk/ early-pinctrl/
|
||||||
obj-$(CONFIG_MICRO_SUPPORT_CARD) += sbc/
|
obj-$(CONFIG_MICRO_SUPPORT_CARD) += sbc/
|
||||||
|
|
||||||
obj-$(CONFIG_DEBUG_LL) += debug_ll.o
|
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
obj-y += late_lowlevel_init.o
|
|
||||||
obj-$(CONFIG_BOARD_EARLY_INIT_F) += board_early_init_f.o
|
obj-$(CONFIG_BOARD_EARLY_INIT_F) += board_early_init_f.o
|
||||||
obj-$(CONFIG_DISPLAY_CPUINFO) += cpu_info.o
|
obj-$(CONFIG_DISPLAY_CPUINFO) += cpu_info.o
|
||||||
obj-$(CONFIG_MISC_INIT_F) += print_misc_info.o
|
obj-$(CONFIG_MISC_INIT_F) += print_misc_info.o
|
||||||
|
@ -22,16 +17,16 @@ obj-y += board_common.o
|
||||||
obj-$(CONFIG_BOARD_EARLY_INIT_R) += board_early_init_r.o
|
obj-$(CONFIG_BOARD_EARLY_INIT_R) += board_early_init_r.o
|
||||||
obj-$(CONFIG_BOARD_LATE_INIT) += board_late_init.o
|
obj-$(CONFIG_BOARD_LATE_INIT) += board_late_init.o
|
||||||
obj-y += reset.o
|
obj-y += reset.o
|
||||||
obj-y += cache_uniphier.o
|
|
||||||
|
|
||||||
obj-y += pinctrl/ clk/
|
obj-y += pinctrl/ clk/
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
obj-y += timer.o
|
|
||||||
obj-y += boards.o
|
obj-y += boards.o
|
||||||
obj-y += soc_info.o
|
obj-y += soc_info.o
|
||||||
obj-y += boot-mode/
|
obj-y += boot-mode/
|
||||||
obj-y += dram/
|
obj-y += dram/
|
||||||
|
|
||||||
obj-$(CONFIG_MICRO_SUPPORT_CARD) += micro-support-card.o
|
obj-$(CONFIG_MICRO_SUPPORT_CARD) += micro-support-card.o
|
||||||
|
|
||||||
|
obj-$(CONFIG_CPU_V7) += arm32/
|
||||||
|
|
13
arch/arm/mach-uniphier/arm32/Makefile
Normal file
13
arch/arm/mach-uniphier/arm32/Makefile
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-2.0+
|
||||||
|
#
|
||||||
|
|
||||||
|
ifdef CONFIG_SPL_BUILD
|
||||||
|
obj-y += lowlevel_init.o
|
||||||
|
obj-$(CONFIG_DEBUG_LL) += debug_ll.o
|
||||||
|
else
|
||||||
|
obj-y += late_lowlevel_init.o
|
||||||
|
obj-y += cache_uniphier.o
|
||||||
|
endif
|
||||||
|
|
||||||
|
obj-y += timer.o
|
|
@ -9,9 +9,9 @@
|
||||||
#include <linux/serial_reg.h>
|
#include <linux/serial_reg.h>
|
||||||
#include <linux/linkage.h>
|
#include <linux/linkage.h>
|
||||||
|
|
||||||
#include "bcu/bcu-regs.h"
|
#include "../bcu/bcu-regs.h"
|
||||||
#include "sc-regs.h"
|
#include "../sc-regs.h"
|
||||||
#include "sg-regs.h"
|
#include "../sg-regs.h"
|
||||||
|
|
||||||
#if !defined(CONFIG_DEBUG_SEMIHOSTING)
|
#if !defined(CONFIG_DEBUG_SEMIHOSTING)
|
||||||
#include CONFIG_DEBUG_LL_INCLUDE
|
#include CONFIG_DEBUG_LL_INCLUDE
|
Loading…
Reference in a new issue