Skip to content

Commit

Permalink
Merge tag 'rockchip-for-v2019.07-rc1' of git://git.denx.de/u-boot-roc…
Browse files Browse the repository at this point in the history
…kchip

Improvements and new features:
- split more rockchip pinctrl_core feature into per SoC
- enable TPL for evb-rk3399 board
- enable TPL/SPL for evb-px5 board
- enable TPL and OP-TEE support for evb-rk3229
- update fix in arm common assembly start code for rockchip header file
- update default SPL_FIT_GENERATOR for rockchip
- rk3399 boards update to use '-u-boot.dtsi'
- add new rk3399 boards: Nanopi M4, Nanopc T4
- enable sound for chromebook_minnie
  • Loading branch information
trini committed May 9, 2019
2 parents 062aceb + c661c05 commit f30f268
Show file tree
Hide file tree
Showing 104 changed files with 3,107 additions and 665 deletions.
1 change: 1 addition & 0 deletions Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ config SPL_FIT_GENERATOR
string ".its file generator script for U-Boot FIT image"
depends on SPL_FIT
default "board/sunxi/mksunxi_fit_atf.sh" if SPL_LOAD_FIT && ARCH_SUNXI
default "arch/arm/mach-rockchip/make_fit_atf.py" if SPL_LOAD_FIT && ARCH_ROCKCHIP
help
Specifies a (platform specific) script file to generate the FIT
source file used to build the U-Boot FIT image file. This gets
Expand Down
1 change: 1 addition & 0 deletions arch/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ config X86
imply DM_USB
imply DM_VIDEO
imply SYSRESET
imply SPL_SYSRESET
imply SYSRESET_X86
imply USB_ETHER_ASIX
imply USB_ETHER_SMSC95XX
Expand Down
30 changes: 30 additions & 0 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,17 @@ config SPL_SYS_THUMB_BUILD
density. For ARM architectures that support Thumb2 this flag will
result in Thumb2 code generated by GCC.

config TPL_SYS_THUMB_BUILD
bool "Build TPL using the Thumb instruction set"
default y if SYS_THUMB_BUILD
depends on TPL && !ARM64
help
Use this flag to build SPL using the Thumb instruction set for
ARM architectures. Thumb instruction set provides better code
density. For ARM architectures that support Thumb2 this flag will
result in Thumb2 code generated by GCC.


config SYS_L2CACHE_OFF
bool "L2cache off"
help
Expand Down Expand Up @@ -373,6 +384,15 @@ config SPL_USE_ARCH_MEMCPY
Such implementation may be faster under some conditions
but may increase the binary size.

config TPL_USE_ARCH_MEMCPY
bool "Use an assembly optimized implementation of memcpy for TPL"
default y if USE_ARCH_MEMCPY
depends on !ARM64
help
Enable the generation of an optimized version of memcpy.
Such implementation may be faster under some conditions
but may increase the binary size.

config USE_ARCH_MEMSET
bool "Use an assembly optimized implementation of memset"
default y
Expand All @@ -391,6 +411,15 @@ config SPL_USE_ARCH_MEMSET
Such implementation may be faster under some conditions
but may increase the binary size.

config TPL_USE_ARCH_MEMSET
bool "Use an assembly optimized implementation of memset for TPL"
default y if USE_ARCH_MEMSET
depends on !ARM64
help
Enable the generation of an optimized version of memset.
Such implementation may be faster under some conditions
but may increase the binary size.

config ARM64_SUPPORT_AARCH32
bool "ARM64 system support AArch32 execution state"
default y if ARM64 && !TARGET_THUNDERX_88XX
Expand Down Expand Up @@ -1407,6 +1436,7 @@ config ARCH_STM32MP
select SYSCON
select SYSRESET
select SYS_THUMB_BUILD
imply SPL_SYSRESET
imply CMD_DM
imply CMD_POWEROFF
imply ENV_VARS_UBOOT_RUNTIME_CONFIG
Expand Down
4 changes: 0 additions & 4 deletions arch/arm/cpu/armv8/start.S
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ _start:
* order to boot, allow them to set that in their boot0.h file and then
* use it here.
*/
#ifdef CONFIG_ARCH_ROCKCHIP
#include <asm/arch-rockchip/boot0.h>
#else
#include <asm/arch/boot0.h>
#endif
#else
b reset
#endif
Expand Down
37 changes: 28 additions & 9 deletions arch/arm/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,23 @@ dtb-$(CONFIG_KIRKWOOD) += \
dtb-$(CONFIG_ARCH_OWL) += \
bubblegum_96.dtb

