diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2018-04-01 09:22:37 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-04-08 23:00:58 -0400 |
commit | 8cf2f3602e6778b207f3a95fda6be3fc420a8162 (patch) | |
tree | 3bd1597bf8d216e4ff3bfbcfc7a69ffc67186a6a /board/ti/am335x/board.c | |
parent | a18d1064db93490422b968bac1a9e10387a34cfc (diff) | |
download | u-boot-8cf2f3602e6778b207f3a95fda6be3fc420a8162.zip u-boot-8cf2f3602e6778b207f3a95fda6be3fc420a8162.tar.gz u-boot-8cf2f3602e6778b207f3a95fda6be3fc420a8162.tar.bz2 |
ti: am335x: Fix build when networking is disabled
When compiling without CONFIG_CLOCK_SYNTHESIZER (which is implied by
CONFIG_DRIVER_TI_CPSW for am335x_evm), exclude the network setup for
AM335x-ICEv2 to avoid link time failures:
board/ti/am335x/board.c:683: undefined reference to `setup_clock_synthesizer'
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Diffstat (limited to 'board/ti/am335x/board.c')
-rw-r--r-- | board/ti/am335x/board.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c index 7f0fb5d..c33bf58 100644 --- a/board/ti/am335x/board.c +++ b/board/ti/am335x/board.c @@ -563,8 +563,8 @@ void sdram_init(void) } #endif -#if !defined(CONFIG_SPL_BUILD) || \ - (defined(CONFIG_SPL_ETH_SUPPORT) && defined(CONFIG_SPL_BUILD)) +#if defined(CONFIG_CLOCK_SYNTHESIZER) && (!defined(CONFIG_SPL_BUILD) || \ + (defined(CONFIG_SPL_ETH_SUPPORT) && defined(CONFIG_SPL_BUILD))) static void request_and_set_gpio(int gpio, char *name, int val) { int ret; @@ -621,8 +621,8 @@ int board_init(void) gpmc_init(); #endif -#if !defined(CONFIG_SPL_BUILD) || \ - (defined(CONFIG_SPL_ETH_SUPPORT) && defined(CONFIG_SPL_BUILD)) +#if defined(CONFIG_CLOCK_SYNTHESIZER) && (!defined(CONFIG_SPL_BUILD) || \ + (defined(CONFIG_SPL_ETH_SUPPORT) && defined(CONFIG_SPL_BUILD))) if (board_is_icev2()) { int rv; u32 reg; |