Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

include: Add lantiq.h in include/linux/

In some existing lantiq driver, the C codes include lantiq_soc.h
header file directly.

./arch/mips/include/asm/mach-lantiq/falcon/lantiq_soc.h
./arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h

Those drivers need to be extended to support more platform.
lantiq.h is added in include/linux/ to make it
globally available and provides some wrapper codes.

Signed-off-by: Songjun Wu <songjun.wu@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Songjun Wu and committed by
Greg Kroah-Hartman
d491324f c17a1ca1

+23
+23
include/linux/lantiq.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + 3 + #ifndef __LINUX_LANTIQ_H 4 + #define __LINUX_LANTIQ_H 5 + 6 + #ifdef CONFIG_LANTIQ 7 + #include <lantiq_soc.h> 8 + #else 9 + 10 + #ifndef LTQ_EARLY_ASC 11 + #define LTQ_EARLY_ASC 0 12 + #endif 13 + 14 + #ifndef CPHYSADDR 15 + #define CPHYSADDR(a) 0 16 + #endif 17 + 18 + static inline struct clk *clk_get_fpi(void) 19 + { 20 + return NULL; 21 + } 22 + #endif /* CONFIG_LANTIQ */ 23 + #endif /* __LINUX_LANTIQ_H */