DECLARE_GLOBAL_DATA_PTR;
+__weak int board_init(void)
+{
+ return 0;
+}
+
int dram_init(void)
{
const fdt64_t *val;
return 0;
}
+__weak int meson_ft_board_setup(void *blob, bd_t *bd)
+{
+ return 0;
+}
+
+int ft_board_setup(void *blob, bd_t *bd)
+{
+ meson_init_reserved_memory(blob);
+
+ return meson_ft_board_setup(blob, bd);
+}
+
void meson_board_add_reserved_memory(void *fdt, u64 start, u64 size)
{
int ret;
#define EFUSE_MAC_OFFSET 52
#define EFUSE_MAC_SIZE 6
-int board_init(void)
-{
- return 0;
-}
-
int misc_init_r(void)
{
u8 mac_addr[EFUSE_MAC_SIZE];
return 0;
}
-
-int ft_board_setup(void *blob, bd_t *bd)
-{
- meson_init_reserved_memory(blob);
-
- return 0;
-}
#define EFUSE_MAC_OFFSET 52
#define EFUSE_MAC_SIZE 6
-int board_init(void)
-{
- return 0;
-}
-
int misc_init_r(void)
{
u8 mac_addr[EFUSE_MAC_SIZE];
return 0;
}
-
-int ft_board_setup(void *blob, bd_t *bd)
-{
- meson_init_reserved_memory(blob);
-
- return 0;
-}
#define EFUSE_MAC_OFFSET 52
#define EFUSE_MAC_SIZE 6
-int board_init(void)
-{
- return 0;
-}
-
int misc_init_r(void)
{
u8 mac_addr[EFUSE_MAC_SIZE];
return 0;
}
-
-int ft_board_setup(void *blob, bd_t *bd)
-{
- meson_init_reserved_memory(blob);
-
- return 0;
-}
#include <asm/arch/eth.h>
#include <asm/arch/mem.h>
-int board_init(void)
-{
- return 0;
-}
-
int misc_init_r(void)
{
meson_eth_init(PHY_INTERFACE_MODE_RGMII, 0);
return 0;
}
-
-int ft_board_setup(void *blob, bd_t *bd)
-{
- meson_init_reserved_memory(blob);
-
- return 0;
-}