mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
sh: move CONFIG_{SH2, SH2A, SH3, SH4} to Kconfig
This commit moves CONFIG_SH2, CONFIG_SH2A, CONFIG_SH3, CONFIG_SH4 to Kconfig renaming into CONFIG_CPU_SH2, CONFIG_CPU_SH2A, CONFIG_CPU_SH3, CONFIG_CPU_SH4, respectively because arch/sh/Kconfig of Linux uses CONFIG_CPU_SH* convention. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
This commit is contained in:
parent
0e29429f76
commit
7d2366627e
12 changed files with 53 additions and 18 deletions
|
@ -4,71 +4,109 @@ menu "SuperH architecture"
|
||||||
config SYS_ARCH
|
config SYS_ARCH
|
||||||
default "sh"
|
default "sh"
|
||||||
|
|
||||||
|
config CPU_SH2
|
||||||
|
bool
|
||||||
|
|
||||||
|
config CPU_SH2A
|
||||||
|
bool
|
||||||
|
select CPU_SH2
|
||||||
|
|
||||||
|
config CPU_SH3
|
||||||
|
bool
|
||||||
|
|
||||||
|
config CPU_SH4
|
||||||
|
bool
|
||||||
|
|
||||||
|
config CPU_SH4A
|
||||||
|
bool
|
||||||
|
select CPU_SH4
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Target select"
|
prompt "Target select"
|
||||||
|
|
||||||
config TARGET_RSK7203
|
config TARGET_RSK7203
|
||||||
bool "RSK+ 7203"
|
bool "RSK+ 7203"
|
||||||
|
select CPU_SH2A
|
||||||
|
|
||||||
config TARGET_RSK7264
|
config TARGET_RSK7264
|
||||||
bool "RSK2+SH7264"
|
bool "RSK2+SH7264"
|
||||||
|
select CPU_SH2A
|
||||||
|
|
||||||
config TARGET_RSK7269
|
config TARGET_RSK7269
|
||||||
bool "RSK2+SH7269"
|
bool "RSK2+SH7269"
|
||||||
|
select CPU_SH2A
|
||||||
|
|
||||||
config TARGET_MPR2
|
config TARGET_MPR2
|
||||||
bool "Magic Panel Release 2 board"
|
bool "Magic Panel Release 2 board"
|
||||||
|
select CPU_SH3
|
||||||
|
|
||||||
config TARGET_MS7720SE
|
config TARGET_MS7720SE
|
||||||
bool "Support ms7720se"
|
bool "Support ms7720se"
|
||||||
|
select CPU_SH3
|
||||||
|
|
||||||
config TARGET_SHMIN
|
config TARGET_SHMIN
|
||||||
bool "SHMIN"
|
bool "SHMIN"
|
||||||
|
select CPU_SH3
|
||||||
|
|
||||||
config TARGET_ESPT
|
config TARGET_ESPT
|
||||||
bool "Data Technology ESPT-GIGA board"
|
bool "Data Technology ESPT-GIGA board"
|
||||||
|
select CPU_SH4
|
||||||
|
|
||||||
config TARGET_MS7722SE
|
config TARGET_MS7722SE
|
||||||
bool "SolutionEngine 7722"
|
bool "SolutionEngine 7722"
|
||||||
|
select CPU_SH4
|
||||||
|
|
||||||
config TARGET_MS7750SE
|
config TARGET_MS7750SE
|
||||||
bool "SolutionEngine 7750"
|
bool "SolutionEngine 7750"
|
||||||
|
select CPU_SH4
|
||||||
|
|
||||||
config TARGET_AP_SH4A_4A
|
config TARGET_AP_SH4A_4A
|
||||||
bool "ALPHAPROJECT AP-SH4A-4A"
|
bool "ALPHAPROJECT AP-SH4A-4A"
|
||||||
|
select CPU_SH4
|
||||||
|
|
||||||
config TARGET_AP325RXA
|
config TARGET_AP325RXA
|
||||||
bool "Renesas AP-325RXA"
|
bool "Renesas AP-325RXA"
|
||||||
|
select CPU_SH4
|
||||||
|
|
||||||
config TARGET_ECOVEC
|
config TARGET_ECOVEC
|
||||||
bool "EcoVec"
|
bool "EcoVec"
|
||||||
|
select CPU_SH4
|
||||||
|
|
||||||
config TARGET_MIGOR
|
config TARGET_MIGOR
|
||||||
bool "Migo-R"
|
bool "Migo-R"
|
||||||
|
select CPU_SH4
|
||||||
|
|
||||||
config TARGET_R0P7734
|
config TARGET_R0P7734
|
||||||
bool "Support r0p7734"
|
bool "Support r0p7734"
|
||||||
|
select CPU_SH4
|
||||||
|
|
||||||
config TARGET_R2DPLUS
|
config TARGET_R2DPLUS
|
||||||
bool "Renesas R2D-PLUS"
|
bool "Renesas R2D-PLUS"
|
||||||
|
select CPU_SH4
|
||||||
|
|
||||||
config TARGET_R7780MP
|
config TARGET_R7780MP
|
||||||
bool "R7780MP board"
|
bool "R7780MP board"
|
||||||
|
select CPU_SH4
|
||||||
|
|
||||||
config TARGET_SH7752EVB
|
config TARGET_SH7752EVB
|
||||||
bool "SH7752EVB"
|
bool "SH7752EVB"
|
||||||
|
select CPU_SH4
|
||||||
|
|
||||||
config TARGET_SH7753EVB
|
config TARGET_SH7753EVB
|
||||||
bool "SH7753EVB"
|
bool "SH7753EVB"
|
||||||
|
select CPU_SH4
|
||||||
|
|
||||||
config TARGET_SH7757LCR
|
config TARGET_SH7757LCR
|
||||||
bool "SH7757LCR"
|
bool "SH7757LCR"
|
||||||
|
select CPU_SH4
|
||||||
|
|
||||||
config TARGET_SH7763RDP
|
config TARGET_SH7763RDP
|
||||||
bool "SH7763RDP"
|
bool "SH7763RDP"
|
||||||
|
select CPU_SH4
|
||||||
|
|
||||||
config TARGET_SH7785LCR
|
config TARGET_SH7785LCR
|
||||||
bool "SH7785LCR"
|
bool "SH7785LCR"
|
||||||
|
select CPU_SH4
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
|
|
@ -7,11 +7,11 @@
|
||||||
#
|
#
|
||||||
ENDIANNESS += -EB
|
ENDIANNESS += -EB
|
||||||
|
|
||||||
ifdef CONFIG_SH2A
|
ifdef CONFIG_CPU_SH2A
|
||||||
PLATFORM_CPPFLAGS += -m2a -m2a-nofpu -mb
|
PLATFORM_CPPFLAGS += -m2a -m2a-nofpu -mb
|
||||||
else # SH2
|
else # SH2
|
||||||
PLATFORM_CPPFLAGS += -m3e -mb
|
PLATFORM_CPPFLAGS += -m3e -mb
|
||||||
endif
|
endif
|
||||||
PLATFORM_CPPFLAGS += -DCONFIG_SH2 $(call cc-option,-mno-fdpic)
|
PLATFORM_CPPFLAGS += $(call cc-option,-mno-fdpic)
|
||||||
|
|
||||||
PLATFORM_LDFLAGS += $(ENDIANNESS)
|
PLATFORM_LDFLAGS += $(ENDIANNESS)
|
||||||
|
|
|
@ -11,4 +11,4 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0+
|
# SPDX-License-Identifier: GPL-2.0+
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
PLATFORM_CPPFLAGS += -DCONFIG_SH3 -m3
|
PLATFORM_CPPFLAGS += -m3
|
||||||
|
|
|
@ -8,4 +8,4 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0+
|
# SPDX-License-Identifier: GPL-2.0+
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
PLATFORM_CPPFLAGS += -DCONFIG_SH4 -m4-nofpu
|
PLATFORM_CPPFLAGS += -m4-nofpu
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef __ASM_SH_CACHE_H
|
#ifndef __ASM_SH_CACHE_H
|
||||||
#define __ASM_SH_CACHE_H
|
#define __ASM_SH_CACHE_H
|
||||||
|
|
||||||
#if defined(CONFIG_SH4)
|
#if defined(CONFIG_CPU_SH4)
|
||||||
|
|
||||||
int cache_control(unsigned int cmd);
|
int cache_control(unsigned int cmd);
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ struct __large_struct { unsigned long buf[100]; };
|
||||||
*/
|
*/
|
||||||
#define ARCH_DMA_MINALIGN 32
|
#define ARCH_DMA_MINALIGN 32
|
||||||
|
|
||||||
#endif /* CONFIG_SH4 */
|
#endif /* CONFIG_CPU_SH4 */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Use the L1 data cache line size value for the minimum DMA buffer alignment
|
* Use the L1 data cache line size value for the minimum DMA buffer alignment
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#ifndef _ASM_SH_PROCESSOR_H_
|
#ifndef _ASM_SH_PROCESSOR_H_
|
||||||
#define _ASM_SH_PROCESSOR_H_
|
#define _ASM_SH_PROCESSOR_H_
|
||||||
#if defined(CONFIG_SH2)
|
#if defined(CONFIG_CPU_SH2)
|
||||||
# include <asm/cpu_sh2.h>
|
# include <asm/cpu_sh2.h>
|
||||||
#elif defined(CONFIG_SH3)
|
#elif defined(CONFIG_CPU_SH3)
|
||||||
# include <asm/cpu_sh3.h>
|
# include <asm/cpu_sh3.h>
|
||||||
#elif defined(CONFIG_SH4)
|
#elif defined(CONFIG_CPU_SH4)
|
||||||
# include <asm/cpu_sh4.h>
|
# include <asm/cpu_sh4.h>
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
obj-y += board.o
|
obj-y += board.o
|
||||||
obj-$(CONFIG_CMD_BOOTM) += bootm.o
|
obj-$(CONFIG_CMD_BOOTM) += bootm.o
|
||||||
ifeq ($(CONFIG_SH2),y)
|
ifeq ($(CONFIG_CPU_SH2),y)
|
||||||
obj-y += time_sh2.o
|
obj-y += time_sh2.o
|
||||||
else
|
else
|
||||||
obj-y += time.o
|
obj-y += time.o
|
||||||
|
|
|
@ -433,7 +433,7 @@ static inline void sci_##name##_out(struct uart_port *port,\
|
||||||
SCI_OUT(sci_size, sci_offset, value);\
|
SCI_OUT(sci_size, sci_offset, value);\
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(CONFIG_SH3) || \
|
#if defined(CONFIG_CPU_SH3) || \
|
||||||
defined(CONFIG_ARCH_SH7367) || \
|
defined(CONFIG_ARCH_SH7367) || \
|
||||||
defined(CONFIG_ARCH_SH7377) || \
|
defined(CONFIG_ARCH_SH7377) || \
|
||||||
defined(CONFIG_ARCH_SH7372) || \
|
defined(CONFIG_ARCH_SH7372) || \
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
#define __RSK7203_H
|
#define __RSK7203_H
|
||||||
|
|
||||||
#undef DEBUG
|
#undef DEBUG
|
||||||
#define CONFIG_SH2A 1
|
|
||||||
#define CONFIG_CPU_SH7203 1
|
#define CONFIG_CPU_SH7203 1
|
||||||
#define CONFIG_RSK7203 1
|
#define CONFIG_RSK7203 1
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
#define __RSK7264_H
|
#define __RSK7264_H
|
||||||
|
|
||||||
#undef DEBUG
|
#undef DEBUG
|
||||||
#define CONFIG_SH2A 1
|
|
||||||
#define CONFIG_CPU_SH7264 1
|
#define CONFIG_CPU_SH7264 1
|
||||||
#define CONFIG_RSK7264 1
|
#define CONFIG_RSK7264 1
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
#define __RSK7269_H
|
#define __RSK7269_H
|
||||||
|
|
||||||
#undef DEBUG
|
#undef DEBUG
|
||||||
#define CONFIG_SH2A 1
|
|
||||||
#define CONFIG_CPU_SH7269 1
|
#define CONFIG_CPU_SH7269 1
|
||||||
#define CONFIG_RSK7269 1
|
#define CONFIG_RSK7269 1
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
#include <asm/types.h>
|
#include <asm/types.h>
|
||||||
|
|
||||||
#if defined(CONFIG_SH3)
|
#if defined(CONFIG_CPU_SH3)
|
||||||
struct tmu_regs {
|
struct tmu_regs {
|
||||||
u8 tocr;
|
u8 tocr;
|
||||||
u8 reserved0;
|
u8 reserved0;
|
||||||
|
@ -45,9 +45,9 @@ struct tmu_regs {
|
||||||
u16 reserved4;
|
u16 reserved4;
|
||||||
u32 tcpr2;
|
u32 tcpr2;
|
||||||
};
|
};
|
||||||
#endif /* CONFIG_SH3 */
|
#endif /* CONFIG_CPU_SH3 */
|
||||||
|
|
||||||
#if defined(CONFIG_SH4) || defined(CONFIG_RMOBILE)
|
#if defined(CONFIG_CPU_SH4) || defined(CONFIG_RMOBILE)
|
||||||
struct tmu_regs {
|
struct tmu_regs {
|
||||||
u32 reserved;
|
u32 reserved;
|
||||||
u8 tstr;
|
u8 tstr;
|
||||||
|
@ -65,7 +65,7 @@ struct tmu_regs {
|
||||||
u16 tcr2;
|
u16 tcr2;
|
||||||
u16 reserved5;
|
u16 reserved5;
|
||||||
};
|
};
|
||||||
#endif /* CONFIG_SH4 */
|
#endif /* CONFIG_CPU_SH4 */
|
||||||
|
|
||||||
static inline unsigned long get_tmu0_clk_rate(void)
|
static inline unsigned long get_tmu0_clk_rate(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue