mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-19 08:28:51 +09:00
![Heiko Schocher](/assets/img/avatar_default.png)
add DM/DTS support for the UEC ethernet on QUICC Engine Block. Signed-off-by: Heiko Schocher <hs@denx.de> Patch-cc: Mario Six <mario.six@gdsys.cc> Patch-cc: Qiang Zhao <qiang.zhao@nxp.com> Patch-cc: Holger Brunck <holger.brunck@hitachi-powergrids.com> Patch-cc: Madalin Bucur <madalin.bucur@oss.nxp.com> Series-changes: 3 - revert: commit "3374264df97b" ("drivers: net: qe: deselect QE when DM_ETH is enabled") as now qe works with DM and DM_ETH support. - fix mailaddress from Holger Series-changes: 2 - add comments from Qiang Zhao: - add device node documentation - I did not drop the dm_qe_uec_phy.c and use drivers/net/fsl_mdio.c because using drivers/net/fsl_mdio.c leads in none existent udevice mdio@3320 instead boards with DM ETH support should use now this driver. - remove RFC tag Commit-notes: - I let the old none DM based implementation in code so boards should work with old implementation. This Code should be removed if all boards are converted to DM/DTS. - add the DM based qe uec driver under drivers/net/qe - Therefore copied the files uccf.c uccf.h uec.h from drivers/qe. So there are a lot of Codingstyle problems currently. I fix them in next version if this RFC patch is OK or it needs some changes. - The dm based driver code is now under drivers/net/qe/dm_qe_uec.c Used a lot of functions from drivers/qe/uec.c - seperated the PHY specific code into seperate file drivers/net/qe/dm_qe_uec_phy.c END
46 lines
1.0 KiB
Plaintext
46 lines
1.0 KiB
Plaintext
#
|
|
# QUICC Engine Drivers
|
|
#
|
|
config QE
|
|
bool "Enable support for QUICC Engine"
|
|
depends on PPC
|
|
default y if ARCH_T1040 || ARCH_T1042 || ARCH_T1024 || ARCH_P1021 \
|
|
|| ARCH_P1025
|
|
help
|
|
Chose this option to add support for the QUICC Engine.
|
|
|
|
config U_QE
|
|
bool "Enable support for U QUICC Engine"
|
|
default y if (ARCH_LS1021A && !SD_BOOT && !NAND_BOOT && !QSPI_BOOT) \
|
|
|| (TARGET_T1024QDS) \
|
|
|| (TARGET_T1024RDB) \
|
|
|| (TARGET_T1040QDS && !NOBQFMAN) \
|
|
|| (TARGET_LS1043ARDB && !SPL_NO_QE && !NAND_BOOT && !QSPI_BOOT)
|
|
help
|
|
Choose this option to add support for U QUICC Engine.
|
|
|
|
choice
|
|
prompt "QUICC Engine FMan ethernet firmware location"
|
|
depends on FMAN_ENET || QE
|
|
default SYS_QE_FMAN_FW_IN_ROM
|
|
|
|
config SYS_QE_FMAN_FW_IN_NOR
|
|
bool "NOR flash"
|
|
|
|
config SYS_QE_FMAN_FW_IN_NAND
|
|
bool "NAND flash"
|
|
|
|
config SYS_QE_FMAN_FW_IN_SPIFLASH
|
|
bool "SPI flash"
|
|
|
|
config SYS_QE_FMAN_FW_IN_MMC
|
|
bool "MMC"
|
|
|
|
config SYS_QE_FMAN_FW_IN_REMOTE
|
|
bool "Remote memory location (PCI)"
|
|
|
|
config SYS_QE_FMAN_FW_IN_ROM
|
|
bool "Firmware is already in ROM"
|
|
|
|
endchoice
|