mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 08:59:33 +00:00
26c7de353f
Clearfog GTR has an assembly option for a SATA connector, CON18. It shares the serdes with mini-pcie connector CON3. Add new kconfig option to select betweenata and pci, defaulting to pci as it was previously configured in board-file. Clearfog GTR connects eth2 / serdes 1 to a 2.5Gbps capable ethernet switch port. Linux already configures a fixed-link at speed 2500 from device-tree. Upgrade serdes 1 rate to 3.125Gbps to support a 2.5Gbps network link on Clearfog GTR. Signed-off-by: Josua Mayer <josua@solid-run.com>
76 lines
2.5 KiB
Text
76 lines
2.5 KiB
Text
menu "ClearFog configuration"
|
|
depends on TARGET_CLEARFOG
|
|
|
|
config TARGET_CLEARFOG_BASE
|
|
bool "Use ClearFog Base static configuration"
|
|
help
|
|
Use the ClearFog Base as the static configuration instead of the
|
|
default which uses the ClearFog Pro.
|
|
|
|
Runtime board detection is always attempted and used if available. The
|
|
static configuration is used as a fallback in cases where runtime
|
|
detection is disabled, is not available in hardware, or otherwise fails.
|
|
|
|
Only newer revisions of the ClearFog product line support runtime
|
|
detection via additional EEPROM hardware. This option enables selecting
|
|
the Base variant for older hardware revisions.
|
|
|
|
config CLEARFOG_CON3_SATA
|
|
bool "Use CON3 slot in SATA mode"
|
|
help
|
|
Use the CON3 port with SATA protocol instead of the default PCIe.
|
|
The ClearFog port allows usage of either mSATA or miniPCIe
|
|
modules, but the desired protocol must be configured at build
|
|
time since it affects the SerDes topology layout.
|
|
|
|
config CLEARFOG_CON2_SATA
|
|
bool "Use CON2 slot in SATA mode"
|
|
depends on !TARGET_CLEARFOG_BASE
|
|
help
|
|
Use the CON2 port with SATA protocol instead of the default PCIe.
|
|
The ClearFog port allows usage of either mSATA or miniPCIe
|
|
modules, but the desired protocol must be configured at build
|
|
time since it affects the SerDes topology layout.
|
|
|
|
config CLEARFOG_SFP_25GB
|
|
bool "Enable 2.5 Gbps mode for SFP"
|
|
help
|
|
Set the SFP module connection to support 2.5 Gbps transfer speed for the
|
|
SGMII connection (requires a supporting SFP). By default, transfer speed
|
|
of 1.25 Gbps is used, suitable for a more common 1 Gbps SFP module.
|
|
|
|
choice CLEARFOG_GTR_SERDES0
|
|
prompt "Select Clearfog GTR SerDes 0 Function"
|
|
default CLEARFOG_GTR_SERDES0_PCIE
|
|
help
|
|
Select function for SerDes 0 which is shared between CON3 and CON18
|
|
for either pci-e or sata.
|
|
|
|
config CLEARFOG_GTR_SERDES0_PCIE
|
|
bool "PCI-E on CON3"
|
|
help
|
|
Configure SerDes 0 for PCI-E to enable CON3 mini-PCI-E connector.
|
|
|
|
config CLEARFOG_GTR_SERDES0_SATA
|
|
bool "SATA on CON18"
|
|
help
|
|
Configure SerDes 0 for SATA to enable CON18 SATA connector.
|
|
|
|
endchoice
|
|
|
|
config ENV_SIZE
|
|
hex "Environment Size"
|
|
default 0x10000
|
|
|
|
config ENV_OFFSET
|
|
hex "Environment offset"
|
|
default 0xF0000
|
|
|
|
config ENV_SECT_SIZE
|
|
hex "Environment Sector-Size"
|
|
# Use SPI flash erase block size of 4 KiB
|
|
default 0x1000 if MVEBU_SPL_BOOT_DEVICE_SPI || MVEBU_SPL_BOOT_DEVICE_SATA
|
|
# Use optimistic 64 KiB erase block, will vary between actual media
|
|
default 0x10000 if MVEBU_SPL_BOOT_DEVICE_MMC || MVEBU_SPL_BOOT_DEVICE_UART
|
|
|
|
endmenu
|