[U-Boot] [PATCH v3 03/13] pci: Refactor the pciinfo() function

Simon Glass sjg at chromium.org
Sat Nov 28 17:55:11 CET 2015


On 26 November 2015 at 18:51, Simon Glass <sjg at chromium.org> wrote:
> This function uses macros to output data. It seems better to use a table of
> registers rather than macro-based code generation. It also reduces the
> code/data size by 2KB on ARM.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> Tested-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
> Changes in v3: None
> Changes in v2:
> - Squash in the patch to fix pci_field_width() for 32-bit values
> - Rename '_byte' to class in pci_header_show()
>
>  common/cmd_pci.c | 237 ++++++++++++++++++++++++++++++++++---------------------
>  1 file changed, 148 insertions(+), 89 deletions(-)

Applied to u-boot-dm.


More information about the U-Boot mailing list