Commit 104c752f8409d969274810a64712b5c27721299b
Committed by
Simon Glass
1 parent
2011dca2c1
Exists in
smarc_8mq_lf_v2020.04
and in
18 other branches
board: at91sam9rlek: Clean up code
Since the introduction of the pinctrl and clk drivers and the device tree files, remove unneeded hard coded related code from the board file. Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Showing 1 changed file with 0 additions and 19 deletions Side-by-side Diff
board/atmel/at91sam9rlek/at91sam9rlek.c
... | ... | @@ -18,10 +18,6 @@ |
18 | 18 | |
19 | 19 | #include <lcd.h> |
20 | 20 | #include <atmel_lcdc.h> |
21 | -#include <atmel_mci.h> | |
22 | -#if defined(CONFIG_RESET_PHY_R) && defined(CONFIG_MACB) | |
23 | -#include <net.h> | |
24 | -#endif | |
25 | 21 | |
26 | 22 | DECLARE_GLOBAL_DATA_PTR; |
27 | 23 | |
28 | 24 | |
... | ... | @@ -159,22 +155,8 @@ |
159 | 155 | #endif /* CONFIG_LCD_INFO */ |
160 | 156 | #endif |
161 | 157 | |
162 | -#ifdef CONFIG_GENERIC_ATMEL_MCI | |
163 | -int board_mmc_init(bd_t *bis) | |
164 | -{ | |
165 | - at91_mci_hw_init(); | |
166 | - | |
167 | - return atmel_mci_init((void *)ATMEL_BASE_MCI); | |
168 | -} | |
169 | -#endif | |
170 | - | |
171 | 158 | int board_early_init_f(void) |
172 | 159 | { |
173 | - at91_periph_clk_enable(ATMEL_ID_PIOA); | |
174 | - at91_periph_clk_enable(ATMEL_ID_PIOB); | |
175 | - at91_periph_clk_enable(ATMEL_ID_PIOC); | |
176 | - at91_periph_clk_enable(ATMEL_ID_PIOD); | |
177 | - | |
178 | 160 | return 0; |
179 | 161 | } |
180 | 162 | |
... | ... | @@ -185,7 +167,6 @@ |
185 | 167 | /* adress of boot parameters */ |
186 | 168 | gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; |
187 | 169 | |
188 | - at91_seriald_hw_init(); | |
189 | 170 | #ifdef CONFIG_CMD_NAND |
190 | 171 | at91sam9rlek_nand_hw_init(); |
191 | 172 | #endif |