u-boot/drivers/qe/Kconfig
Madalin Bucur 3374264df9 drivers: net: qe: deselect QE when DM_ETH is enabled
A compilation error appears when QE is compiled with DM_ETH
enabled:

drivers/qe/uec.c: In function 'init_phy':
drivers/qe/uec.c:425:28: error: dereferencing pointer to incomplete type 'struct eth_device'
  uec = (uec_private_t *)dev->priv;
                            ^~
drivers/qe/uec.c: In function 'uec_initialize':
drivers/qe/uec.c:1357:43: error: invalid application of 'sizeof' to incomplete type 'struct eth_device'
  dev = (struct eth_device *)malloc(sizeof(struct eth_device));
                                           ^~~~~~

The patch disables CONFIG_QE when CONFIG_DM_ETH is set.

Signed-off-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
2020-06-03 12:14:27 +05:30

45 lines
1 KiB
Text

#
# QUICC Engine Drivers
#
config QE
bool "Enable support for QUICC Engine"
depends on PPC && !DM_ETH
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