diff options
author | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-11-26 11:27:36 +0000 |
---|---|---|
committer | Prafulla Wadaskar <prafulla@marvell.com> | 2013-01-09 04:12:10 +0530 |
commit | 9d86f0c30bd7e6a7f7a93bc7f12b69ef48a4de19 (patch) | |
tree | 2512a2db0eefaf0aa2279a05c2b7ca9e6ed25510 /board/LaCie | |
parent | 0a16ea593355d1a0fd415286089961f9c9ad1614 (diff) | |
download | u-boot-imx-9d86f0c30bd7e6a7f7a93bc7f12b69ef48a4de19.zip u-boot-imx-9d86f0c30bd7e6a7f7a93bc7f12b69ef48a4de19.tar.gz u-boot-imx-9d86f0c30bd7e6a7f7a93bc7f12b69ef48a4de19.tar.bz2 |
kirkwood: make MPP arrays static const
This saves stack and code memory for local copy, and
consumes initialized data memory. For 22 of the 29
kirkwood-based boards, this results in a global saving
of about 30 bytes. For 7 of them, it results in an
increase of 6 to 14 bytes.
Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
Diffstat (limited to 'board/LaCie')
-rw-r--r-- | board/LaCie/net2big_v2/net2big_v2.c | 2 | ||||
-rw-r--r-- | board/LaCie/netspace_v2/netspace_v2.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/board/LaCie/net2big_v2/net2big_v2.c b/board/LaCie/net2big_v2/net2big_v2.c index 0e06c29..e524f35 100644 --- a/board/LaCie/net2big_v2/net2big_v2.c +++ b/board/LaCie/net2big_v2/net2big_v2.c @@ -39,7 +39,7 @@ int board_early_init_f(void) NET2BIG_V2_OE_LOW, NET2BIG_V2_OE_HIGH); /* Multi-Purpose Pins Functionality configuration */ - u32 kwmpp_config[] = { + static const u32 kwmpp_config[] = { MPP0_SPI_SCn, MPP1_SPI_MOSI, MPP2_SPI_SCK, diff --git a/board/LaCie/netspace_v2/netspace_v2.c b/board/LaCie/netspace_v2/netspace_v2.c index 101a80a..0aa5345 100644 --- a/board/LaCie/netspace_v2/netspace_v2.c +++ b/board/LaCie/netspace_v2/netspace_v2.c @@ -39,7 +39,7 @@ int board_early_init_f(void) NETSPACE_V2_OE_LOW, NETSPACE_V2_OE_HIGH); /* Multi-Purpose Pins Functionality configuration */ - u32 kwmpp_config[] = { + static const u32 kwmpp_config[] = { MPP0_SPI_SCn, MPP1_SPI_MOSI, MPP2_SPI_SCK, |