summaryrefslogtreecommitdiff
path: root/arch/arm/mach-socfpga/qts-filter.sh
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2015-08-10 20:17:46 (GMT)
committerMarek Vasut <marex@denx.de>2015-08-23 09:56:20 (GMT)
commitcc9429a5562489cf8a4eb0d722c36e1bdfde4907 (patch)
tree3907710cba63052981d266478ecea447fa134c4f /arch/arm/mach-socfpga/qts-filter.sh
parentf6badb0d89ae1221c8aa83138632613f91a48715 (diff)
downloadu-boot-fsl-qoriq-cc9429a5562489cf8a4eb0d722c36e1bdfde4907.tar.xz
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>
Diffstat (limited to 'arch/arm/mach-socfpga/qts-filter.sh')
-rwxr-xr-xarch/arm/mach-socfpga/qts-filter.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-socfpga/qts-filter.sh b/arch/arm/mach-socfpga/qts-filter.sh
index 16d3a2a..c1640bc 100755
--- a/arch/arm/mach-socfpga/qts-filter.sh
+++ b/arch/arm/mach-socfpga/qts-filter.sh
@@ -66,7 +66,7 @@ process_pinmux_config() {
EOF
# Retrieve the pinmux config and zap the ad-hoc length encoding
- sed -n '/^unsigned/ !b; :next {/^unsigned/ s/\[.*\]/[]/;p;n;b next}' \
+ sed -n '/^unsigned/ !b; :next {/^unsigned/ {s/\[.*\]/[]/;s/unsigned long/const u8/};p;n;b next}' \
${in_dir}/generated/pinmux_config_${soc}.c
cat << EOF