[U-Boot] [PATCH 01/60] ARM: tegra: remove unused definitions in headers

Simon Glass sjg at chromium.org
Wed Apr 20 21:25:42 CEST 2016


On 19 April 2016 at 14:58, Stephen Warren <swarren at wwwdotorg.org> wrote:
> From: Stephen Warren <swarren at nvidia.com>
>
> arch/arm/include/asm/arch-tegra*/*.h have accumulated a fair number of
> unused definitions. This patch aims to delete them all.
>
> While working on this, I noticed a few redundancies and fixed them. No
> doubt other redundancies still exist simply because I wasn't looking hard
> for them.
>
> A few definitions were moved between files to allow deletion of headers.
>
> Later changes will attempt to:
> - Reduce the number of headers in the include directory.
> - Move headers into arch/arm/mach-tegra/*, or into the same directory as
>   the drivers they serve.
> - Eliminate remaining duplication.
> - Refactor the headers to allow addition of future SoC support, where
>   those SoCs don't share many of the definitions currently located in
>   common headers.
>
> Signed-off-by: Stephen Warren <swarren at nvidia.com>
> ---
>  arch/arm/include/asm/arch-tegra/ap.h         | 69 ---------------------
>  arch/arm/include/asm/arch-tegra/clk_rst.h    | 81 +++----------------------
>  arch/arm/include/asm/arch-tegra/clock.h      |  2 +-
>  arch/arm/include/asm/arch-tegra/gp_padctrl.h |  6 +-
>  arch/arm/include/asm/arch-tegra/gpio.h       |  4 +-
>  arch/arm/include/asm/arch-tegra/pmc.h        | 19 +-----
>  arch/arm/include/asm/arch-tegra/pwm.h        |  3 +-
>  arch/arm/include/asm/arch-tegra/sys_proto.h  |  4 +-
>  arch/arm/include/asm/arch-tegra/tegra.h      | 26 ++------
>  arch/arm/include/asm/arch-tegra/tegra_i2c.h  | 11 +---
>  arch/arm/include/asm/arch-tegra/tegra_mmc.h  |  4 +-
>  arch/arm/include/asm/arch-tegra/timer.h      | 15 -----
>  arch/arm/include/asm/arch-tegra/uart.h       | 31 ----------
>  arch/arm/include/asm/arch-tegra/usb.h        |  5 +-
>  arch/arm/include/asm/arch-tegra/warmboot.h   |  3 +-
>  arch/arm/include/asm/arch-tegra124/ahb.h     | 91 ----------------------------
>  arch/arm/include/asm/arch-tegra124/display.h | 58 ------------------
>  arch/arm/include/asm/arch-tegra124/flow.h    |  8 +--
>  arch/arm/include/asm/arch-tegra124/mc.h      |  3 +-
>  arch/arm/include/asm/arch-tegra124/tegra.h   |  5 +-
>  arch/arm/include/asm/arch-tegra20/tegra.h    |  4 +-
>  arch/arm/include/asm/arch-tegra210/ahb.h     | 13 +---
>  arch/arm/include/asm/arch-tegra210/clock.h   |  3 +-
>  arch/arm/include/asm/arch-tegra210/flow.h    | 16 +----
>  arch/arm/include/asm/arch-tegra210/mc.h      |  5 +-
>  arch/arm/include/asm/arch-tegra210/tegra.h   |  5 +-
>  arch/arm/include/asm/arch-tegra30/tegra.h    |  4 +-
>  arch/arm/mach-tegra/ap.c                     | 10 +--
>  arch/arm/mach-tegra/board.c                  | 11 ++--
>  arch/arm/mach-tegra/board2.c                 |  6 +-
>  arch/arm/mach-tegra/cache.c                  |  4 +-
>  arch/arm/mach-tegra/clock.c                  |  4 +-
>  arch/arm/mach-tegra/cpu.h                    | 34 +++++++----
>  arch/arm/mach-tegra/emc.c                    |  5 +-
>  arch/arm/mach-tegra/tegra114/clock.c         |  3 +-
>  arch/arm/mach-tegra/tegra124/clock.c         |  3 +-
>  arch/arm/mach-tegra/tegra124/cpu.c           |  4 +-
>  arch/arm/mach-tegra/tegra124/psci.c          |  3 +-
>  arch/arm/mach-tegra/tegra20/clock.c          |  3 +-
>  arch/arm/mach-tegra/tegra20/display.c        |  5 +-
>  arch/arm/mach-tegra/tegra20/emc.c            |  2 +-
>  arch/arm/mach-tegra/tegra20/pmu.c            |  4 +-
>  arch/arm/mach-tegra/tegra20/warmboot.c       |  4 +-
>  arch/arm/mach-tegra/tegra20/warmboot_avp.c   |  6 +-
>  arch/arm/mach-tegra/tegra20/warmboot_avp.h   |  6 +-
>  arch/arm/mach-tegra/tegra210/clock.c         |  3 +-
>  arch/arm/mach-tegra/tegra30/clock.c          |  3 +-
>  board/avionic-design/common/tamonten.c       |  9 ++-
>  board/toradex/apalis_t30/apalis_t30.c        |  6 +-
>  board/toradex/colibri_t20/colibri_t20.c      |  4 +-
>  board/toradex/colibri_t30/colibri_t30.c      |  6 +-
>  drivers/i2c/tegra_i2c.c                      |  6 +-
>  drivers/input/tegra-kbc.c                    |  5 +-
>  drivers/video/tegra.c                        |  3 +-
>  include/configs/tegra-common.h               | 10 ++-
>  55 files changed, 117 insertions(+), 553 deletions(-)
>  delete mode 100644 arch/arm/include/asm/arch-tegra/ap.h
>  delete mode 100644 arch/arm/include/asm/arch-tegra/timer.h
>  delete mode 100644 arch/arm/include/asm/arch-tegra/uart.h
>  delete mode 100644 arch/arm/include/asm/arch-tegra124/ahb.h
>  delete mode 100644 arch/arm/include/asm/arch-tegra124/display.h

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


More information about the U-Boot mailing list