summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-06-06Merge branch 'CR_1037_sd_nosave_jianlong' into 'JH7100_VisionFive_OH_dev'VF_SDK_510_V1.2.1VF_SDK_510_V1.1.2JH7100_VisionFive_OH_devjianlong.huang1-0/+2
CR_1037 configs: starfive-jh7100: Add default bootargs See merge request jh7100/u-boot!5
2022-06-01configs: starfive-jh7100: Add default bootargsJianlong Huang1-0/+2
because delete linux cmdline cause eth0 don't work, it should work on chain_mode=1, so compromise to set bootargs in uboot Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-04-27add starfive timer initVF_SDK_510_V1.0.2jianlong.huang1-0/+23
Signed-off-by: jianlong.huang <jianlong.huang@starfivetech.com>
2022-03-12Merge branch 'CR_703_commitinfo_jianlong' into 'JH7100_VisionFive_devel'SDK_v2.3.3SDK_v2.3.0JH7100_VisionFive_develjianlong.huang1-0/+4
scripts/setlocalversion: add tag info See merge request jh7100/u-boot!3
2022-03-09Resolved issue #703 add tag infojianlonghuang1-0/+4
Signed-off-by: jianlonghuang <jianlong.huang@starfivetech.com>
2022-03-07Merge branch 'CR-636-SD-jianlong' into 'JH7100_VisionFive_devel'SDK_v2.1.1walker.chen1-2/+2
resoved issue #636 sd compatibility See merge request jh7100/u-boot!2
2022-03-07resoved issue #636 sd compatibilityjianlonghuang1-2/+2
Signed-off-by: jianlonghuang <jianlong.huang@starfivetech.com>
2022-02-15riscv: dts: starfive: add watchdog nodeSDK_v2.1.0Hal Feng1-0/+14
Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2022-02-15riscv: dts: starfive: Modify devicee tree for VisionFive to support WM8960 ↵Som Qin1-2/+2
daughter board Modify the gpio node to keep i2s pins state. Signed-off-by: Som Qin <som.qin@starfivetech.com>
2022-02-15dts: fixed libcamera report locaton warning about imx219Andy Hu1-0/+2
Signed-off-by: 123curry <curry.zhang@starfivetech.com>
2022-02-15starfive: Fix the compile issue of starfive ID_EEPROMSom.Qin2-29/+29
The issue: Error: You must add new CONFIG options using Kconfig The following new ad-hoc CONFIG options were detected: CONFIG_STARFIVE_EEPROM_ATOM1_PSTR CONFIG_STARFIVE_EEPROM_ATOM1_PSTR_SIZE CONFIG_STARFIVE_EEPROM_ATOM1_SN_OFFSET CONFIG_STARFIVE_EEPROM_ATOM1_VSTR CONFIG_STARFIVE_EEPROM_ATOM1_VSTR_SIZE CONFIG_STARFIVE_EEPROM_HATS_SIZE_MAX CONFIG_STARFIVE_EEPROM_WP_OFFSET Signed-off-by: Som.Qin <som.qin@starfivetech.com>
2022-02-15starfive: apply VisionFive board changesSom.Qin1-0/+15
The VisionFive dts is base on Starlight dts, and the difference of rst gpio, eeprom and gmac should be applied. Signed-off-by: Som.Qin <som.qin@starfivetech.com>
2022-02-15starfive: add ID_EEPROM supoort for visionfive V1Wei Fu5-2/+775
This patch add ID_EEPROM (mac command) support for visionfive V1. Signed-off-by: Wei Fu <wefu@redhat.com>
2022-02-15configs: starfive: update jh7100.h for importing u74_uEnv.txt for testingJianlong Huang1-0/+9
Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-02-15drivers/net/phy/marvell: setup LED config for JH7100 EVBYanhong Wang1-0/+14
2022-02-15starfive: 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>
2022-02-15starfive: 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
2022-02-15[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.
2022-02-15starfive(multimedia): Add pwmdac pinctl and keep 0,2,3,45 gpio for i2s to dtsSW Multimedia2-6/+25
2022-02-15starfive(multimedia): apply starfive v4l2 pinctl to dtsSW Multimedia3-5/+119
Signed-off-by: SW Multimedia <sw.multimedia@starfivetech.com>
2022-02-15starfive: apply the pinctl to dtsSW Multimedia3-12/+597
2022-02-15starfive: 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>
2022-02-15starfive: dtsi fix for dma2pSW Multimedia1-0/+1
2022-02-15starfive: Add more audio codecs support in dtsSW Multimedia6-0/+128
2022-02-15starfive: add clock info in dts for audioSW Multimedia2-0/+154
2022-02-15starfive: add i2c dev info in dts for audioSW Multimedia1-6/+30
2022-02-15starfive: add JH7100 VisionFive V1 Support.Jianlong.Huang3-0/+179
Signed-off-by: Jianlong.Huang <jianlong.huang@starfivetech.com>
2022-02-15starfive: 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
2022-02-15starfive: Porting jh7100-beaglev-starlight.dts from linuxEmil Renner Berthing5-0/+1308
https://github.com/starfive-tech/linux
2022-02-15starfive: 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>
2022-02-15starfive: Add JH7100 MMC driver supportWei Fu3-0/+176
This driver modified from snps_dw_mmc.c Signed-off-by: Wei Fu <wefu@redhat.com>
2022-02-15starfive: 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>
2022-02-15starfive: add OTP driver for jh7100Yanhong Wang3-0/+218
Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
2022-02-15sifive: make WayEnable can be configured by menuconfigWei Fu2-0/+16
Signed-off-by:Wei Fu <wefu@redhat.com>
2022-02-15sifive_cache: add flush_range func in sifive cache driverWei Fu2-1/+81
Signed-off-by: Wei Fu <wefu@redhat.com>
2022-02-15cache: add flush_range interface in cache_ops structWei Fu2-0/+32
Signed-off-by: Wei Fu <wefu@redhat.com>
2022-02-15riscv: add reset_misc function (__weak)Wei Fu2-0/+7
Signed-off-by: Wei Fu <wefu@redhat.com>
2022-02-15cmd/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>
2022-02-15net/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>
2022-02-15configs: Resync with savedefconfigTom Rini2-6/+6
Rsync all defconfig files using moveconfig.py Signed-off-by: Tom Rini <trini@konsulko.com>
2022-02-15Prepare v2022.04-rc2Tom Rini1-1/+1
Signed-off-by: Tom Rini <trini@konsulko.com>
2022-02-14Merge branch '2022-02-14-assorted-fixes'Tom Rini4-13/+55
- Fix for pstore already being in the DT, "setlocalversion" script bugfix and pdu001 platform bugfix
2022-02-14arm: pdu001: Fix dt to work with the current am33xx dtsi filesFelix Brack2-6/+18
The changes introduced with commit 6337d53fdf45 ("arm: dts: sync am33xx with Linux 5.9-rc7") prevent the PDU001 from operating correctly. This patch fixes the configuration of the pin multiplexer and uart3. Signed-off-by: Felix Brack <fb@ltec.ch>
2022-02-14scripts: setlocalversion: remove quotes around localversion from configNikita Maslov1-2/+3
After replacing of include/config/auto.conf sourcing with extraction of CONFIG_LOCALVERSION, resulting version string contains quotes around localversion part which are always present in auto.conf (even if localversion is empty). This patch fixes this script to remove quotes. Signed-off-by: Nikita Maslov <wkernelteam@gmail.com> Cc: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Cc: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2022-02-14pstore: Support already existing reserved-memory nodeDetlev Casanova1-5/+34
The pstore command tries to create a reserved-memory node but fails if it is already present with: Add 'reserved-memory' node failed: FDT_ERR_EXISTS This patch creates the node only if it does not exist and adapts the reg values sizes depending on already present #address-cells and #size-cells values. Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>
2022-02-11Merge tag 'efi-2022-04-rc2-4' of ↵Tom Rini17-217/+1186
https://source.denx.de/u-boot/custodians/u-boot-efi Pull request for efi-2022-04-rc2-4 Documentation: * mkeficapsule man-page UEFI changes: * add support for signing images to mkeficapsule * add support for user define capsule GUID * adjust unit tests for capsules * fix UEFI image signature validation in case of multiple signatures
2022-02-11test/py: efi_secboot: adjust secure boot tests to code changesIlias Apalodimas1-2/+28
The previous patch is changing U-Boot's behavior wrt certificate based binary authentication. Specifically an image who's digest of a certificate is found in dbx is now rejected. Fix the test accordingly and add another one testing signatures in reverse order Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
2022-02-11efi_loader: fix dual signed image certificationIlias Apalodimas1-70/+18
The EFI spec allows for images to carry multiple signatures. Currently we don't adhere to the verification process for such images. The spec says: "Multiple signatures are allowed to exist in the binary's certificate table (as per PE/COFF Section "Attribute Certificate Table"). Only one hash or signature is required to be present in db in order to pass validation, so long as neither the SHA-256 hash of the binary nor any present signature is reflected in dbx." With our current implementation signing the image with two certificates and inserting both of them in db and one of them dbx doesn't always reject the image. The rejection depends on the order that the image was signed and the order the certificates are read (and checked) in db. While at it move the sha256 hash verification outside the signature checking loop, since it only needs to run once per image and get simplify the logic for authenticating an unsigned imahe using sha256 hashes. Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
2022-02-11test/py: efi_capsule: check the results in case of CAPSULE_AUTHENTICATEAKASHI Takahiro1-4/+22
Before the capsule authentication is supported, this test script works correctly, but with the feature enabled, most tests will fail due to unsigned capsules. So check the results depending on CAPSULE_AUTHENTICATE or not. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org>
2022-02-11test/py: efi_capsule: add a test for "--guid" optionAKASHI Takahiro2-0/+70
This test scenario tests a new feature of mkeficapsule, "--guid" option, which allows us to specify FMP driver's guid explicitly at the command line. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>