Skip to content

Commit

Permalink
Merge tag 'tegra-for-3.10-multiplatform' of git://git.kernel.org/pub/…
Browse files Browse the repository at this point in the history
…scm/linux/kernel/git/swarren/linux-tegra into next/multiplatform

From Stephen Warren <[email protected]>:

ARM: tegra: multi-platform conversion

This branch converts Tegra to support multi-platform/single-zImage.

One header is made accessible to drivers. The earlyprintk implementation
is moved to the multi-platform location. Some Kconfig changes are made
to enable multi-platform. Some dead files are deleted.

The APIs exposed in the now-global tegra-powergate.h should be replaced
with standard reset and power domain APIs in the future.

This branch is based on (part of) the previous soc pull request.

* tag 'tegra-for-3.10-multiplatform' of git://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra:
  ARM: tegra: convert to multi-platform
  ARM: tegra: move <mach/powergate.h> to <linux/tegra-powergate.h>

Signed-off-by: Arnd Bergmann <[email protected]>
  • Loading branch information
arndb committed Apr 9, 2013
2 parents 3afeb0a + 9002722 commit 494cc76
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 243 deletions.
19 changes: 0 additions & 19 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -600,25 +600,6 @@ config ARCH_LPC32XX
help
Support for the NXP LPC32XX family of processors

config ARCH_TEGRA
bool "NVIDIA Tegra"
select ARCH_HAS_CPUFREQ
select ARCH_REQUIRE_GPIOLIB
select CLKDEV_LOOKUP
select CLKSRC_MMIO
select CLKSRC_OF
select COMMON_CLK
select GENERIC_CLOCKEVENTS
select HAVE_CLK
select HAVE_SMP
select MIGHT_HAVE_CACHE_L2X0
select SOC_BUS
select SPARSE_IRQ
select USE_OF
help
This enables support for NVIDIA Tegra based systems (Tegra APX,
Tegra 6xx and Tegra 2 series).

config ARCH_PXA
bool "PXA2xx/PXA3xx-based"
depends on MMU
Expand Down
27 changes: 20 additions & 7 deletions arch/arm/mach-tegra/Kconfig
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
if ARCH_TEGRA
config ARCH_TEGRA
bool "NVIDIA Tegra" if ARCH_MULTI_V7
select ARCH_HAS_CPUFREQ
select ARCH_REQUIRE_GPIOLIB
select CLKDEV_LOOKUP
select CLKSRC_MMIO
select CLKSRC_OF
select COMMON_CLK
select GENERIC_CLOCKEVENTS
select HAVE_CLK
select HAVE_SMP
select MIGHT_HAVE_CACHE_L2X0
select SOC_BUS
select SPARSE_IRQ
select USE_OF
help
This enables support for NVIDIA Tegra based systems.

comment "NVIDIA Tegra options"
menu "NVIDIA Tegra options"
depends on ARCH_TEGRA

config ARCH_TEGRA_2x_SOC
bool "Enable support for Tegra20 family"
select ARCH_NEEDS_CPU_IDLE_COUPLED if SMP
select ARM_ERRATA_720789
select ARM_ERRATA_742230 if SMP
select ARM_ERRATA_751472
select ARM_ERRATA_754327 if SMP
select ARM_ERRATA_764369 if SMP
select ARM_GIC
Expand All @@ -26,8 +41,6 @@ config ARCH_TEGRA_2x_SOC

config ARCH_TEGRA_3x_SOC
bool "Enable support for Tegra30 family"
select ARM_ERRATA_743622
select ARM_ERRATA_751472
select ARM_ERRATA_754322
select ARM_ERRATA_764369 if SMP
select ARM_GIC
Expand Down Expand Up @@ -71,4 +84,4 @@ config TEGRA_AHB
config TEGRA_EMC_SCALING_ENABLE
bool "Enable scaling the memory frequency"

endif
endmenu
3 changes: 0 additions & 3 deletions arch/arm/mach-tegra/Makefile.boot

This file was deleted.

1 change: 1 addition & 0 deletions arch/arm/mach-tegra/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ int tegra_clk_debugfs_init(void);
static inline int tegra_clk_debugfs_init(void) { return 0; }
#endif

int __init tegra_powergate_init(void);
#if defined(CONFIG_ARCH_TEGRA_2x_SOC) && defined(CONFIG_DEBUG_FS)
int __init tegra_powergate_debugfs_init(void);
#else
Expand Down
2 changes: 0 additions & 2 deletions arch/arm/mach-tegra/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@

#include <asm/hardware/cache-l2x0.h>

#include <mach/powergate.h>

#include "board.h"
#include "common.h"
#include "fuse.h"
Expand Down
26 changes: 0 additions & 26 deletions arch/arm/mach-tegra/include/mach/timex.h

This file was deleted.

175 changes: 0 additions & 175 deletions arch/arm/mach-tegra/include/mach/uncompress.h

This file was deleted.

3 changes: 1 addition & 2 deletions arch/arm/mach-tegra/pcie.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@
#include <linux/delay.h>
#include <linux/export.h>
#include <linux/clk/tegra.h>
#include <linux/tegra-powergate.h>

#include <asm/sizes.h>
#include <asm/mach/pci.h>

#include <mach/powergate.h>

#include "board.h"
#include "iomap.h"

Expand Down
3 changes: 1 addition & 2 deletions arch/arm/mach-tegra/powergate.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
#include <linux/seq_file.h>
#include <linux/spinlock.h>
#include <linux/clk/tegra.h>

#include <mach/powergate.h>
#include <linux/tegra-powergate.h>

#include "fuse.h"
#include "iomap.h"
Expand Down
3 changes: 1 addition & 2 deletions drivers/clk/tegra/clk-tegra30.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/clk/tegra.h>

#include <mach/powergate.h>
#include <linux/tegra-powergate.h>

#include "clk.h"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/*
* drivers/regulator/tegra-regulator.c
*
* Copyright (c) 2010 Google, Inc
*
* Author:
Expand Down Expand Up @@ -40,9 +38,6 @@ struct clk;
#define TEGRA_POWERGATE_CPU0 TEGRA_POWERGATE_CPU
#define TEGRA_POWERGATE_3D0 TEGRA_POWERGATE_3D

int __init tegra_powergate_init(void);

int tegra_cpu_powergate_id(int cpuid);
int tegra_powergate_is_powered(int id);
int tegra_powergate_power_on(int id);
int tegra_powergate_power_off(int id);
Expand Down

0 comments on commit 494cc76

Please sign in to comment.