[U-Boot] [PATCH] ARM: tegra: pack pinmux data tables tighter
Simon Glass
sjg at chromium.org
Tue Mar 25 03:33:34 CET 2014
Hi Stephen,
On 21 March 2014 14:58, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> Use smaller fields in the Tegra pinmux structures in order to pack the
> data tables into a smaller space. This saves around 1-3KB for the SPL
> and around 3-8KB for the main build of U-Boot, depending on the board,
> which SoC it uses, and how many pinmux table entries there are.
>
> In order to pack PMUX_FUNC_* into a smaller space, don't hard-code the
> values of PMUX_FUNC_RSVD* to values which require 16 bits to store them,
> but instead let their values be assigned automatically, so they end up
> fitting into 8 bits.
>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
Acked-by: Simon Glass <sjg at chromium.org>
Unfortunate that we lose the enum type checking but I guess it is worth it.
Regards,
Simon
More information about the U-Boot
mailing list