[U-Boot] [PATCH 44/60] ARM: tegra: remove tegra_get_chip_sku()

Simon Glass
2016-05-07T22:31:58Z

On 19 April 2016 at 14:59, Stephen Warren <swarren@wwwdotorg.org> wrote:
> From: Stephen Warren <swarren@nvidia.com>
>
> This is now only used by some Tegra20-specific code, and only to select
> between T20/T25 code paths. Introduce a simpler function for that case,
> and isolate it to the tegra20/ directory.
>
> If we need SoC differentiation in the future, we should isolate the SKU-
> specific logic to the SoC-specific directories, and provide a higher level
> interface that the SoC-agnostic code can use; similar to pllx.h in the
> previous commit.
>
> Signed-off-by: Stephen Warren <swarren@nvidia.com>
> ---
> arch/arm/include/asm/arch-tegra/tegra.h | 38 ----------------------------
> arch/arm/mach-tegra/ap.c | 40 -----------------------------
> arch/arm/mach-tegra/cpu.h | 6 -----
> arch/arm/mach-tegra/tegra20/Makefile | 1 +
> arch/arm/mach-tegra/tegra20/emc.c | 15 ++++-------
> arch/arm/mach-tegra/{ => tegra20}/fuse.h | 4 +--
> arch/arm/mach-tegra/tegra20/pllx.c | 7 ++----
> arch/arm/mach-tegra/tegra20/pmu.c | 16 ++++--------
> arch/arm/mach-tegra/tegra20/sku.c | 43 ++++++++++++++++++++++++++++++++
> arch/arm/mach-tegra/tegra20/sku.h | 12 +++++++++
> arch/arm/mach-tegra/tegra20/warmboot.c | 2 +-
> 11 files changed, 71 insertions(+), 113 deletions(-)
> rename arch/arm/mach-tegra/{ => tegra20}/fuse.h (91%)
> create mode 100644 arch/arm/mach-tegra/tegra20/sku.c
> create mode 100644 arch/arm/mach-tegra/tegra20/sku.h

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