1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-08-31 16:22:36 +02:00

board: pine64: Enable DMC on pinebook pro and rockpro64

Automatically enabled DMC node in the kernel when using rkbin blobs
that support DMC.

Signed-off-by: Ondrej Jirman <megi@xff.cz>
This commit is contained in:
Ondrej Jirman
2023-07-27 22:06:18 +02:00
parent 4ecfbba990
commit 110261e4af
2 changed files with 28 additions and 0 deletions

View File

@@ -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)
{

View File

@@ -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