1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00

board: pine64: Enable DMC on RockPro64

Automatically enable 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
2024-07-05 17:14:05 +02:00
parent ca4c339a2c
commit f10f58cd09
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
# SPDX-License-Identifier: GPL-2.0+
obj-y += rockpro64-rk3399.o

View File

@@ -0,0 +1,22 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2024 Ondrej Jirman <megi@xff.cz>
*/
#include <dm.h>
#include <fdt_support.h>
#include <linux/libfdt.h>
#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