mirror of
https://xff.cz/git/u-boot/
synced 2026-01-17 11:52:58 +01:00
pinephone-pro: Enable DMC node when booting from U-Boot using RK blobs
Signed-off-by: Ondrej Jirman <megi@xff.cz>
This commit is contained in:
3
board/pine64/pinephone-pro-rk3399/Makefile
Normal file
3
board/pine64/pinephone-pro-rk3399/Makefile
Normal file
@@ -0,0 +1,3 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
obj-y += pinephone-pro-rk3399.o
|
||||
32
board/pine64/pinephone-pro-rk3399/pinephone-pro-rk3399.c
Normal file
32
board/pine64/pinephone-pro-rk3399/pinephone-pro-rk3399.c
Normal file
@@ -0,0 +1,32 @@
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
/*
|
||||
* (C) Copyright 2016 Rockchip Electronics Co., Ltd
|
||||
* (C) Copyright 2022 Peter Robinson <pbrobinson at gmail.com>
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <init.h>
|
||||
#include <fdt_support.h>
|
||||
#include <linux/libfdt.h>
|
||||
#include <syscon.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/arch-rockchip/clock.h>
|
||||
#include <asm/arch-rockchip/grf_rk3399.h>
|
||||
#include <asm/arch-rockchip/hardware.h>
|
||||
#include <asm/arch-rockchip/misc.h>
|
||||
#include <power/regulator.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