summaryrefslogtreecommitdiff
path: root/meta-aspeed/recipes-bsp/u-boot
AgeCommit message (Collapse)AuthorFilesLines
2024-07-26u-boot-aspeed-sdk: Add Facebook Catalina supportAndrew Jeffery1-1/+1
Potin Lai (1): ARM: dts: Aspeed: Add Catalina into Facebook DTS Change-Id: I61c30cd514439ae3c17e1fbab28e1ac523cf4466 Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
2024-06-18meta-aspeed: u-boot-aspeed-sdk: Facebook AST2600 platform DTAndrew Jeffery1-1/+1
Peter Yin (1): ARM: dts: Aspeed: Add Facebook DTS Change-Id: Ide24c1151c73afab66cd17b3b505d17fabcb6303 Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
2024-03-26meta-aspeed: u-boot-aspeed-sdk: Add DTS for Asus, AmpereAndrew Jeffery1-1/+1
Andrew Jeffery (1): arm: dts: Sort aspeed entries in Makefile Chanh Nguyen (1): ARM: dts: aspeed: Add Ampere's BMC platform (AST2600) Kelly Hung (1): arm: dts: ast2600-x4tf: Add new dts for ASUS X4TF Change-Id: If78cd745a8162868e28d3c22c9db8f06e983d86b Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
2023-07-24u-boot-aspeed: Rebase on SDK v00.04.15Joel Stanley1-1/+1
The new SDK came out with some updates to the flash driver, and OPTEE booting. It also includes some changes submitted from the openbmc branch. Changes since v00.04.13 SDK version: Chia-Wei Wang (4): common: fit: Update board_fit_image_post_process() to pass fit and node_offset ast2600: Add SMP bootflow to support OP-TEE configs: evb-ast2600-spl: Add support for OPTEE booting arm32: Fix relocation of env_addr if POSITION_INDEPENDENT=y Chin-Ting Kuo (10): spi-nor: Disable hold/reset pin on MT25QL02G spi: aspeed: Add pure command mode support spi: aspeed: Copy address info from data buf spi: aspeed: Copy address info from data buf spi: aspeed: Add flash write-protect by host ctrl APIs spi: Add usage example for write protect APIs spi: aspeed: Fix bug for lower SPI clock frequency spi: aspeed: Use fixed SPI clock frequency at the beginning mtd: spi-nor: Add gd55b01gf and gd55b02gf ID info spi-nor: Remove dual mode for GDxxBxxGE flash part Cédric Le Goater (1): ARM: dts: aspeed: Add a palmetto board (AST2400) Dylan Hung (7): aspeed: ast2600: Keep PLL power on cmd: nettest: disable ABR WDT pinctrl: ast2600: Remove the accesses to SCU474 net: phy: Add Broadcom BCM54210E driver configs: ast2600: Remove AST2600A1 ECC defconfig Arch: arm: dts: Add dts for AST2600 EVB with DRAM ECC enabled configs: ast2600: Revise AST2600 EVB ECC configs Eddie James (1): board: ast2600-ibm: Add AST2600 BMC based POWER10+ servers Graeme Gregory (1): ARM: dts: aspeed: add Qualcomm DC-SCM V1 Jae Hyun Yoo (2): ARM: dts: ast2600-qcom-dc-scm-v1: enable HACE board: Add initial version of Qualcomm DC-SCM V1 board Jammy Huang (5): cmd: aspeed: dptest: Add log messages cmd: aspeed: dptest: Add ctrl for ssc shift cmd: aspeed: dptest: Make D10.2 public misc: dp: Fix BMC mode can't control if patch for no driver works cmd: aspeed: dptest: Modify SSC policy Joel Stanley (9): ARM: dts: Rename Rainier to P10 BMC ARM: dts: ast2600: Fix indentation ARM: dts: ast2600: Consolidate A1 device tree ARM: dts: ast2600: Consolidate A0 device tree ARM: dts: ast2600: Consolidate NCSI device tree ARM: dts: aspeed: Add a Romulus board (AST2500) ram/aspeed: Use device tree to configure ECC ram/aspeed: Remove ECC config option ARM: dts: aspeed: p10bmc: Enable ECC Kevin Chen (1): Revert CONFIG_SYS_TEXT_BASE to support Raw and FIT images. Neal Liu (1): otp: print actual value for programming data region Troy Lee (1): board: ast2600-dcscm: Add Aspeed AST2600 DCSCM demo board support Zev Weiss (1): ARM: dts: aspeed: Add Delta AHE-50DC BMC chin-ting_kuo (1): Revert "spi: aspeed: Copy address info from data buf" Remaining openbmc changes: Adriana Kobylak (1): configs: aspeed-common: Add redundant env for mmc Delphine CC Chiu (1): ARM: dts: aspeed: add Meta greatlakes board (AST2600) Eddie James (7): tpm: Pull in upstream changes tpm: Fix spelling for tpmu_ha union tpm: sandbox: Update for needed TPM2 capabilities tpm: Support boot measurements bootm: Support boot measurement doc: Add measured boot documentation ast2600: Measure the boot Heinrich Schuchardt (1): cmd: inconsistent return type of command_process() Ilias Apalodimas (1): tpm: add a function that performs selftest + startup Jae Hyun Yoo (1): mtd: spi-nor-ids: add winbond w25q512nw family support Joel Stanley (14): ast2600: spl: Implement board_boot_order ast2600: Add environment for booting from mmc crypto: Restore old driver for Aspeed HACE ARM: dts: aspeed: Disable ACRY for rainier and tacoma tools: Disable OpenSSL deprecation warnings cmd/otp: Fix struct storage type configs: Add OpenBMC config for SPL MMC boot configs: Add OpenBMC config for SPL NOR boot configs: openbmc: Remove ymodem SPL support aspeed: Remove remaining "Aspeed secure boot" code config/ast2500: Enable RAM devices ram/aspeed: Re-init ECC if requested but not enabled configs: ast2600: Use stringify configs: evb-ast2600: Disable unused loaders John Keeping (1): tools: env: update lock path in README Pali Rohár (2): version: Move version_string[] from version.h to version_string.h Remove including timestamp.h in version.h Patrick Rudolph (1): ARM: dts: aspeed: Add IBM Genesis3 board Simon Glass (1): image: Correct strncpy() warning with image_set_name() Tim Lee (1): tools: env: use /run to store lockfile Tom Rini (1): Makefile: Silence binutils 2.39 linker warnings Zev Weiss (2): aspeed: Disable backdoor interfaces Revert "config/ast2500: Enable RAM devices" Change-Id: I20864b06ef92502fa1ca7e9f406f3c143a918f66 Signed-off-by: Joel Stanley <joel@jms.id.au>
2023-05-30u-boot-aspeed: IBM Genesis3, Meta Greatlakes, lock file pathAndrew Jeffery1-1/+1
Delphine CC Chiu (1): ARM: dts: aspeed: add Meta greatlakes board (AST2600) Joel Stanley (1): configs: evb-ast2600: Disable unused loaders John Keeping (1): tools: env: update lock path in README Patrick Rudolph (1): ARM: dts: aspeed: Add IBM Genesis3 board Tim Lee (1): tools: env: use /run to store lockfile Change-Id: I949c57fe862b940fc78ede3bee22f599a4dd9f2a Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
2023-03-10u-boot-aspeed: Measured boot using TPMJoel Stanley1-1/+1
Backport v9 of Eddie's series from mainline u-boot, plus required dependanices from v2023.04-rc3. https://lore.kernel.org/u-boot/20230308212537.1725343-1-eajames@linux.ibm.com/ Eddie James (7): tpm: Pull in upstream changes tpm: Fix spelling for tpmu_ha union tpm: sandbox: Update for needed TPM2 capabilities tpm: Support boot measurements bootm: Support boot measurement doc: Add measured boot documentation ast2600: Measure the boot Ilias Apalodimas (1): tpm: add a function that performs selftest + startup Change-Id: I40015e7d34b610dcacee6ea995088665bc12cdf5 Signed-off-by: Joel Stanley <joel@jms.id.au>
2023-03-02u-boot-aspeed: Fix build warningsJoel Stanley1-1/+1
Backport some fixes to ensure the build completes without warnings. It now also does not rebuild if all objects are up to date. Joel Stanley (1): configs: ast2600: Use stringify Pali Rohár (2): version: Move version_string[] from version.h to version_string.h Remove including timestamp.h in version.h Simon Glass (1): image: Correct strncpy() warning with image_set_name() Tom Rini (1): Makefile: Silence binutils 2.39 linker warnings Change-Id: I0c5d06d011117c9857cfb30a2a5fd06109bd35de Signed-off-by: Joel Stanley <joel@jms.id.au>
2023-03-02u-boot-aspeed: Update to SDK v00.04.13Joel Stanley1-1/+1
Changes since v00.04.12: Dylan Hung (2): ram: aspeed: DDR4 DRAM and PHY ODT/Ron options depend on AST2600 net: ftgmac100: use %p for pointer variable printf Jammy Huang (5): misc: dp: Fix dp display turn black for a sudden if BMC reboot misc: dp: Fix dp display turn black for a sudden if BMC reboot misc: dp: refine config for redriver misc: dp: Support VBIOS/UEFI's vga-only mode misc: dp: Modify scratch reg's, 1e6e210c, behavior Neal Liu (1): otp: remove bit-field declaration Change-Id: Id13e9e34ae54e4aad4f5d43fad90b7df96eeb1f7 Signed-off-by: Joel Stanley <joel@jms.id.au>
2023-01-10meta-aspeed: u-boot-aspeed-sdk: Add eMMC ABR ROM patchNeal Liu3-0/+72
Address errata 80 from E2600-11.pdf in a ROM patch for integration into the OTP image. A otptool configuration file is provided as an example Signed-off-by: Neal Liu <neal_liu@aspeedtech.com> [AJ: Take 098e7ba124184 from https://github.com/AspeedTech-BMC/openbmc] Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I936c60f9db8e36f3213f426aebeb62b72015303c
2022-11-10u-boot-aspeed: Fix AST2500 DRAM trainingJoel Stanley1-1/+1
Zev Weiss (1): Revert "config/ast2500: Enable RAM devices" Change-Id: I9fc02a8f4c9e340e5110db196243ca8b3dc791a7 Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-10-24u-boot-aspeed: Rebase on v00.04.12 SDKJoel Stanley1-1/+1
Update to the latest ASPEED SDK. No other changes. Change-Id: Icca4fb50e56ef718d31472aa895a81921b2ef94d Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-09-29u-boot-aspeed: Re-init ECCJoel Stanley1-1/+1
Joel Stanley (1): ram/aspeed: Re-init ECC if requested but not enabled Change-Id: I083b2cec3b569efee97a16c5e9d2cbfeba642951 Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-09-24u-boot-aspeed: ECC device tree supportJoel Stanley1-1/+1
This moves ECC support to be device tree based. All u-boot images using the defconfig will contain the code to run with ECC, but it will only be enabled by systems that set the aspeed,ecc-enabled device tree property. p10bmc is the first machine to enable ECC in this fashion. Joel Stanley (4): config/ast2500: Enable RAM devices ram/aspeed: Use device tree to configure ECC ram/aspeed: Remove ECC config option ARM: dts: aspeed: p10bmc: Enable ECC Change-Id: I352f7d801f4becb937a2dede5910618eeddd1f0e Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-08-09u-boot-aspeed: Add RomulusJoel Stanley1-1/+1
Joel Stanley (1): ARM: dts: aspeed: Add a Romulus board (AST2500) Change-Id: I7896cfaf111cd757b602cbd194c281bd05776170 Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-08-04u-boot-aspeed: Add w25q512nwJoel Stanley1-1/+1
Jae Hyun Yoo (1): mtd: spi-nor-ids: add winbond w25q512nw family support Change-Id: Id46df51aab2bc6313d9f0d722ae25ff9325fc055 Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-08-04u-boot-aspeed: Rebase on SDK v00.04.11Joel Stanley1-1/+1
This moves OpenBMC to the latest SDK from Aspeed. Note that a series of fixes were sent to Aspeed on top of the SDK release to ensure the OpenBMC configuration continued to work. These changes have been merged by Aspeed but do not appear in a SDK tag at this stage. Also sent to Aspeed were some of the changes from the OpenBMC branch. Changes from Aspeed's new SDK: Billy Tsai (1): gpio: aspeed: Fix incorrect offset of read back register. Chia-Wei Wang (3): Merge branch pull request #10 into aspeed-dev-v2019.04 arm: aspeed: ast2600: Remove ASPEED_LOADERS configs: aspeed: Remove legacy defconfig Chin-Ting Kuo (10): dts: aspeed: Create a device tree for DC-SCM solution dts: aspeed: Add ast2600-dcscm device tree spi-nor: Porting for S25HL series dts: aspeed: DC-SCM early bring up spi: aspeed: Fix bug when using 2Gb flash dts: aspeed: dc-scm: Add support for external mux spi_nor: Support s25hl without SFDP mtd: spi: Support Gigadevice device with 64KB sector size dts: aspeed: dc-scm: Extend bus-width to 4 for SPI1 spi-nor: Add fast read command for S25HL series flash support Dylan Hung (5): cmd/aspeed/nettest: apply addtional delay for RTL8211F dts: aspeed: enable mac1 for ast2600-dcscm cmd: aspeed: nettest: fix driving strength setting cmd: aspeed: support ctrl+c to break dramtest loop ram: aspeed: add AST2600 ODT configuration Eddie James (2): ARM: dts: aspeed: tacoma: Add eMMC nodes and parameters ARM: dts: aspeed: rainier: Add eMMC nodes and parameters George Hung (1): ARM: dts: aspeed: add Quanta S6Q machine dts Jammy Huang (11): pinctrl: ast2600: Add support for secure-i2c arm: dts: ast2600: Add definition for secure-i2c pinctrl misc: dp: Support re-driver misc: dp: Update dp-fw misc: dp: Refine code misc: dp: Update dp-fw misc: dp: Fix black screen occasionally misc: dp: Fix monitors black screen with 15m cable misc: dp: Fix black screen occasionally misc: dp: Improve compatibility misc: dp: Improve compatibility Joel Stanley (5): ARM: dts: rainier: Enable ACRY and HACE ARM: dts: tacoma: Enable ACRY and HACE aspeed: Disable unused loaders, add STMICRO flash aspeed: Sort dts files in makefile as2600/scu: Fix printing of security info Johnny Huang (4): cmd: aspeed: otp: fix otp status polling otp: update image checksum to SHA384 otp: add 'verify' sub-command otp: add 'invalid' sub-command Neal Liu (2): arm: aspeed: ast2600: select USB2.0 device mode as default arm: aspeed: ast2600: enable USB port B PHY clock Peng Fan (1): tools: imx image: fix write warning Potin Lai (1): ARM: dts: Aspeed: Add Bletchley dts Tommy Huang (5): cmd: aspeed: DP CTS command utility cmd: aspeed: Update aspeed dptest default build config cmd: dptest: Arrange tab align cmd: aspeed: Fix the internal section compile fail i2c: ast_i2c: Remove SCL direct drive mode ryan_chen (4): i2c:ast2600: add ast2600 new register mode driver pcie:aspeed : update reset sequnce. pcie:aspeed : fix two rc enable rc high config read timeout issue pcie:aspeed : update perst sequence Change-Id: I2b79d15f7016913cae3f2b1d9cf6ee143136aaf2 Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-07-15u-boot-aspeed: Enable NCSI in EVB configsJoel Stanley1-1/+1
Joel Stanley (2): ftgmac100: Fail probe when NCSI selected but not enabled config/ast-evb: Enable NCSI Change-Id: I5ed0610738d83ad21a3a52956851d2dc938c1f1f Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-07-14u-boot-aspeed: Plametto and Qcom DC-SCMJoel Stanley1-1/+1
Cédric Le Goater (1): ARM: dts: aspeed: Add a palmetto board (AST2400) Jae Hyun Yoo (2): ARM: dts: ast2600-qcom-dc-scm-v1: enable HACE board: Add initial version of Qualcomm DC-SCM V1 board Change-Id: Ic4967aa383778b16224c06887467b74b51bbfc6a Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-07-01u-boot-aspeed-sdk: Make fw-utils config consistent with u-bootZev Weiss2-2/+3
Previously the FLASH_SIZE-based config tweaks had only been applied to u-boot itself, leaving fw-utils built with a different default environment that could end up replacing the original one with a non-working bootcmd setting. Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Change-Id: I147a601d6a348f94b221459eabee4555dfed63c6
2022-07-01u-boot-aspeed-sdk: Share distrovars requirement between u-boot & fw-utilsZev Weiss3-2/+2
Might as well have it in one place instead of duplicating it between both. Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Change-Id: Id87649691c93d0dbdc08d2484ca59a85cb54a3eb
2022-06-17u-boot-aspeed: SPI NOR, NCSI, Qcom DC-SCM, dts cleanupsJoel Stanley1-1/+1
Cédric Le Goater (3): net: phy: ncsi: Add phy_interface_is_ncsi() helper spi: aspeed: Use "jedec,spi-nor" compatible to count devices ARM: dts: aspeed: Remove "spi-flash" compatible Graeme Gregory (1): ARM: dts: aspeed: add Qualcomm DC-SCM V1 Joel Stanley (4): phy: Only create NCSI PHY when it's present ARM: dts: ast2600: Consolidate A1 device tree ARM: dts: ast2600: Consolidate A0 device tree ARM: dts: ast2600: Consolidate NCSI device tree Change-Id: I9b510afd3647afc66e99f2a64f0cb42a4aa65c15 Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-06-08u-boot-aspeed: Rename Rainier device tree to P10 BMCJoel Stanley1-1/+1
Joel Stanley (2): ARM: dts: Rename Rainier to P10 BMC ARM: dts: ast2600: Fix indentation Change-Id: I732324d89b7c0f731160d69942051e4d4cadc778 Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-06-06u-boot-aspeed: Update AST2600 OpenBMC SPL for NOR configJoel Stanley1-1/+1
Howard Chiu (1): configs: aspeed: Add SPL FIT image loading support Change-Id: I913b63b740a98eb29c3ff1ea66d408f65d781169 Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-05-31u-boot-aspeed: TPM TIS I2C supportJoel Stanley1-1/+1
This contains a backport of the TPM TIS core from u-boot mainline, plus a driver from Eddie that enables the I2C backend. It fixes I2C support for the AST2600 and enables the TPM on IBM's rainier platform. A new AST2600 board 'ast2600-ibm' is added that contains some machine specific code for performing TPM init. This board does not have a in-tree defconfig, rather it will be selected by Yocto metadata. This allows us to keep the number of defconfigs low while still having machine specific customisation. Eddie James (6): tpm: core: Set timeouts before requesting locality i2c: ast_i2c: Remove SCL direct drive mode tpm: add support for TPMv2.x I2C chips arm: dts: ast2600-rainier: Add NPCT75X TPM board: ast2600-ibm: Add AST2600 BMC based POWER10+ servers arm: dts: ast2600: Add I2C pinctrl Heinrich Schuchardt (1): tis: fix tpm_tis_remove() Ilias Apalodimas (1): tpm2: Introduce TIS tpm core Joel Stanley (2): configs: ast2600: Remove redundant target option configs: ast2600: openbmc: Add TPM TIS I2C support Johannes Holland (1): tpm: add #ifndef to fix redeclaration build errors Simon Glass (1): tpm: Add more TPM2 definitions Change-Id: Ibd13e0b0a1920f344ead219894a264323f0b8cc5 Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-05-19u-boot-aspeed: FTGMAC100 error message fixJoel Stanley1-1/+1
Zev Weiss (1): ftgmac100: Use bus name in mdio error messages Change-Id: Id63c80c5b4b95d8be6a50eec8bd67d22fc184bf7 Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-05-13u-boot-aspeed: Delta AHE-50DC and RGMIIJoel Stanley1-1/+1
Zev Weiss (3): aspeed: Fix typos in platform.h comments pinctrl: ast2400: add support for RGMII1 and RGMII2 ARM: dts: aspeed: add Delta AHE-50DC BMC Change-Id: I32f2d4dd7cfb7575579ea6089f54b57a8e7161e2 Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-05-10u-boot-aspeed: Disable backdoor interfacesJoel Stanley1-1/+1
This is a version of the CVE-2019-6260 "pantsdown" mitigations for the v2019.04 u-boot branch. The SuperIO and debug UART backdoors can be optionally enabled through u-boot build time configuration, but default to disabled as long as your machine uses the common board_init. These changes are relevant for the AST2400 and the AST2500 only. If your machine relies on these features to boot, look at the options in this patch: https://lore.kernel.org/openbmc/20220504004739.15829-1-zev@bewilderbeest.net/ See this email for instructions on how to test: https://lore.kernel.org/openbmc/CACPK8XfYuWT9Q5G_bo9AGugx-DcODDZ8xb39Sr+Sa8qWqVeW6A@mail.gmail.com/ Thank you to Zev for the work on this patch. Zev Weiss (1): aspeed: Disable backdoor interfaces Change-Id: I4ebeae13047b8c32f2d9324d4ef9c6f98c6f4a60 Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-05-02meta-aspeed: Consolidate u-boot fw_env configurationJoel Stanley4-11/+3
The 32MB and 64MB NOR environments are the same configuration, so use the one file. The AST2600 NOR layout is the same size as the others so it can use the same file too. Change-Id: I6ee3fbf0d68104bcc684c2536fe85c5aec76c409 Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-05-02meta-aspeed: Correct the offset to load kernelHoward Chiu4-1/+10
OpenBMC places kernel at offset 512 if the flash size is 32MB, but it was defined as 1024 in the present defconfig. This patch corrects the offset if the flash size is set to 32MB. Signed-off-by: Howard Chiu <howard_chiu@aspeedtech.com> Change-Id: I05749eda519cc1660921e111a36be74cb121fa68
2022-04-21treewide: fix GPLv2+ obsolete-license warningsPatrick Williams2-2/+2
The LICENSE string 'GPLv2+' is considered obsolete by Yocto and raises a warning. Switch them too the accepted tag 'GPL-2.0-or-later'. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I88c639dbb45762e2e019a3503f1f1930b65c09d6
2022-04-18u-boot-aspeed: Update to SDK v00.04.10Joel Stanley1-1/+1
THe diff between the old commit and this one is below. This includes new changes from the SDK, and the existing patches rebased on top of the new SDK release. Adriana Kobylak (1): configs: aspeed-common: Add redundant env for mmc Chia-Wei Wang (1): configs: evb-ast2600-spl: Remove U-Boot MMC raw sector Chin-Ting Kuo (5): spi_nor: aspeed: Update SPI driver spi: apseed: Update timing compensation calculation method dts: ast2600: Update decoded address size spi: aspeed: Fix resource size calculation method dts: aspeed: Sync the real scenario of AST2600 EVB Dylan Hung (8): ram: aspeed: remove incorrect Vref information ram: aspeed: remove dead code and refine comment ram: aspeed: revise tRFI configuration ram: aspeed: fix incorrect printf ram: aspeed: revise coding style cmd: aspeed: nettest: add RTL8211F(D)-VD-CG support net: phy: realtek: Add RTL8211F-VD driver support clk: ast2600: fix ast2600_find_dly32_tap return value Eddie James (5): gpio: Enable hogging support in SPL ast2600: Add GPIO controller and hog TPM reset pin ARM: dts: aspeed: tacoma: Add eMMC nodes and parameters ARM: dts: aspeed: rainier: Add eMMC nodes and parameters Add GPIO hogging support for AST2600 openbmc config George Hung (1): ARM: dts: aspeed: add Quanta S6Q machine dts Heiko Schocher (2): gpio: add gpio-hog support gpio: fixes for gpio-hog support Jamin Lin (1): fix compiling warnings for AST2600 A1 SPL Jammy Huang (1): misc: dp: Update fw Jean-Jacques Hiblot (1): dm: Add a No-op uclass Joel Stanley (15): Makefile: Conditionally add defaultenv_h to envtools target ast2600: spl: Fix build when accelerators are disabled ARM: dts: rainier: Enable ACRY and HACE ARM: dts: tacoma: Enable ACRY and HACE aspeed: Disable unused loaders, add STMICRO flash aspeed: Sort dts files in makefile as2600/scu: Fix printing of security info ast2600: spl: Implement board_boot_order configs: Add OpenBMC spl defconfig for AST2600 boards ast2600: Allow selection of SPL boot devices config: ast2600: Add config for SPL MMC boot with FIT signature verification ast2600: Add environment for booting from mmc ast2600/openbmc: Use emmc based configuration crypto: Restore old driver for Aspeed HACE ARM: dts: aspeed: Disable ACRY for rainier and tacoma Neal Liu (3): crypto: aspeed: combine acry drivers into a file arm: dts: ast2600: add acry sram base crypto: aspeed: acry: add private allocated space for device Peng Fan (1): tools: imx image: fix write warning Potin Lai (1): ARM: dts: Aspeed: Add Bletchley dts Troy Lee (2): ARM: aspeed: Disable ABR WDT when boot from UART with secure boot configs: aspeed: Increase SPL stack size Zev Weiss (1): pinctrl: ast2400: add support for TXD3/RXD3 pins ryan_chen (3): rename pcie driver for aspeed phy and pcie controller ast2600:bclk is come from epll. it will update in datasheet platform.S:ast2600: modify for only reset at AC on Change-Id: I52b1be9474461e18dd26fd08472c2824485c1c09 Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-03-22u-boot-aspeed: Buffer overflow, compiler warning fixesJoel Stanley1-1/+1
Jamin Lin (1): ast2600: Fix compile warnings for AST2600 A1 SPL Joel Stanley (1): as2600/scu: Fix printing of security info Change-Id: I4f2ee7cf8a95721e49f7e98bcc87407d5b87c766 Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-02-22u-boot-aspeed: Add Bletchley, SPL stack size increaseJoel Stanley1-1/+1
Joel Stanley (1): aspeed: Sort dts files in makefile Potin Lai (1): arm: dts: Aspeed: add Bletchley dts Troy Lee (1): configs: aspeed: Increase SPL stack size Change-Id: If64f45949bb1a26ac6c8fc04427cb7f24a5c5420 Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-02-17u-boot-aspeed: AST2400/AST2500 configs, build warningJoel Stanley1-1/+1
Joel Stanley (1): aspeed: Disable unused loaders, add STMICRO flash Peng Fan (1): tools: imx image: fix write warning Change-Id: I12b8d4dead50bee2c9053efef0a485cb7fe0b179 Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-02-16u-boot-aspeed: Move to v00.04.09 SDKJoel Stanley1-1/+1
This moves to the latest ASPEED SDK release. In addition we have backports of gpio-hog support added, in order to implement a feature for the Rainier system. The old branch is archived as archive/v2019.04-aspeed-openbmc-4. The patches on top of the SDK are: Adriana Kobylak (1): configs: aspeed-common: Add redundant env for mmc Eddie James (5): ARM: dts: aspeed: tacoma: Add eMMC nodes and parameters ARM: dts: aspeed: rainier: Add eMMC nodes and parameters gpio: Enable hogging support in SPL Add GPIO hogging support for AST2600 openbmc config ast2600: Add GPIO controller and hog TPM reset pin Heiko Schocher (2): gpio: add gpio-hog support gpio: fixes for gpio-hog support Jean-Jacques Hiblot (1): dm: Add a No-op uclass Joel Stanley (13): tools: Add script for generating recovery image Makefile: Conditionally add defaultenv_h to envtools target ast2600: spl: Fix build when accelerators are disabled ARM: dts: rainier: Enable ACRY and HACE ARM: dts: tacoma: Enable ACRY and HACE ast2600: spl: Implement board_boot_order configs: Add OpenBMC spl defconfig for AST2600 boards ast2600: Allow selection of SPL boot devices config: ast2600: Add config for SPL MMC boot with FIT signature verification ast2600: Add environment for booting from mmc ast2600/openbmc: Use emmc based configuration crypto: Restore old driver for Aspeed HACE ARM: dts: aspeed: Disable ACRY for rainier and tacoma Zev Weiss (1): pinctrl: ast2400: add support for TXD3/RXD3 pins Signed-off-by: Joel Stanley <joel@jms.id.au> Change-Id: I3cfb7a6bb39c2c2fb2aa53c8f911a6224d33fd87
2022-02-16meta-aspeed: otp: create otp imageJamin Lin1-0/+1
1. Add otptool.bbclass to create otp image. 2. Update u-boot recipe to "inherit otptool.bbclass" for otp image creation in the u-boot tasks. 3. Update socsec tool for SPL and OTP image verification if verify failed u-boot should be built failed. 4. Use OE logging utilities. Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com> Change-Id: I0ba5da4d112b49d182bdf2751614afe62850eac3
2022-01-31u-boot-aspeed-sdk: use u-boot do_configure for fw-utilsZev Weiss1-1/+1
Previously, the u-boot-fw-utils-aspeed-sdk build didn't take *.cfg files in SRC_URI into account at all, leading to problematic mismatches between fw_{set,print}env's configuration and that of u-boot itself (such as discrepancies in their respective notions of what the default environment should be). With this change the fw-utils build uses the same do_configure as the regular u-boot build, so the two packages can more easily be built with a single consistent configuration. Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Change-Id: Ia83768597b6b75dc00425bdc23f216274d87e0ae
2022-01-20socsec: change rsa order to big endian for AST2600 A3Jamin Lin1-1/+1
In general, software such as openssl calculates digest(big endian) of input data and uses big-endian digest to sign for RSA signature creation. However, AST2600 A1 only supports little endian. In other words, AST2600 A1 crypto hardware engine digest output is “little endian”. That is why our SOCSEC tool reverse signature and digest to match the AST2600 A1 crypto engine design(little endian). AST2600 A3 changed the design to support big endian. ASPEED recommends using big endian to remain compatible with general software tool design and therefore SOCSEC tool does not need to reverse digest and signature. Default to big endian for OpenBMC platforms as A3 is production silicon, and earlier revisions are not well supported. Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com> Change-Id: Iba46f704b86990d53937f104c3c601da5a3c111f
2021-12-30Fix the config error of u-boot-envzhanghaicheng4-0/+9
When using 64M flash, the config of u-boot CONFIG_ENV_SIZE and CONFIG_ENV_OFFSET is wrong. The config file fw_env.config is wrong, too. Modify them according to the 64M flash dts file. Before correcting these errors, when we used setenv to set environment variables in u-boot, we could not use fw_printenv to get them. The reverse is also the same. Because they set different offset and size. Tested: 1. Use commands in u-boot: setenv test value saveenv After BMC starts, use fw_printenv can get "test=value" 2. Use the command to change the value of "test" fw_setenv test v We can get "test=v" in u-boot by printenv. Signed-off-by: zhanghaicheng <zhanghch05@inspur.com> Change-Id: I9eccf6abe743253b6f8c344a8b8648e68ab52019
2021-10-11u-boot-aspeed: use upstream u-boot.incAndrei Kartashev3-8/+12
Move u-boot-aspeed-sdk to use u-boot.inc from poki instead our own. We still need our own one for old u-boot-aspeed, so keep it as is. Tested: Build image for AST2500-based machine with u-boot-aspeed-sdk_2019.04, verified that it boots up and fw-utils installed to the image properly. Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com> Change-Id: Ia5fecdedc94e9550196420884a727e7d87b313d4
2021-10-08u-boot-aspeed: Fix booting with HACEJoel Stanley1-1/+1
Joel Stanley (1): aspeed/hace: Reset when error occurs Change-Id: I10ec988f7b0b01aa76a4338ef095fbe80b4229ec Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-08-30meta-aspeed: u-boot-aspeed-sdk: Ensure SOCSEC_SIGN defaults are setAndrew Jeffery1-1/+2
Include the socsec-sign class after the conditional assignments to ensure the values we might assign are considered by the functions of socsec-sign. Without this, u-boot-aspeed-sdk do_deploy logs show: ``` DEBUG: Executing python function sstate_task_prefunc DEBUG: Python function sstate_task_prefunc finished DEBUG: Executing shell function do_deploy Copying u-boot-nodtb binary... Warning: Invalid socsec signing key - SPL verified boot won't be available ``` Adjusting the location of the include gives: ``` DEBUG: Executing python function sstate_task_prefunc DEBUG: Python function sstate_task_prefunc finished DEBUG: Executing shell function do_deploy Copying u-boot-nodtb binary... check header PASS Found PEM header at position 381 check integrity PASS ``` Change-Id: I15cac4c315a6ceaeb69b0c02ba0b7d05e54f6e15 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
2021-08-23u-boot-aspeed: improve env handlingAndrei Kartashev3-1/+7
This fixes some build errors we faced due to add new ast2500-based platform. * Allow to redefine input env file. * Backport providing "u-boot-default-env" from u-boot.inc * PROVIDES += "u-boot-fw-utils" is not enough, add also RPROVIDES Last two changes allows to exclude from build modern libubootenv which somewhy doesn't work for us. Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com> Change-Id: I33f152c572f6c0b4d8b608375b252290efacd1ea
2021-08-17meta-aspeed: u-boot-aspeed-sdk: Use provided signing key by defaultAndrew Jeffery1-0/+4
Allow configurations to override the SPL signing key if necessary, but provide a default in case they don't. The provided key is intended a low-security key. Change-Id: I756271970b0a55409e40dbd06f1245ada6a3cb73 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
2021-08-11meta-aspeed: prep for new override syntaxPatrick Williams5-19/+19
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I8135871ae0e3b360aff7d878f7cf04a2504f2dd0
2021-06-24u-boot-aspeed: MMC env and AST2600 SPI boot fixesJoel Stanley1-1/+1
Adriana Kobylak (1): configs: aspeed-common: Add redundant env for mmc Troy Lee (2): ast2600: spl: Fixes boot from RAM device ast2600: Provide u-boot FIT image boot from RAM offset Change-Id: I9fd8c76593d83d32504288a6405c2b4c41fdb381 Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-06-22u-boot-aspeed: Add environment for booting from mmcJoel Stanley1-2/+2
This adds the u-boot environment to the u-boot binary. On the 2600 with mmc we currently rely on the default environment being populated in the image. This has the downside that if something corrupts the environment, the system won't know how to boot itself. This wasn't a problem for NOR based systems as the built in command knew how to boot the system (unless you were using a 'special' setup such as Witherspoon's UBI setup). The ast2600_openbmc_mmc.txt is copied from meta-aspeed/recipes-bsp/u-boot/files/u-boot-env-ast2600.txt. Adriana has indicated she will update openbmc to use the .txt from the u-boot tree to generate the filesystem image (or we could stop doing that, and simply use the default?). The environment processing step requires xxd on the build system. Joel Stanley (2): Makefile: Conditionally add defaultenv_h to envtools target ast2600: Add environment for booting from mmc Change-Id: I0381ac168285bade75115b7b415e18dd7fc8694e Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-06-21AST2600: Update default env for multiple FIT configEddie James1-5/+7
Add environment variables to the AST2600 to boot a certain FIT configuration of the kernel based on the "fitconfig" environment variable. The boot command will fall back to the default FIT config in case all other boot attempts fail. Also fix the kernel boot arguments in the case that boot failure occurs. The boot sequence would be: - boota with fitconfig, if it fails: - boota without fitconfig, if it fails: - bootb with fitconfig, if it fails: - bootb without fitconfig Tested: Set fitconfig to a dummy variable, and also changed the bootm command to a dummy command to force a boot failure, and verified the sequence was as expected: ast# boot boota Error loading kernel FIT image with fitconfig rainier-dummy Unknown command 'bootm-dummy' - try 'help' Error loading kernel FIT image bootb Error loading kernel FIT image with fitconfig rainier-dummy Unknown command 'bootm-dummy' - try 'help' Error loading kernel FIT image Signed-off-by: Eddie James <eajames@linux.ibm.com> Signed-off-by: Adriana Kobylak <anoo@us.ibm.com> Change-Id: I14cf935a707bdb95b0a6e4e607919ea0e027d18c
2021-05-25u-boot-aspeed: Move to SDK v00.04.00Joel Stanley1-1/+1
This rebases on the latest SDK release. Notably this release includes support for the A3 and disables debug backdoors in line with the defaults in the A3 silicon. Changes kept downstream from ASPEED's SDK in the OpenBMC branch: Eddie James (1): ARM: dts: Aspeed: Tacoma and Rainier: Add eMMC nodes and parameters Joel Stanley (15): board: ast2600: Disable eSPI early init by default dts: ast2600-evb: Enable FSI masters tools: Add script for generating recovery image configs: Add OpenBMC spl defconfig for AST2600 boards clk: ast2600: Add divisor settings for 100MHz PLL ram: ast2600: Enable device tree based DDR config ast2600: tacoma: Run DDR at 1333 ast2600: Allow selection of SPL boot devices ast2600: Modify SPL SRAM layout crypto: Add driver for Aspeed HACE ast2600: Enable HACE probing in SPL ast2600: Add HACE to device tree ast2600: spl: Add ASPEED_LOADERS option ast2600: spl: Support common boot loader features config: ast2600: Add config for SPL MMC boot with FIT signature verification Changes in the ASPEED SDK when moving from v00.03.03 include the branch of fixes that were backported for FIT support, plus the following changes from the ASPEED team: Bing-Hua Wang (3): configs: evb-ast2500-spl_defconfig: Use platform.S DDR init ast2500: spl: Skip SPI timing calibration ast2500: Fix VRAM size detection Chia-Wei Wang (2): ast2600: Disable backdoor to align A3 design ast2600: Enable UART Debug based on FWSPIMISO Chia-Wei, Wang (4): board: ast2600: Add eSPI early init sequence board: ast2600-intel: Add Intel EGS CRB support aspeed: ast2600: Fix incorrect chip revision ID board: ast2600: Enable eSPI early init by default Chin-Ting Kuo (4): sdhci: ast2600: HS200 support porting mmc: Enable SDMA feature when boot from eMMC uart: Fix UART1 route problem on A3 spi-nor: Porting MT25Q02G flash part Dylan Hung (18): cmd:aspeed: fix missing setting for the tx single packet cmd:aspeed: change broadcom id matching cmd:aspeed: add support of broadcom 54210/54213 test cmd:aspeed: refactor phy internal loopback cmd:aspeed: fix typo cmd:aspeed: remove redundant debug print cmd:aspeed: skip deselect package for I350 IOP issue cmd:aspeed: add NCSI_VERBOSE_TEST (default off) cmd:aspeed: add 100ms for phy ready cmd:aspeed: bug fixed of the length decoding of the dramtest arm:dts: revise ast2600 mac1/2 rgmii delay setting net:phy: add phy-mode support on broadcom 5461 series cmd:aspeed: add phy tx/rx delay control arguments cmd:aspeed: add bcm54615, rtl8211f and marvell88e15 delay setting cmd:aspeed: restore default page ram:aspeed: revise coding style ram:aspeed: refactor coding style arm:dts: revise rgmii tx/rx delay Fugang Duan (1): net: phy: realtek: add rx delay support for RTL8211F Jamin Lin (1): Add evb-ast2600-obmc-emmc-cot_defconfig config to support AST2600 emmc secure boot for OpenBMC Johnny Huang (6): otp: fix a1 program issue otp: fix otp cmd stuck otp: update version number to 1.0.2 otp: add AST2600A3 secure boot: fix public key exponent otp: update print otp image Ryan Chen (3): AST2600:platform.S for AST2600A3 fix for reset. it will apply for AST2600A1/A2/A3 ast2600:ddr: fix memory bandwidth issue sdram : ast2600 Troy Lee (2): config: ast2600: support OpenBMC boot from eMMC image config: ast2600-evb for openbmc boot command update chin-ting_kuo (1): Revert "mmc: Enable SDMA feature when boot from eMMC" The previous version of v2019.04-aspeed-openbmc is kept in the branch archive/v2019.04-aspeed-openbmc-3. Change-Id: Ie492bdbfaec32c3e3e0caf8d4fa1806fcd1febec Signed-off-by: Joel Stanley <joel@jms.id.au>
2021-05-19meta-aspeed: Add development key for socsec signKlaus Heinrich Kiwi3-0/+81
Add a development (insecure, also known as 'imprint') key to u-boot-aspeed-sdk that can be used through socsec for signing the SPL on ASPEED AST2600 devices. The keypair was generated according to socsec's documentation, using: $ openssl genrsa -out rsa_oem_dss_key.pem 4096 $ openssl rsa -in rsa_oem_dss_key.pem -pubout \ -out rsa_pub_oem_dss_key.pem Signed-off-by: Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com> Change-Id: I9c03ed9603d7362e033862dd1e5138ba7164f13d