Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 326479
b: refs/heads/master
c: bb25af8
h: refs/heads/master
i:
  326477: 0771f1a
  326475: e9c4788
  326471: d5c8c6a
  326463: 34bdfee
v: v3
  • Loading branch information
Stephen Warren committed Sep 14, 2012
1 parent c58f7ef commit 495d773
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 400 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cff1dfbfcd62b2c98c6a79573e5a5c39b0bcd43c
refs/heads/master: bb25af8167d357e3ce3774e85e0b43dc2e931289
6 changes: 0 additions & 6 deletions trunk/arch/arm/mach-tegra/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@ config TEGRA_AHB

comment "Tegra board type"

config MACH_HARMONY
bool "Harmony board"
depends on ARCH_TEGRA_2x_SOC
help
Support for nVidia Harmony development platform

choice
prompt "Default low-level debug console UART"
default TEGRA_DEBUG_UART_NONE
Expand Down
6 changes: 2 additions & 4 deletions trunk/arch/arm/mach-tegra/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ obj-$(CONFIG_USB_SUPPORT) += usb_phy.o
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += board-dt-tegra20.o
obj-$(CONFIG_ARCH_TEGRA_3x_SOC) += board-dt-tegra30.o

obj-$(CONFIG_MACH_HARMONY) += board-harmony.o
obj-$(CONFIG_MACH_HARMONY) += board-harmony-pinmux.o
obj-$(CONFIG_MACH_HARMONY) += board-harmony-pcie.o
obj-$(CONFIG_MACH_HARMONY) += board-harmony-power.o
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += board-harmony-pcie.o
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += board-harmony-power.o

obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += board-paz00.o
6 changes: 2 additions & 4 deletions trunk/arch/arm/mach-tegra/board-dt-tegra20.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ static void __init trimslice_init(void)
#endif
}

#ifdef CONFIG_MACH_HARMONY
static void __init harmony_init(void)
{
int ret;
Expand All @@ -117,11 +116,12 @@ static void __init harmony_init(void)
return;
}

#ifdef CONFIG_TEGRA_PCI
ret = harmony_pcie_init();
if (ret)
pr_err("harmony_pcie_init() failed: %d\n", ret);
}
#endif
}

static void __init paz00_init(void)
{
Expand All @@ -133,9 +133,7 @@ static struct {
void (*init)(void);
} board_init_funcs[] = {
{ "compulab,trimslice", trimslice_init },
#ifdef CONFIG_MACH_HARMONY
{ "nvidia,harmony", harmony_init },
#endif
{ "compal,paz00", paz00_init },
};

Expand Down
156 changes: 0 additions & 156 deletions trunk/arch/arm/mach-tegra/board-harmony-pinmux.c

This file was deleted.

34 changes: 15 additions & 19 deletions trunk/arch/arm/mach-tegra/board-harmony-power.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,29 +128,25 @@ static struct i2c_board_info __initdata harmony_regulators[] = {

int __init harmony_regulator_init(void)
{
struct device_node *np;
struct i2c_adapter *adapter;

regulator_register_always_on(0, "vdd_5v0",
NULL, 0, 5000000);

if (machine_is_harmony()) {
i2c_register_board_info(3, harmony_regulators, 1);
} else { /* Harmony, booted using device tree */
struct device_node *np;
struct i2c_adapter *adapter;

np = of_find_node_by_path("/i2c@7000d000");
if (np == NULL) {
pr_err("Could not find device_node for DVC I2C\n");
return -ENODEV;
}

adapter = of_find_i2c_adapter_by_node(np);
if (!adapter) {
pr_err("Could not find i2c_adapter for DVC I2C\n");
return -ENODEV;
}

i2c_new_device(adapter, harmony_regulators);
np = of_find_node_by_path("/i2c@7000d000");
if (np == NULL) {
pr_err("Could not find device_node for DVC I2C\n");
return -ENODEV;
}

adapter = of_find_i2c_adapter_by_node(np);
if (!adapter) {
pr_err("Could not find i2c_adapter for DVC I2C\n");
return -ENODEV;
}

i2c_new_device(adapter, harmony_regulators);

return 0;
}
Loading

0 comments on commit 495d773

Please sign in to comment.