m68k: mcf5227x: move CPU type to Kconfig and refactor config.mk

Move the CPU type config options from include/configs/M52277EVB.h
to arch/m68k/Kconfig and refactor the CPU flags select in
arch/m68k/cpu/mcf5227x/config.mk.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: Alison Wang <alison.wang@freescale.com>
Cc: Angelo Dureghello <angelo@sysam.it>
This commit is contained in:
Masahiro Yamada 2015-03-27 17:01:10 +09:00 committed by Tom Rini
parent 7f8ebbf095
commit 2bb1cd53e9
3 changed files with 11 additions and 3 deletions

View file

@ -29,6 +29,9 @@ config MCF5441x
config MCF5445x config MCF5445x
bool bool
config MCF5227x
bool
# processor type # processor type
config M5208 config M5208
bool bool
@ -87,11 +90,16 @@ config M54455
bool bool
select MCF5445x select MCF5445x
config M52277
bool
select MCF5227x
choice choice
prompt "Target select" prompt "Target select"
config TARGET_M52277EVB config TARGET_M52277EVB
bool "Support M52277EVB" bool "Support M52277EVB"
select M52277
config TARGET_M5235EVB config TARGET_M5235EVB
bool "Support M5235EVB" bool "Support M5235EVB"

View file

@ -7,4 +7,6 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# #
PLATFORM_CPPFLAGS += -mcpu=52277 -fPIC cpuflags-$(CONFIG_M52277) := -mcpu=52277 -fPIC
PLATFORM_CPPFLAGS += $(cpuflags-y)

View file

@ -18,8 +18,6 @@
* High Level Configuration Options * High Level Configuration Options
* (easy to change) * (easy to change)
*/ */
#define CONFIG_MCF5227x /* define processor family */
#define CONFIG_M52277 /* define processor type */
#define CONFIG_M52277EVB /* M52277EVB board */ #define CONFIG_M52277EVB /* M52277EVB board */
#define CONFIG_MCFUART #define CONFIG_MCFUART