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>
This commit is contained in:
committed by
Prafulla Wadaskar
parent
0a16ea5933
commit
9d86f0c30b
@@ -76,7 +76,7 @@ int board_early_init_f(void)
|
||||
* Multi-Purpose Pins Functionality configuration
|
||||
* These strappings are taken from the original vendor uboot port.
|
||||
*/
|
||||
u32 kwmpp_config[] = {
|
||||
static const u32 kwmpp_config[] = {
|
||||
MPP0_SPI_SCn,
|
||||
MPP1_SPI_MOSI,
|
||||
MPP2_SPI_SCK,
|
||||
|
||||
Reference in New Issue
Block a user