|
@@ -1144,9 +1144,20 @@ int board_hw_init(void)
|
|
|
|
|
|
int board_init(void)
|
|
|
{
|
|
|
+ int ret = 0;
|
|
|
+
|
|
|
gd->bd->bi_boot_params = PHYS_SDRAM_0;
|
|
|
|
|
|
- return 0;
|
|
|
+#if CONFIG_IS_ENABLED(CACHE_WAYENABLE)
|
|
|
+ /* enable all cache ways */
|
|
|
+ ret = cache_enable_ways();
|
|
|
+ if (ret) {
|
|
|
+ debug("%s: could not enable cache ways\n", __func__);
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+#endif
|
|
|
+
|
|
|
+ return ret;
|
|
|
}
|
|
|
|
|
|
void reset_phy(void)
|