[U-Boot] [PATCH 24/60] ARM: tegra: unify+move {board, sys_proto}.h to <mach/>

Simon Glass sjg at chromium.org
Fri Apr 22 20:31:47 CEST 2016


On 19 April 2016 at 14:59, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> Machine-specific headers should be in this location. Eventually, we'll
> move all headers from arch/arm/include to arch/arm/mach-tegra/include,
> or find a way to delete them.
>
> Both board and sys_proto.h served the same purpose; a place to prototype
> functions implemented by the board and called by code in mach-tegra/.
> Merge them into a single file to reduce the number of headers.
>
> board_init_uart_f() is private to code in mach-tegra/ so remove its
> prototype from the public <mach/> header. cpu.h isn't a great place for
> it, but other functions implemented in the same C file are prototyped
> there, so it'll do for now. When the C files are all refactored for
> Tegra186, this should be cleaned up.
>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> ---
>  arch/arm/include/asm/arch-tegra/sys_proto.h        | 33 ----------------------
>  arch/arm/mach-tegra/board.c                        |  3 +-
>  arch/arm/mach-tegra/board2.c                       |  4 +--
>  arch/arm/mach-tegra/cpu.h                          |  2 ++
>  arch/arm/mach-tegra/emc.c                          |  1 -
>  .../arch-tegra => mach-tegra/include/mach}/board.h | 33 +++++++++++++++++-----
>  arch/arm/mach-tegra/spl.c                          |  2 +-
>  arch/arm/mach-tegra/tegra20/pmu.c                  |  1 -
>  board/avionic-design/common/tamonten.c             |  3 +-
>  board/nvidia/seaboard/seaboard.c                   |  2 +-
>  board/toradex/colibri_t20/colibri_t20.c            |  2 +-
>  11 files changed, 35 insertions(+), 51 deletions(-)
>  delete mode 100644 arch/arm/include/asm/arch-tegra/sys_proto.h
>  rename arch/arm/{include/asm/arch-tegra => mach-tegra/include/mach}/board.h (63%)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list