From f6badb0d89ae1221c8aa83138632613f91a48715 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Mon, 10 Aug 2015 21:21:07 +0200 Subject: arm: socfpga: Switch to filtered QTS files Signed-off-by: Marek Vasut --- arch/arm/mach-socfpga/wrap_pinmux_config.c | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) (limited to 'arch/arm/mach-socfpga/wrap_pinmux_config.c') diff --git a/arch/arm/mach-socfpga/wrap_pinmux_config.c b/arch/arm/mach-socfpga/wrap_pinmux_config.c index 688f1e4aca..bcb7781443 100644 --- a/arch/arm/mach-socfpga/wrap_pinmux_config.c +++ b/arch/arm/mach-socfpga/wrap_pinmux_config.c @@ -6,26 +6,9 @@ #include #include -/* - * Yes, dear reader, we're including a C file here, this is no mistake. - * But this time around, we do even more perverse hacking here to be - * compatible with QTS headers and obtain reasonably nice results too. - * - * First, we define _PRELOADER_PINMUX_CONFIG_H_, which will neutralise - * the pinmux_config.h inclusion in pinmux_config.c . Since we are - * probing everything from DT, we do NOT want those macros from the - * pinmux_config.h to ooze into our build system, anywhere, ever. So - * we nip it at the bud. - * - * Next, pinmux_config.c needs CONFIG_HPS_PINMUX_NUM and uses it to - * specify sized array explicitly. Instead, we want to use ARRAY_SIZE - * to figure out the size of the array, so define this macro as an - * empty one, so that the preprocessor optimizes things such that the - * arrays are not sized by default. - */ -#define _PRELOADER_PINMUX_CONFIG_H_ -#define CONFIG_HPS_PINMUX_NUM -#include + +/* Board-specific header. */ +#include void sysmgr_get_pinmux_table(const unsigned long **table, unsigned int *table_len) -- cgit v1.2.1