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:
3
board/pine64/rockpro64_rk3399/Makefile
Normal file
3
board/pine64/rockpro64_rk3399/Makefile
Normal file
@@ -0,0 +1,3 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
obj-y += rockpro64-rk3399.o
|
22
board/pine64/rockpro64_rk3399/rockpro64-rk3399.c
Normal file
22
board/pine64/rockpro64_rk3399/rockpro64-rk3399.c
Normal 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
|
Reference in New Issue
Block a user