forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'for-next' of git://android.git.kernel.org/kernel/tegra
* 'for-next' of git://android.git.kernel.org/kernel/tegra: spi: tegra: fix error setting on timeout spi: add spi_tegra driver tegra: harmony: enable PCI Express tegra: add PCI Express support tegra: add PCI Express clocks [ARM] tegra: Add APB DMA support [ARM] tegra: Add cpufreq support [ARM] tegra: common: Update common clock init table [ARM] tegra: clock: Add dvfs support, bug fixes, and cleanups [ARM] tegra: Add support for reading fuses [ARM] tegra: gpio: Add suspend and wake support [ARM] tegra: pinmux: add safe values, move tegra2, add suspend [ARM] tegra: add suspend and mirror irqs to legacy controller [ARM] tegra: Add legacy irq support [ARM] tegra: update iomap
- Loading branch information
Showing
35 changed files
with
4,917 additions
and
629 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
obj-y += common.o | ||
obj-y += io.o | ||
obj-y += irq.o | ||
obj-y += irq.o legacy_irq.o | ||
obj-y += clock.o | ||
obj-y += timer.o | ||
obj-y += gpio.o | ||
obj-y += pinmux.o | ||
obj-y += fuse.o | ||
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += clock.o | ||
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra2_clocks.o | ||
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += tegra2_dvfs.o | ||
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += pinmux-t2-tables.o | ||
obj-$(CONFIG_SMP) += platsmp.o localtimer.o headsmp.o | ||
obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o | ||
obj-$(CONFIG_TEGRA_SYSTEM_DMA) += dma.o | ||
obj-$(CONFIG_CPU_FREQ) += cpu-tegra.o | ||
obj-$(CONFIG_TEGRA_PCI) += pcie.o | ||
|
||
obj-${CONFIG_MACH_HARMONY} += board-harmony.o | ||
obj-${CONFIG_MACH_HARMONY} += board-harmony-pinmux.o | ||
obj-${CONFIG_MACH_HARMONY} += board-harmony-pcie.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* arch/arm/mach-tegra/board-harmony-pcie.c | ||
* | ||
* Copyright (C) 2010 CompuLab, Ltd. | ||
* Mike Rapoport <[email protected]> | ||
* | ||
* This software is licensed under the terms of the GNU General Public | ||
* License version 2, as published by the Free Software Foundation, and | ||
* may be copied, distributed, and modified under those terms. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
*/ | ||
|
||
#include <linux/kernel.h> | ||
#include <linux/gpio.h> | ||
#include <linux/err.h> | ||
#include <linux/regulator/consumer.h> | ||
|
||
#include <asm/mach-types.h> | ||
|
||
#include <mach/pinmux.h> | ||
#include "board.h" | ||
|
||
#ifdef CONFIG_TEGRA_PCI | ||
|
||
static int __init harmony_pcie_init(void) | ||
{ | ||
int err; | ||
|
||
if (!machine_is_harmony()) | ||
return 0; | ||
|
||
tegra_pinmux_set_tristate(TEGRA_PINGROUP_GPV, TEGRA_TRI_NORMAL); | ||
tegra_pinmux_set_tristate(TEGRA_PINGROUP_SLXA, TEGRA_TRI_NORMAL); | ||
tegra_pinmux_set_tristate(TEGRA_PINGROUP_SLXK, TEGRA_TRI_NORMAL); | ||
|
||
err = tegra_pcie_init(true, true); | ||
if (err) | ||
goto err_pcie; | ||
|
||
return 0; | ||
|
||
err_pcie: | ||
tegra_pinmux_set_tristate(TEGRA_PINGROUP_GPV, TEGRA_TRI_TRISTATE); | ||
tegra_pinmux_set_tristate(TEGRA_PINGROUP_SLXA, TEGRA_TRI_TRISTATE); | ||
tegra_pinmux_set_tristate(TEGRA_PINGROUP_SLXK, TEGRA_TRI_TRISTATE); | ||
|
||
return err; | ||
} | ||
|
||
subsys_initcall(harmony_pcie_init); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.