mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-11 13:56:30 +00:00
cc9429a556
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>
17 lines
354 B
C
17 lines
354 B
C
/*
|
|
* Copyright (C) 2015 Marek Vasut <marex@denx.de>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <errno.h>
|
|
|
|
/* Board-specific header. */
|
|
#include <qts/pinmux_config.h>
|
|
|
|
void sysmgr_get_pinmux_table(const u8 **table, unsigned int *table_len)
|
|
{
|
|
*table = sys_mgr_init_table;
|
|
*table_len = ARRAY_SIZE(sys_mgr_init_table);
|
|
}
|