arm: socfpga: Make the pinmux table const u8
authorMarek Vasut <marex@denx.de>
Mon, 10 Aug 2015 20:17:46 +0000 (22:17 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:32:52 +0000 (10:32 +0200)
commit203fe589aeb73159714d5b635a47ee9d8489dbd3
tree53987d80d813cde222d6e7d852196e56e9d635fc
parent9f8d4e1e91509b1e5b50a92a5ae1ea507a960acd
arm: socfpga: Make the pinmux table const u8

Now that we're actually converting the QTS-generated header files,
we can even adjust their data types. A good candidate for this is
the pinmux table, where each entry can have value in the range of
0..3, but each element is declared as unsigned long. By changing
the type to u8, we can save over 600 Bytes from the SPL, so do it.
This patch also constifies the array.

Signed-off-by: Marek Vasut <marex@denx.de>
arch/arm/mach-socfpga/include/mach/system_manager.h
arch/arm/mach-socfpga/qts-filter.sh
arch/arm/mach-socfpga/system_manager.c
arch/arm/mach-socfpga/wrap_pinmux_config.c
board/altera/arria5-socdk/qts/pinmux_config.h
board/altera/cyclone5-socdk/qts/pinmux_config.h