summaryrefslogtreecommitdiff
path: root/board/abilis
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2023-12-14 13:16:44 -0500
committerTom Rini <[email protected]>2023-12-21 08:54:37 -0500
commit28388f4ddbfa9a874e3c2d59217a14e51ce8e5e0 (patch)
tree32e208306cb3d6d5c40b1058e99701cb08470029 /board/abilis
parent10be393cf0af497a7b71b87afc5a3e3eb8fecdd5 (diff)
arc: Cleanup and audit usage of <config.h>
We need to include <config.h> directly when a file needs to have something such as CFG_SYS_SDRAM_SIZE referenced as this file is not automatically globally included and is most commonly indirectly included via common.h. Remove most cases of arc including config.h directly, but add it where needed. Further clean up the tb100 board config.h file so that we don't rely on config.h being included there for a value used in a single place. Reviewed-by: Simon Glass <[email protected]> Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'board/abilis')
-rw-r--r--board/abilis/tb100/tb100.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/abilis/tb100/tb100.c b/board/abilis/tb100/tb100.c
index 3dc9e14ef8c..eb7d1290813 100644
--- a/board/abilis/tb100/tb100.c
+++ b/board/abilis/tb100/tb100.c
@@ -14,6 +14,10 @@ void reset_cpu(void)
writel(0x1, (void *)CRM_SWRESET);
}
+/*
+ * Ethernet configuration
+ */
+#define ETH0_BASE_ADDRESS 0xFE100000
int board_eth_init(struct bd_info *bis)
{
if (designware_initialize(ETH0_BASE_ADDRESS, 0) >= 0)