summaryrefslogtreecommitdiffstats
path: root/board/altera/arria5-socdk
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2015-08-10 22:17:46 +0200
committerMarek Vasut <marex@denx.de>2015-08-23 11:56:20 +0200
commitcc9429a5562489cf8a4eb0d722c36e1bdfde4907 (patch)
tree3907710cba63052981d266478ecea447fa134c4f /board/altera/arria5-socdk
parentf6badb0d89ae1221c8aa83138632613f91a48715 (diff)
downloadu-boot-cc9429a5562489cf8a4eb0d722c36e1bdfde4907.tar.gz
u-boot-cc9429a5562489cf8a4eb0d722c36e1bdfde4907.tar.xz
u-boot-cc9429a5562489cf8a4eb0d722c36e1bdfde4907.zip
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 'board/altera/arria5-socdk')
-rw-r--r--board/altera/arria5-socdk/qts/pinmux_config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/altera/arria5-socdk/qts/pinmux_config.h b/board/altera/arria5-socdk/qts/pinmux_config.h
index 5a714a3783..069d492d52 100644
--- a/board/altera/arria5-socdk/qts/pinmux_config.h
+++ b/board/altera/arria5-socdk/qts/pinmux_config.h
@@ -7,7 +7,7 @@
#ifndef __SOCFPGA_PINMUX_CONFIG_H__
#define __SOCFPGA_PINMUX_CONFIG_H__
-unsigned long sys_mgr_init_table[] = {
+const u8 sys_mgr_init_table[] = {
0, /* EMACIO0 */
2, /* EMACIO1 */
2, /* EMACIO2 */