mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +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
|
#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
|
#ifdef CONFIG_MISC_INIT_R
|
||||||
static void setup_iodomain(void)
|
static void setup_iodomain(void)
|
||||||
{
|
{
|
||||||
|
@@ -54,3 +54,17 @@ int misc_init_r(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#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