summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-12-29starfive: add ID_EEPROM supoort for visionfive V1u-boot-2022.01-rc4-g0c08d33JH7100_upstreamWei Fu5-2/+775
This patch add ID_EEPROM (mac command) support for visionfive V1. Signed-off-by: Wei Fu <wefu@redhat.com>
2021-12-29configs: starfive: update jh7100.h for importing u74_uEnv.txt for testingJianlong Huang1-0/+9
Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2021-12-29drivers/net/phy/marvell: setup LED config for JH7100 EVBYanhong Wang1-0/+14
2021-12-29starfive: GPIO pin initSW Multimedia29-1/+149304
This patch should be removed, once we can do GPIO pin init in secondboot or ddrinit Include: starfive: Add init GPIO for ALSA audio framework starfive: remove useless gpio operation Signed-off-by: sw.multimedia <sw.multimedia@starfivetech.com> Signed-off-by: michael.yan <michael.yan@starfivetech.com> Signed-off-by: andy.hu <andy.hu@starfivetech.com>
2021-12-29starfive: Modify designware driver for JH7100Bo Li3-13/+60
This patch is using internal RAM to improve performance (avoid flushing L2 cache): Modify designware driver by: 1, Modify gtxclk configuration by phydev->speed 2, Add Preseted mem support for mac descrtables and buffs 3, disable DMA memory range check when building for JH7100
2021-12-29[TEMP]jh7100: remove "depends on DM_ETH || !NET" in EFI_LOADERTekkaman Ninja2-2/+23
This patch reverses some part of change in: commit eac6e0b7979440b889703196f383191c335e7599 Author: Simon Glass <sjg@chromium.org> Date: Fri Sep 24 18:30:17 2021 -0600 efi_loader: Drop code that doesn't work with driver model ... Since JH7100 ETH driver haven't supported DM yet.
2021-12-29starfive(multimedia): Add pwmdac pinctl and keep 0,2,3,45 gpio for i2s to dtsSW Multimedia2-6/+25
2021-12-29starfive(multimedia): apply starfive v4l2 pinctl to dtsSW Multimedia3-5/+119
Signed-off-by: SW Multimedia <sw.multimedia@starfivetech.com>
2021-12-29starfive: apply the pinctl to dtsSW Multimedia3-12/+597
2021-12-29starfive: Add v4l2 video sensor device and DRM framework in dtsAndy Hu3-21/+380
Signed-off-by: SW Multimedia <sw.multimedia@starfivetech.com> Signed-off-by: Andy Hu <andy.hu@starfivetech.com> Signed-off-by: David Li <david.li@starfivetech.com> Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com> Signed-off-by: Curry Zhang <curry.zhang@starfivetech.com>
2021-12-29starfive: dtsi fix for dma2pSW Multimedia1-0/+1
2021-12-29starfive: Add more audio codecs support in dtsSW Multimedia6-0/+128
2021-12-29starfive: add clock info in dts for audioSW Multimedia2-0/+154
2021-12-29starfive: add i2c dev info in dts for audioSW Multimedia1-6/+30
2021-12-29starfive: add JH7100 VisionFive V1 Support.Jianlong.Huang3-0/+180
Signed-off-by: Jianlong.Huang <jianlong.huang@starfivetech.com>
2021-12-29starfive: fix dts(linux)Wei Fu2-5/+12
1, ccache 2, mmc This patch adds the necessary info for mmc driver: bus-width = <4>; max-frequency = <?0000000>; 3, uart0(console) 4, SPI Nor Flash 5, Switch dtb to linux dts
2021-12-29starfive: Porting jh7100-beaglev-starlight.dts from linuxEmil Renner Berthing5-0/+1308
https://github.com/starfive-tech/linux
2021-12-29starfive: Add JH7100 supportMicheal Zhu16-0/+2354
This patch adds StarFive JH7100 main support, including Starlight and EVB support, ported from StarFive HiFive_U-Boot REPO. The original authors are Bo Li <bo.li@starfivetech.com> JieQin Chen <Jessica.Chen@starfivetech.com> Huan Feng <huan.feng@starfivetech.com> Jack Zhu <jack.zhu@starfivetech.com> Jianlong Huang <jianlong.huang@starfivetech.com> Ke Zhu <ke.zhu@starfivetech.com> Micheal Zhu <michael.zhu@starfivetech.com> Samin Guo <samin.guo@starfivetech.com> Yanhong Wang <yanhong.wang@starfivetech.com> Yiming Li <yiming.li@starfivetech.com> Note: 1, disable BTRFS(will trigger a link error with *some* RV64 GCC) But RV64 GCC on Fedora works well with enabling BTRFS. BTRFS will select ZSTD which will trigger a link error with *some* RV64 GCC: --- riscv64-unknown-linux-gnu-ld.bfd: /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.0/libgcc.a(_clzsi2.o): can't link double-float modules with soft-float modules riscv64-unknown-linux-gnu-ld.bfd: failed to merge target specific data of file /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.0/libgcc.a(_clzsi2.o) riscv64-unknown-linux-gnu-ld.bfd: /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.0/libgcc.a(_clz.o): can't link double-float modules with soft-float modules riscv64-unknown-linux-gnu-ld.bfd: failed to merge target specific data of file /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.0/libgcc.a(_clz.o) make: *** [Makefile:1787: u-boot] Error 1 --- 2, enable OF_SEPARATE: This is required so that openSBI can add itself to /reserved-memory, and let EFI know about it. By Andreas Schwab <schwab@suse.de> 3, Set default fdtfile name By Andreas Schwab <schwab@suse.de>
2021-12-29starfive: Add JH7100 MMC driver supportWei Fu3-0/+176
This driver modified from snps_dw_mmc.c Signed-off-by: Wei Fu <wefu@redhat.com>
2021-12-29starfive: add JH71x0 serial driverWei Fu3-0/+354
This driver ported from NS16550 Serial Port driver, It is a simplified version of drivers/serial/ns16550.c We may can merge it to ns16550 later. Signed-off-by: Wei Fu <wefu@redhat.com>
2021-12-29starfive: add OTP driver for jh7100Yanhong Wang3-0/+218
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
2021-12-29sifive: make WayEnable can be configured by menuconfigWei Fu2-0/+16
Signed-off-by:Wei Fu <wefu@redhat.com>
2021-12-29sifive_cache: add flush_range func in sifive cache driverWei Fu2-1/+81
Signed-off-by: Wei Fu <wefu@redhat.com>
2021-12-29cache: add flush_range interface in cache_ops structWei Fu2-0/+32
Signed-off-by: Wei Fu <wefu@redhat.com>
2021-12-29riscv: add reset_misc function (__weak)Wei Fu2-0/+7
Signed-off-by: Wei Fu <wefu@redhat.com>
2021-12-29riscv: Enable SYS_CLK_FREQ configTekkamanV1-1/+1
Signed-off-by: TekkamanV <tekkamanv@starfivetech.com>
2021-12-29cmd/eeprom: fix data type issue for parse_numeric_paramJianlong.Huang1-2/+2
This patch fixs parse_numeric_param issue on some platfrom which has different sizes of int and long, like riscv64. On riscv64, int is 4 bytes, but long is 8 bytes. on this situation: ulong addr = parse_numeric_param(argv[index]); if argv[index] is "0x80000000", this "ulong addr" will be 0xffffffff80000000. Signed-off-by: Jianlong.Huang <jianlong.huang@starfivetech.com> Co-developed-by: Wei Fu <wefu@redhat.com> Signed-off-by: Wei Fu <wefu@redhat.com>
2021-12-29net/phy: add YuTai Corp Ethernet PHYs(YT8511/YT8521) driverWalker Chen5-0/+290
This pathch adds YuTai Corp Ethernet PHYs(YT8511/YT8521) support. Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2021-12-28Merge tag 'video-20211228' of ↵masterTom Rini1-2/+2
https://source.denx.de/u-boot/custodians/u-boot-video - mxsfb axi/disp_axi clock enable fix
2021-12-28Merge tag 'efi-2022-01-rc4-4' of ↵Tom Rini9-18/+29
https://source.denx.de/u-boot/custodians/u-boot-efi Pull request for efi-2022-01-rc4-4 UEFI: * allow for more than 16 KiB UEFI variable size when using StMM Others: * make watchdog sysreset compatible with separate poweroff driver * avoid OpenSSL deprecation warnings
2021-12-27doc: Fix usage of CFG_RPMB_WRITE_KEYIlias Apalodimas1-3/+3
This is a 'y/n' selection, so fix it. While at it remove the duplicate usage of CFG_CORE_HEAP_SIZE Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Acked-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2021-12-27video: mxsfb: fix clk_get_by_name() return value checkGiulio Benetti1-2/+2
If clk_get_by_name() returns 0 it means it executed successfully while now we consider it as an error. So let's check if return value is negative to be an error. Otherwise this prevents "axi" and "disp_axi" to be enabled. Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
2021-12-26Merge https://source.denx.de/u-boot/custodians/u-boot-spiTom Rini3-6/+22
2021-12-26Merge tag 'u-boot-rockchip-20211226' of ↵Tom Rini36-374/+1225
https://source.denx.de/u-boot/custodians/u-boot-rockchip - Add kaslrseed support; - rk3568 spl and image tool support; - px30 dts sync from kernel; - rk3399 emmc fix; - rockchip fastboot cmd fix;
2021-12-26tools: avoid OpenSSL deprecation warningsHeinrich Schuchardt4-0/+9
Our Gitlab CI buildsystem is set up to treat warnings as errors. With OpenSSL 3.0 a lot of deprecation warnings occur. With the patch compatibility with OpenSSL 1.1.1 is declared. In the long run we should upgrade our code to use the current API. A -Wdiscarded-qualifiers warning is muted by casting. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2021-12-26sysreset: watchdog: watchdog cannot power offHeinrich Schuchardt1-3/+10
The watchdog system reset driver can reboot the device but it cannot power it off. If power off is requested, the driver should not reset the system but leave powering off to one of the other system reset drivers. As power cycling is typically not a feature of a watchdog driver the reset types SYSRESET_POWER and SYSRESET_POWER_OFF shall both be excluded. Fixes: 17a0c14164dc ("dm: sysreset: add watchdog-reboot driver") Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Stefan Roese <sr@denx.de>
2021-12-26efi_loader: Don't limit the StMM buffer size explicitlyIlias Apalodimas2-11/+6
Currently we allow and explicitly check a single shared page with StandAloneMM. This is dictated by OP-TEE which runs the application. However there's no way for us dynamically discover the number of pages we are allowed to use. Since writing big EFI signature list variable requires more than a page, OP-TEE has bumped the number of shared pages to four. Let's remove our explicit check and allow the request to reach OP-TEE even if it's bigger than what it supports. There's no need to sanitize the number of pages internally. OP-TEE will fail if we try to write more than it's allowed. The error will just trigger later on, during the StMM access. While at it add an error message to help users figure out what failed. Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Tested-by: Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org> Signed-off-by: Ilias Apalodimas <apalos@gmail.com>
2021-12-26efi: fix typo in description of struct efi_entry_hdrHeinrich Schuchardt1-1/+1
Add missing colon. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2021-12-24rockchip: mkimage: Add support for rk3568 SoCKever Yang1-0/+1
rk3568 is the first SoC which supports idb header v2. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2021-12-24rockchip: mkimage: Add support for idb header V2Yi Liu1-28/+158
Rockchip BootRom supports new idb header v2 instead of legacy version. Add support for it so that we can generate image for new SoCs. Signed-off-by: Yi Liu <liuyi@rock-chips.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2021-12-24rockchip: mkimage: Add image header versionKever Yang1-12/+17
We are going to have more than one version header, add the version in the header info. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2021-12-24rockchip: mkimage: rename RK_SIGNATURE to RK_MAGICKever Yang1-5/+5
The first 4byte of idbimage is a magic number instead of signature, correct it. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2021-12-24configs: rock-pi-4: Enable rockchip efuse supportSjoerd Simons2-0/+2
Enable efuse support for reading the cpuid#, serial# and generate a board unique mac address Signed-off-by: Sjoerd Simons <sjoerd@collabora.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2021-12-24rockchip: boot_mode: fix fastboot commandJohn Keeping1-1/+1
The USB controller index must be separated from the type argument, otherwise the preboot command fails with the error: Error: Wrong USB controller index format Add the missing space to fix fastboot mode here. Signed-off-by: John Keeping <john@metanate.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2021-12-24power: pmic/fan53555: allow dm be omitted by SPLQuentin Schulz2-1/+15
Allow the dm driver be omitted by SPL. Cc: Quentin Schulz <foss+u-boot@0leil.net> Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2021-12-24engicam: px30: Add Engicam PX30.Core C.TOUCH 2.0 10.1" OFJagan Teki4-0/+123
PX30.Core is an EDIMM SOM based on Rockchip PX30 from Engicam. C.TOUCH 2.0 is a general purpose carrier board with capacitive touch interface support. 10.1" OF is a capacitive touch 10.1" Open Frame panel solutions. PX30.Core needs to mount on top of C.TOUCH 2.0 carrier with pluged 10.1" OF for creating complete PX30.Core C.TOUCH 2.0 10.1" Open Frame. Add support for it. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2021-12-24arm64: dts: rockchip: Sync px30 from linux-nextJagan Teki16-255/+681
Sync the px30 devicetree files from linux-next tree. commit <14ce8069f48b> ("lib/stackdepot: allow optional init and stack_table allocation by kvmalloc() - fixup3") Note, this path even sync rk3326 files as it depends on px30. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2021-12-24arm64: dts: rockchip: px30: Move dmc into -u-boot.dtsiJagan Teki3-13/+12
dmc node is specific to U-Boot, it is always better practice to maintain U-Boot specific nodes into -u-boot.dtsi files in order to maintain Linux dts file sync compatibility. Move the dmc into px30-u-boot.dtsi, also add dmc node explicitly in rk3326-odroid-go2-u-boot.dtsi since it is using px30.dts. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2021-12-24doc: rockchip: puma: update build and flash instructionsQuentin Schulz2-55/+38
Long gone is the time a custom TF-A was needed for Puma, upstream TF-A works just fine now. The flashing instructions are updated to match how newer rkdeveloptool and rkbin work. Finally, rkbin provides a way to flash SPI via USB OTG interface so let's document that. Cc: Quentin Schulz <foss+u-boot@0leil.net> Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2021-12-24dts: rockchip: rk3399: enable emmc phy for splYifeng Zhao1-0/+4
adapting commit ac804143cf ("mmc: rockchip_sdhci: add phy and clock config for rk3399") to fix the issue "Not found emmc phy device". Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com> Reviewed-by: Peter Robinson <pbrobinson@gmail.com> Tested-by: Peter Robinson <pbrobinson@gmail.com> - on a Rock960 Reviewed-by: Patrick Wildt <patrick@blueri.se> Tested-by: Patrick Wildt <patrick@blueri.se> - on a Pinebook Pro Reviewed-by: Kever Yang <kever.yang@rock-chips.com>