mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-12 14:23:00 +00:00
ae79c1d01f
The CONFIG_SATAPWR Kconfig symbol was used to point to a GPIO that enables the power for a SATA harddisk. In the DT this is described with the target-supply property in the AHCI DT node, pointing to a (GPIO controlled) regulator. Since we need SATA only in U-Boot proper, and use a DM driver for AHCI there, we should use the DT instead of hardcoding this. Add code to the sunxi AHCI driver to check the DT for that regulator and enable it, at probe time. Then drop the current code from board.c, which was doing that job before. This allows us to remove the SATAPWR Kconfig definition and the respective values from the defconfigs. We also select the generic fixed regulator driver, which handles those GPIO controlled regulators. Please note that the OrangePi Plus is a bit special here, it's a H3 board without native SATA, but with a USB-to-SATA bridge. The DT models the SATA power via a VBUS supply regulator, which we don't parse yet in the USB PHY driver. Use the hardcoded CONFIG_USB3_VBUS_PIN for that board meanwhile. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Sam Edwards <CFSworks@gmail.com> Reviewed-by: Samuel Holland <samuel@sholland.org>
25 lines
556 B
Text
25 lines
556 B
Text
CONFIG_ARM=y
|
|
CONFIG_ARCH_SUNXI=y
|
|
CONFIG_DEFAULT_DEVICE_TREE="sun7i-a20-pcduino3-nano"
|
|
CONFIG_SPL=y
|
|
CONFIG_MACH_SUN7I=y
|
|
CONFIG_DRAM_CLK=408
|
|
CONFIG_DRAM_ZQ=122
|
|
CONFIG_USB1_VBUS_PIN="PH11"
|
|
CONFIG_GMAC_TX_DELAY=3
|
|
CONFIG_AHCI=y
|
|
# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
|
|
CONFIG_SPL_I2C=y
|
|
CONFIG_SCSI_AHCI=y
|
|
CONFIG_SYS_64BIT_LBA=y
|
|
CONFIG_SYS_I2C_MVTWSI=y
|
|
CONFIG_SYS_I2C_SLAVE=0x7f
|
|
CONFIG_SYS_I2C_SPEED=400000
|
|
CONFIG_PHY_REALTEK=y
|
|
CONFIG_ETH_DESIGNWARE=y
|
|
CONFIG_RGMII=y
|
|
CONFIG_MII=y
|
|
CONFIG_SUN7I_GMAC=y
|
|
CONFIG_SCSI=y
|
|
CONFIG_USB_EHCI_HCD=y
|
|
CONFIG_USB_OHCI_HCD=y
|