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:
@@ -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)
|
||||
{
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user