mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02:00
sh: r2dplus: Enable OF control
Enable OF control for SH4 R2Dplus board. This is necessary, because the PCI uclass is designed in a way that makes it depend on DT and disallows instanciating devices without DT (e.g. with platdata). Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
This commit is contained in:
@@ -137,6 +137,7 @@ config SANDBOX
|
|||||||
config SH
|
config SH
|
||||||
bool "SuperH architecture"
|
bool "SuperH architecture"
|
||||||
select HAVE_PRIVATE_LIBGCC
|
select HAVE_PRIVATE_LIBGCC
|
||||||
|
select SUPPORT_OF_CONTROL
|
||||||
|
|
||||||
config X86
|
config X86
|
||||||
bool "x86 architecture"
|
bool "x86 architecture"
|
||||||
|
12
arch/sh/dts/Makefile
Normal file
12
arch/sh/dts/Makefile
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
dtb-y += sh7751-r2dplus.dtb
|
||||||
|
|
||||||
|
targets += $(dtb-y)
|
||||||
|
|
||||||
|
# Add any required device tree compiler flags here
|
||||||
|
DTC_FLAGS +=
|
||||||
|
|
||||||
|
PHONY += dtbs
|
||||||
|
dtbs: $(addprefix $(obj)/, $(dtb-y))
|
||||||
|
@:
|
||||||
|
|
||||||
|
clean-files := *.dtb *_HS
|
12
arch/sh/dts/sh7751-r2dplus.dts
Normal file
12
arch/sh/dts/sh7751-r2dplus.dts
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
|
/*
|
||||||
|
* Device Tree Source for the SH7751 R2Dplus
|
||||||
|
*
|
||||||
|
* Copyright (C) 2019 Marek Vasut <marek.vasut@gmail.com>
|
||||||
|
*/
|
||||||
|
|
||||||
|
/dts-v1/;
|
||||||
|
/ {
|
||||||
|
model = "R2D";
|
||||||
|
compatible = "renesas,r2d", "renesas,sh7751";
|
||||||
|
};
|
@@ -8,6 +8,8 @@
|
|||||||
|
|
||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
|
|
||||||
|
#define CONFIG_LMB
|
||||||
|
|
||||||
/* Timer */
|
/* Timer */
|
||||||
#define CONFIG_SYS_TIMER_COUNTS_DOWN
|
#define CONFIG_SYS_TIMER_COUNTS_DOWN
|
||||||
#define CONFIG_SYS_TIMER_COUNTER (TMU_BASE + 0xc) /* TCNT0 */
|
#define CONFIG_SYS_TIMER_COUNTER (TMU_BASE + 0xc) /* TCNT0 */
|
||||||
|
@@ -16,6 +16,8 @@ CONFIG_CMD_PING=y
|
|||||||
CONFIG_CMD_CACHE=y
|
CONFIG_CMD_CACHE=y
|
||||||
CONFIG_CMD_EXT2=y
|
CONFIG_CMD_EXT2=y
|
||||||
CONFIG_DOS_PARTITION=y
|
CONFIG_DOS_PARTITION=y
|
||||||
|
CONFIG_OF_CONTROL=y
|
||||||
|
CONFIG_DEFAULT_DEVICE_TREE="sh7751-r2dplus"
|
||||||
CONFIG_ENV_IS_IN_FLASH=y
|
CONFIG_ENV_IS_IN_FLASH=y
|
||||||
CONFIG_DM=y
|
CONFIG_DM=y
|
||||||
CONFIG_MTD_NOR_FLASH=y
|
CONFIG_MTD_NOR_FLASH=y
|
||||||
|
Reference in New Issue
Block a user