dtb-$(CONFIG_ARCH_ROCKCHIP) += \
rk3036-sdk.dtb \
rk3128-evb.dtb \
rk3188-radxarock.dtb \
rk3229-evb.dtb \
dtb-$(CONFIG_ROCKCHIP_RK3036) += \
rk3036-sdk.dtb

dtb-$(CONFIG_ROCKCHIP_RK3128) += \
rk3128-evb.dtb

dtb-$(CONFIG_ROCKCHIP_RK3188) += \
rk3188-radxarock.dtb

dtb-$(CONFIG_ROCKCHIP_RK322X) += \
rk3229-evb.dtb

dtb-$(CONFIG_ROCKCHIP_RK3288) += \
rk3288-evb.dtb \
rk3288-fennec.dtb \
rk3288-firefly.dtb \
rk3288-miqi.dtb \
rk3399-orangepi.dtb \
rk3288-phycore-rdk.dtb \
rk3288-popmetal.dtb \
rk3288-rock2-square.dtb \
Expand All @@ -83,22 +90,34 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += \
rk3288-veyron-mickey.dtb \
rk3288-veyron-minnie.dtb \
rk3288-veyron-speedy.dtb \
rk3288-vyasa.dtb \
rk3328-evb.dtb \
rk3399-ficus.dtb \
rk3288-vyasa.dtb

dtb-$(CONFIG_ROCKCHIP_RK3328) += \
rk3328-evb.dtb

dtb-$(CONFIG_ROCKCHIP_RK3368) += \
rk3368-lion.dtb \
rk3368-sheep.dtb \
rk3368-geekbox.dtb \
rk3368-px5-evb.dtb \

dtb-$(CONFIG_ROCKCHIP_RK3399) += \
rk3399-evb.dtb \
rk3399-ficus.dtb \
rk3399-firefly.dtb \
rk3399-gru-bob.dtb \
rk3399-nanopc-t4.dtb \
rk3399-nanopi-m4.dtb \
rk3399-orangepi.dtb \
rk3399-puma-ddr1333.dtb \
rk3399-puma-ddr1600.dtb \
rk3399-puma-ddr1866.dtb \
rk3399-rock960.dtb \

dtb-$(CONFIG_ROCKCHIP_RV1108) += \
rv1108-elgin-r1.dtb \
rv1108-evb.dtb

dtb-$(CONFIG_ARCH_MESON) += \
meson-gxbb-nanopi-k2.dtb \
meson-gxbb-odroidc2.dtb \
Expand Down
1 change: 1 addition & 0 deletions arch/arm/dts/rk3229-evb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
};

&uart2 {
u-boot,dm-pre-reloc;
status = "okay";
};

Expand Down
12 changes: 12 additions & 0 deletions arch/arm/dts/rk3288-veyron-minnie.dts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,18 @@
regulator-boot-on;
vin-supply = <&vcc18_wl>;
};

sound {
compatible = "rockchip,audio-max98090-jerry";

cpu {
sound-dai = <&i2s 0>;
};

codec {
sound-dai = <&max98090 0>;
};
};
};

