Skip to content
Snippets Groups Projects
Commit 5cd9661d authored by Lokesh Vutla's avatar Lokesh Vutla Committed by Tom Rini
Browse files

arm: keystone: Move cmd_ddr3 to a common place


Move cmd_ddr3 to cmd/ti in order to make
it build for non-keystone TI platforms.

Signed-off-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
[trini: Rename to ddr3.c not cmd_ddr3.c]
Signed-off-by: default avatarTom Rini <trini@konsulko.com>
parent 650fda93
No related branches found
No related tags found
No related merge requests found
...@@ -7,16 +7,19 @@ choice ...@@ -7,16 +7,19 @@ choice
config TARGET_K2HK_EVM config TARGET_K2HK_EVM
bool "TI Keystone 2 Kepler/Hawking EVM" bool "TI Keystone 2 Kepler/Hawking EVM"
select SPL_BOARD_INIT if SPL select SPL_BOARD_INIT if SPL
select CMD_DDR3
imply DM_I2C imply DM_I2C
config TARGET_K2E_EVM config TARGET_K2E_EVM
bool "TI Keystone 2 Edison EVM" bool "TI Keystone 2 Edison EVM"
select SPL_BOARD_INIT if SPL select SPL_BOARD_INIT if SPL
select CMD_DDR3
imply DM_I2C imply DM_I2C
config TARGET_K2L_EVM config TARGET_K2L_EVM
bool "TI Keystone 2 Lamar EVM" bool "TI Keystone 2 Lamar EVM"
select SPL_BOARD_INIT if SPL select SPL_BOARD_INIT if SPL
select CMD_DDR3
imply DM_I2C imply DM_I2C
config TARGET_K2G_EVM config TARGET_K2G_EVM
...@@ -24,6 +27,7 @@ config TARGET_K2G_EVM ...@@ -24,6 +27,7 @@ config TARGET_K2G_EVM
select BOARD_LATE_INIT select BOARD_LATE_INIT
select SPL_BOARD_INIT if SPL select SPL_BOARD_INIT if SPL
select TI_I2C_BOARD_DETECT select TI_I2C_BOARD_DETECT
select CMD_DDR3
imply DM_I2C imply DM_I2C
endchoice endchoice
......
...@@ -13,7 +13,6 @@ ifndef CONFIG_SPL_BUILD ...@@ -13,7 +13,6 @@ ifndef CONFIG_SPL_BUILD
obj-y += cmd_clock.o obj-y += cmd_clock.o
obj-y += cmd_mon.o obj-y += cmd_mon.o
obj-y += cmd_poweroff.o obj-y += cmd_poweroff.o
obj-y += cmd_ddr3.o
endif endif
obj-y += msmc.o obj-y += msmc.o
obj-y += ddr3.o obj-y += ddr3.o
......
...@@ -1184,6 +1184,8 @@ config CMD_UUID ...@@ -1184,6 +1184,8 @@ config CMD_UUID
endmenu endmenu
source "cmd/ti/Kconfig"
config CMD_BOOTSTAGE config CMD_BOOTSTAGE
bool "Enable the 'bootstage' command" bool "Enable the 'bootstage' command"
depends on BOOTSTAGE depends on BOOTSTAGE
......
...@@ -159,6 +159,7 @@ endif # !CONFIG_SPL_BUILD ...@@ -159,6 +159,7 @@ endif # !CONFIG_SPL_BUILD
obj-y += nvedit.o obj-y += nvedit.o
obj-$(CONFIG_ARCH_MVEBU) += mvebu/ obj-$(CONFIG_ARCH_MVEBU) += mvebu/
obj-$(CONFIG_TI_COMMON_CMD_OPTIONS) += ti/
filechk_data_gz = (echo "static const char data_gz[] ="; cat $< | scripts/bin2c; echo ";") filechk_data_gz = (echo "static const char data_gz[] ="; cat $< | scripts/bin2c; echo ";")
......
menu "TI specific command line interface"
config CMD_DDR3
bool "command for verifying DDR features"
help
Support for testing ddr3 on TI platforms. This command
supports memory verification, memory comapre and ecc
verification if supported.
endmenu
# Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/
#
# SPDX-License-Identifier: GPL-2.0+
#
obj- += dummy.o
ifndef CONFIG_SPL_BUILD
obj-$(CONFIG_CMD_DDR3) += ddr3.o
endif
/* /*
* Keystone2: DDR3 test commands * EMIF: DDR3 test commands
* *
* (C) Copyright 2012-2014 * Copyright (C) 2012-2017 Texas Instruments Incorporated, <www.ti.com>
* Texas Instruments Incorporated, <www.ti.com>
* *
* SPDX-License-Identifier: GPL-2.0+ * SPDX-License-Identifier: GPL-2.0+
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment