I'm porting a device driver from a T4240 platform to an LS2160 platform. I'm compiling it using the(Yocto 3.1.1 - Dunfell) fsl-toolchain environment set by: /opt/fsl-qoriq/aarch64/3.1.1/environment-setup-aarch64-fsl-linux
The first issue I came across is that the source code includes <asm/pci-bridge.h> header file and such file is located in /build_lx2160ardb/tmp/work-shared/lx2160ardb/kernel-source/arch/powerpc/include/asm/pci-bridge.h
Are header files under /arch/powerpc directory still valid for LS2160 platforms? If not, which header file would provide definitions such as: pci_bus_to_host()?
The .ko module built with the header above produces errors when I load it.
Any advice?
Thanks.