diff options
author | Marek Vasut <marek.vasut+renesas@gmail.com> | 2019-08-31 18:27:58 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2019-09-02 17:38:43 +0200 |
commit | 8c2c46350d937bae357dc3f69adcbff0022f70ec (patch) | |
tree | bf65f22be8474aa9e3d79ab231e4ba6f9873017d /arch/sh | |
parent | c88bced3f6da6674f2cd59701fa4d46f37b76e84 (diff) | |
download | u-boot-8c2c46350d937bae357dc3f69adcbff0022f70ec.tar.gz u-boot-8c2c46350d937bae357dc3f69adcbff0022f70ec.tar.xz u-boot-8c2c46350d937bae357dc3f69adcbff0022f70ec.zip |
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>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/dts/Makefile | 12 | ||||
-rw-r--r-- | arch/sh/dts/sh7751-r2dplus.dts | 12 | ||||
-rw-r--r-- | arch/sh/include/asm/config.h | 2 |
3 files changed, 26 insertions, 0 deletions
diff --git a/arch/sh/dts/Makefile b/arch/sh/dts/Makefile new file mode 100644 index 0000000000..e423bfd566 --- /dev/null +++ b/arch/sh/dts/Makefile @@ -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 diff --git a/arch/sh/dts/sh7751-r2dplus.dts b/arch/sh/dts/sh7751-r2dplus.dts new file mode 100644 index 0000000000..2d291bf1ee --- /dev/null +++ b/arch/sh/dts/sh7751-r2dplus.dts @@ -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"; +}; diff --git a/arch/sh/include/asm/config.h b/arch/sh/include/asm/config.h index 406156dff5..e1cd322152 100644 --- a/arch/sh/include/asm/config.h +++ b/arch/sh/include/asm/config.h @@ -8,6 +8,8 @@ #include <asm/processor.h> +#define CONFIG_LMB + /* Timer */ #define CONFIG_SYS_TIMER_COUNTS_DOWN #define CONFIG_SYS_TIMER_COUNTER (TMU_BASE + 0xc) /* TCNT0 */ |