From cc9429a5562489cf8a4eb0d722c36e1bdfde4907 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Mon, 10 Aug 2015 22:17:46 +0200 Subject: 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 --- board/altera/arria5-socdk/qts/pinmux_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'board/altera/arria5-socdk') diff --git a/board/altera/arria5-socdk/qts/pinmux_config.h b/board/altera/arria5-socdk/qts/pinmux_config.h index 5a714a3..069d492 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 */ -- cgit v1.1