Skip to content
Snippets Groups Projects
Commit dacc8c6f authored by Valentin Longchamp's avatar Valentin Longchamp Committed by Albert ARIBAUD
Browse files

arm/kirkwood: protect the ENV_SPI #defines


So that they can be redefined by some boards specific values.

Signed-off-by: default avatarValentin Longchamp <valentin.longchamp@keymile.com>
Signed-off-by: default avatarHolger Brunck <holger.brunck@keymile.com>
cc: Prafulla Wadaskar <prafulla@marvell.com>
parent c59c0857
No related branches found
No related tags found
No related merge requests found
...@@ -82,9 +82,15 @@ ...@@ -82,9 +82,15 @@
#ifdef CONFIG_CMD_SF #ifdef CONFIG_CMD_SF
#define CONFIG_HARD_SPI 1 #define CONFIG_HARD_SPI 1
#define CONFIG_KIRKWOOD_SPI 1 #define CONFIG_KIRKWOOD_SPI 1
#define CONFIG_ENV_SPI_BUS 0 #ifndef CONFIG_ENV_SPI_BUS
#define CONFIG_ENV_SPI_CS 0 # define CONFIG_ENV_SPI_BUS 0
#define CONFIG_ENV_SPI_MAX_HZ 50000000 /*50Mhz */ #endif
#ifndef CONFIG_ENV_SPI_CS
# define CONFIG_ENV_SPI_CS 0
#endif
#ifndef CONFIG_ENV_SPI_MAX_HZ
# define CONFIG_ENV_SPI_MAX_HZ 50000000
#endif
#endif #endif
/* /*
......
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