Skip to content

Commit

Permalink
cam_enc_4xx: Move CONFIG_SPL_PAD_TO to a config header
Browse files Browse the repository at this point in the history
For most boards which define CONFIG_SPL_PAD_TO,
it is defined in config header files.
Currently, there exists only one exception, cam_enc_4xx board.

This patch moves CONFIG_SPL_PAD_TO definition
from board/ait/cam_enc_4xx/config.mk
to include/configs/cam_enc_4xx.h.

With this modification, we can delete a glue code
in the top level config.mk:

ifneq ($(CONFIG_SPL_PAD_TO),)
CPPFLAGS += -DCONFIG_SPL_PAD_TO=$(CONFIG_SPL_PAD_TO)
endif

Signed-off-by: Masahiro Yamada <[email protected]>
Cc: Heiko Schocher <[email protected]>
  • Loading branch information
masahir0y authored and trini committed Sep 6, 2013
1 parent cb4ef5b commit 1affd4d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions board/ait/cam_enc_4xx/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
# (mem base + reserved)
#

#Provide at least 16MB spacing between us and the Linux Kernel image
CONFIG_SPL_PAD_TO := 12320
UBL_CONFIG = $(SRCTREE)/board/$(BOARDDIR)/ublimage.cfg
ifndef CONFIG_SPL_BUILD
ALL-y += $(obj)u-boot.ubl
Expand Down
4 changes: 0 additions & 4 deletions config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,6 @@ ifneq ($(CONFIG_SYS_TEXT_BASE),)
CPPFLAGS += -DCONFIG_SYS_TEXT_BASE=$(CONFIG_SYS_TEXT_BASE)
endif

ifneq ($(CONFIG_SPL_PAD_TO),)
CPPFLAGS += -DCONFIG_SPL_PAD_TO=$(CONFIG_SPL_PAD_TO)
endif

ifeq ($(CONFIG_SPL_BUILD),y)
CPPFLAGS += -DCONFIG_SPL_BUILD
ifeq ($(CONFIG_TPL_BUILD),y)
Expand Down
2 changes: 2 additions & 0 deletions include/configs/cam_enc_4xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@
#define CONFIG_SPL_STACK (0x00010000 + 0x7f00)

#define CONFIG_SPL_TEXT_BASE 0x00000020 /*CONFIG_SYS_SRAM_START*/
/* Provide at least 16MB spacing between us and the Linux Kernel image */
#define CONFIG_SPL_PAD_TO 12320
#define CONFIG_SPL_MAX_FOOTPRINT 12288

#ifndef CONFIG_SPL_BUILD
Expand Down

0 comments on commit 1affd4d

Please sign in to comment.