&backlight {
Expand Down
36 changes: 36 additions & 0 deletions arch/arm/dts/rk3368-px5-evb-u-boot.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,28 @@
/*
* (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
*/
/ {
chosen {
u-boot,spl-boot-order = &emmc;
tick-timer = "/timer@ff810000";
};
};

&dmc {
u-boot,dm-pre-reloc;

/*
* PX5-evb(2GB) need to use CBRD mode, or else the dram is not correct
* See doc/device-tree-bindings/clock/rockchip,rk3368-dmc.txt for
* details on the 'rockchip,memory-schedule' property and how it
* affects the physical-address to device-address mapping.
*/
rockchip,memory-schedule = <DMC_MSCH_CBRD>;
rockchip,ddr-frequency = <800000000>;
rockchip,ddr-speed-bin = <DDR3_1600K>;

status = "okay";
};

&pinctrl {
u-boot,dm-pre-reloc;
Expand All @@ -20,6 +42,10 @@
u-boot,dm-pre-reloc;
};

&sgrf {
u-boot,dm-pre-reloc;
};

&cru {
u-boot,dm-pre-reloc;
};
Expand All @@ -31,3 +57,13 @@
&uart4 {
u-boot,dm-pre-reloc;
};

&emmc {
u-boot,dm-pre-reloc;
};

&timer0 {
u-boot,dm-pre-reloc;
clock-frequency = <24000000>;
status = "okay";
};
7 changes: 7 additions & 0 deletions arch/arm/dts/rk3399-evb-u-boot.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2019 Jagan Teki <[email protected]>
*/

#include "rk3399-u-boot.dtsi"
#include "rk3399-sdram-lpddr3-4GB-1600.dtsi"
1 change: 0 additions & 1 deletion arch/arm/dts/rk3399-evb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <dt-bindings/pwm/pwm.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include "rk3399.dtsi"
#include "rk3399-sdram-lpddr3-4GB-1600.dtsi"

/ {
model = "Rockchip RK3399 Evaluation Board";
Expand Down
6 changes: 6 additions & 0 deletions arch/arm/dts/rk3399-ficus-u-boot.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2019 Jagan Teki <[email protected]>
*/

#include "rk3399-sdram-ddr3-1600.dtsi"
1 change: 0 additions & 1 deletion arch/arm/dts/rk3399-ficus.dts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

/dts-v1/;
#include "rk3399-rock960.dtsi"
#include "rk3399-sdram-ddr3-1600.dtsi"

/ {
model = "96boards RK3399 Ficus";
Expand Down
7 changes: 7 additions & 0 deletions arch/arm/dts/rk3399-firefly-u-boot.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2019 Jagan Teki <[email protected]>
*/

#include "rk3399-u-boot.dtsi"
#include "rk3399-sdram-ddr3-1600.dtsi"
1 change: 0 additions & 1 deletion arch/arm/dts/rk3399-firefly.dts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <dt-bindings/pwm/pwm.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include "rk3399.dtsi"
#include "rk3399-sdram-ddr3-1600.dtsi"

/ {
model = "Firefly-RK3399 Board";
Expand Down
7 changes: 7 additions & 0 deletions arch/arm/dts/rk3399-gru-bob-u-boot.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2019 Jagan Teki <[email protected]>
*/

#include "rk3399-gru-u-boot.dtsi"
#include "rk3399-sdram-lpddr3-samsung-4GB-1866.dtsi"
1 change: 0 additions & 1 deletion arch/arm/dts/rk3399-gru-bob.dts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

/dts-v1/;
#include "rk3399-gru-chromebook.dtsi"
#include "rk3399-sdram-lpddr3-samsung-4GB-1866.dtsi"

/ {
model = "Google Bob";
Expand Down
6 changes: 6 additions & 0 deletions arch/arm/dts/rk3399-gru-u-boot.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2019 Jagan Teki <[email protected]>
*/

#include "rk3399-u-boot.dtsi"
1 change: 0 additions & 1 deletion arch/arm/dts/rk3399-gru.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,6 @@ ap_i2c_audio: &i2c8 {

&spi1 {
status = "okay";
u-boot,dm-pre-reloc;

pinctrl-names = "default", "sleep";
pinctrl-1 = <&spi1_sleep>;
Expand Down
7 changes: 7 additions & 0 deletions arch/arm/dts/rk3399-nanopc-t4-u-boot.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2019 Jagan Teki <[email protected]>
*/

#include "rk3399-nanopi4-u-boot.dtsi"
#include "rk3399-sdram-lpddr3-samsung-4GB-1866.dtsi"
Loading

0 comments on commit f30f268

Please sign in to comment.