Skip to content

Commit

Permalink
ARM: tegra30: Add Tegra Memory Controller(MC) driver
Browse files Browse the repository at this point in the history
Tegra Memory Controller(MC) driver for Tegra30
Added to support MC General interrupts, mainly for IOMMU(SMMU).

Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Hiroshi DOYU authored and Greg Kroah-Hartman committed May 10, 2012
1 parent c542fb7 commit af46810
Show file tree
Hide file tree
Showing 5 changed files with 416 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Documentation/devicetree/bindings/arm/tegra/nvidia,tegra30-mc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
NVIDIA Tegra30 MC(Memory Controller)

Required properties:
- compatible : "nvidia,tegra30-mc"
- reg : Should contain 4 register ranges(address and length); see the
example below. Note that the MC registers are interleaved with the
SMMU registers, and hence must be represented as multiple ranges.
- interrupts : Should contain MC General interrupt.

Example:
mc {
compatible = "nvidia,tegra30-mc";
reg = <0x7000f000 0x010
0x7000f03c 0x1b4
0x7000f200 0x028
0x7000f284 0x17c>;
interrupts = <0 77 0x04>;
};
2 changes: 2 additions & 0 deletions arch/arm/mach-tegra/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ config ARCH_TEGRA_3x_SOC
select ARM_ERRATA_764369
select PL310_ERRATA_769419 if CACHE_L2X0
select CPU_FREQ_TABLE if CPU_FREQ
select MEMORY
select TEGRA30_MC
help
Support for NVIDIA Tegra T30 processor family, based on the
ARM CortexA9MP CPU and the ARM PL310 L2 cache controller
Expand Down
4 changes: 4 additions & 0 deletions drivers/memory/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ config TEGRA20_MC
bool
depends on ARCH_TEGRA_2x_SOC

config TEGRA30_MC
bool
depends on ARCH_TEGRA_3x_SOC

endif
1 change: 1 addition & 0 deletions drivers/memory/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

obj-$(CONFIG_TI_EMIF) += emif.o
obj-$(CONFIG_TEGRA20_MC) += tegra20-mc.o
obj-$(CONFIG_TEGRA30_MC) += tegra30-mc.o
Loading

0 comments on commit af46810

Please sign in to comment.