]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: socfpga: Make the pinmux table const u8
authorMarek Vasut <marex@denx.de>
Mon, 10 Aug 2015 20:17:46 +0000 (22:17 +0200)
committerMarek Vasut <marex@denx.de>
Sun, 23 Aug 2015 09:56:20 +0000 (11:56 +0200)
commitcc9429a5562489cf8a4eb0d722c36e1bdfde4907
tree3907710cba63052981d266478ecea447fa134c4f
parentf6badb0d89ae1221c8aa83138632613f91a48715
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