diff --git a/board/pine64/pinebook-pro-rk3399/pinebook-pro-rk3399.c b/board/pine64/pinebook-pro-rk3399/pinebook-pro-rk3399.c index 516292aaa59..c1c4bbcf66b 100644 --- a/board/pine64/pinebook-pro-rk3399/pinebook-pro-rk3399.c +++ b/board/pine64/pinebook-pro-rk3399/pinebook-pro-rk3399.c @@ -38,6 +38,20 @@ out: } #endif +#ifdef CONFIG_OF_BOARD_SETUP +int ft_board_setup(void *blob, struct bd_info *bd) +{ +#ifdef CONFIG_ROCKCHIP_EXTERNAL_TPL + int rc = fdt_find_and_setprop(blob, "/memory-controller", + "status", "okay", sizeof("okay"), 1); + if (rc) + printf("Unable to enable DMC err=%s\n", fdt_strerror(rc)); +#endif + + return 0; +} +#endif + #ifdef CONFIG_MISC_INIT_R static void setup_iodomain(void) { diff --git a/board/pine64/rockpro64_rk3399/rockpro64-rk3399.c b/board/pine64/rockpro64_rk3399/rockpro64-rk3399.c index d79084614f1..7ab6c0e77eb 100644 --- a/board/pine64/rockpro64_rk3399/rockpro64-rk3399.c +++ b/board/pine64/rockpro64_rk3399/rockpro64-rk3399.c @@ -54,3 +54,17 @@ int misc_init_r(void) } #endif + +#ifdef CONFIG_OF_BOARD_SETUP +int ft_board_setup(void *blob, struct bd_info *bd) +{ +#ifdef CONFIG_ROCKCHIP_EXTERNAL_TPL + int rc = fdt_find_and_setprop(blob, "/memory-controller", + "status", "okay", sizeof("okay"), 1); + if (rc) + printf("Unable to enable DMC err=%s\n", fdt_strerror(rc)); +#endif + + return 0; +} +#endif