summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-08-05 16:06:42 -0400
committerTom Rini <trini@konsulko.com>2020-08-05 16:06:42 -0400
commit89150a9314bd432ed8cca9a03034435346fb0b16 (patch)
tree0735e169f9fe2c3d99b0eae5f30d745317aa1ae1
parent635dfee2cb522f5072530ca63fd4ab02890b90a2 (diff)
parent5f52d6e90846b4f375a9dc0537773e9a6ad58f68 (diff)
Merge https://gitlab.denx.de/u-boot/custodians/u-boot-sh
- r2dplus updates
-rw-r--r--arch/sh/dts/sh7751-r2dplus.dts23
-rw-r--r--arch/sh/lib/start.S8
-rw-r--r--configs/r2dplus_defconfig13
-rw-r--r--include/configs/r2dplus.h1
4 files changed, 41 insertions, 4 deletions
diff --git a/arch/sh/dts/sh7751-r2dplus.dts b/arch/sh/dts/sh7751-r2dplus.dts
index efaeb33e36..da0648cd62 100644
--- a/arch/sh/dts/sh7751-r2dplus.dts
+++ b/arch/sh/dts/sh7751-r2dplus.dts
@@ -10,6 +10,29 @@
model = "R2D";
compatible = "renesas,r2d", "renesas,sh7751";
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ aliases {
+ serial0 = &scif1;
+ };
+
+ scif_clks: scif60 {
+ #clock-cells = <0>;
+ compatible = "fixed-clock";
+ clock-frequency = <60000000>;
+ u-boot,dm-pre-reloc;
+ };
+
+ scif1: serial@ffe80000 {
+ compatible = "renesas,scif";
+ reg = <0 0xffe80000 0 0x1000>;
+ clocks = <&scif_clks>;
+ clock-names = "fck";
+ status = "okay";
+ u-boot,dm-pre-reloc;
+ };
+
pci@fe200000 {
compatible = "renesas,pci-sh7751";
device_type = "pci";
diff --git a/arch/sh/lib/start.S b/arch/sh/lib/start.S
index f9f26d3779..ddb9aa9f87 100644
--- a/arch/sh/lib/start.S
+++ b/arch/sh/lib/start.S
@@ -53,7 +53,10 @@ _start:
mov.l ._gd_init, r13 /* global data */
mov.l ._stack_init, r15 /* stack */
-
+#if CONFIG_VAL(SYS_MALLOC_F_LEN)
+ mov.l ._gd_malloc_base, r14
+ mov.l r15, @r14
+#endif
mov.l ._sh_generic_init, r0
jsr @r0
mov #0, r4
@@ -70,5 +73,8 @@ loop:
._bss_start: .long bss_start
._bss_end: .long bss_end
._gd_init: .long (_start - GENERATED_GBL_DATA_SIZE)
+#if CONFIG_VAL(SYS_MALLOC_F_LEN)
+._gd_malloc_base: .long (_start - GENERATED_GBL_DATA_SIZE + GD_MALLOC_BASE)
+#endif
._stack_init: .long (_start - GENERATED_GBL_DATA_SIZE - CONFIG_SYS_MALLOC_LEN - 16)
._sh_generic_init: .long board_init_f
diff --git a/configs/r2dplus_defconfig b/configs/r2dplus_defconfig
index 5263123694..a2d666ebd6 100644
--- a/configs/r2dplus_defconfig
+++ b/configs/r2dplus_defconfig
@@ -4,10 +4,11 @@ CONFIG_ENV_SIZE=0x40000
CONFIG_ENV_SECT_SIZE=0x40000
CONFIG_DEFAULT_DEVICE_TREE="sh7751-r2dplus"
CONFIG_TARGET_R2DPLUS=y
-# CONFIG_SYS_MALLOC_F is not set
CONFIG_BOOTDELAY=-1
CONFIG_USE_BOOTARGS=y
CONFIG_BOOTARGS="console=ttySC0,115200"
+CONFIG_USE_PREBOOT=y
+CONFIG_PREBOOT="pci enum"
CONFIG_HUSH_PARSER=y
CONFIG_CMD_IMLS=y
CONFIG_CMD_DM=y
@@ -24,12 +25,20 @@ CONFIG_ENV_OVERWRITE=y
CONFIG_ENV_IS_IN_FLASH=y
CONFIG_ENV_ADDR=0xA0040000
CONFIG_DM=y
+CONFIG_CLK=y
CONFIG_MTD_NOR_FLASH=y
CONFIG_FLASH_CFI_DRIVER=y
CONFIG_SYS_FLASH_CFI=y
+CONFIG_DM_ETH=y
+CONFIG_E1000=y
+CONFIG_EEPRO100=y
+CONFIG_PCNET=y
CONFIG_RTL8139=y
+CONFIG_TULIP=y
CONFIG_PCI=y
CONFIG_DM_PCI=y
-CONFIG_DM_PCI_COMPAT=y
+CONFIG_SPECIFY_CONSOLE_INDEX=y
+CONFIG_DM_SERIAL=y
+CONFIG_SERIAL_RX_BUFFER=y
CONFIG_SCIF_CONSOLE=y
CONFIG_USE_PRIVATE_LIBGCC=y
diff --git a/include/configs/r2dplus.h b/include/configs/r2dplus.h
index 4fdf0a5b57..61b6fb4846 100644
--- a/include/configs/r2dplus.h
+++ b/include/configs/r2dplus.h
@@ -35,7 +35,6 @@
* SuperH Clock setting
*/
#define CONFIG_SYS_CLK_FREQ 60000000
-#define CONFIG_SH_SCIF_CLK_FREQ CONFIG_SYS_CLK_FREQ
#define CONFIG_SYS_PLL_SETTLING_TIME 100/* in us */
/*