commit 5de15b610f78 ("mtd: hyperbus: add Renesas RPC-IF driver") leads
to build failure[1] with COMPILE_TEST and RPCIF_HYPERBUS enabled. This
is because driver needs functions RENESAS_RPCIF which is only buildable
for CONFIG_ARCH_RENESAS.
Fix this by dropping COMPILE_TEST from RPCIF_HYPERBUS Kconfig entry.
This ensures driver can be built only when RENESAS_RPCIF is also
selected.
[1]:
rpc-if.c:(.text+0x20): undefined reference to `rpcif_disable_rpm' ld:
drivers/mtd/hyperbus/rpc-if.o: in function `rpcif_hb_prepare_read':
rpc-if.c:(.text+0xd6): undefined reference to `rpcif_prepare' ld:
drivers/mtd/hyperbus/rpc-if.o: in function `rpcif_hb_read16':
[...]
Fixes: 5de15b610f78 ("mtd: hyperbus: add Renesas RPC-IF driver") leads
Reported-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
33 lines
816 B
Plaintext
33 lines
816 B
Plaintext
menuconfig MTD_HYPERBUS
|
|
tristate "HyperBus support"
|
|
depends on HAS_IOMEM
|
|
select MTD_CFI
|
|
select MTD_MAP_BANK_WIDTH_2
|
|
select MTD_CFI_AMDSTD
|
|
select MTD_COMPLEX_MAPPINGS
|
|
help
|
|
This is the framework for the HyperBus which can be used by
|
|
the HyperBus Controller driver to communicate with
|
|
HyperFlash. See Cypress HyperBus specification for more
|
|
details
|
|
|
|
if MTD_HYPERBUS
|
|
|
|
config HBMC_AM654
|
|
tristate "HyperBus controller driver for AM65x SoC"
|
|
depends on ARM64 || COMPILE_TEST
|
|
select MULTIPLEXER
|
|
imply MUX_MMIO
|
|
help
|
|
This is the driver for HyperBus controller on TI's AM65x and
|
|
other SoCs
|
|
|
|
config RPCIF_HYPERBUS
|
|
tristate "Renesas RPC-IF HyperBus driver"
|
|
depends on RENESAS_RPCIF
|
|
depends on MTD_CFI_BE_BYTE_SWAP
|
|
help
|
|
This option includes Renesas RPC-IF HyperBus support.
|
|
|
|
endif # MTD_HYPERBUS
|