Skip to content

Commit

Permalink
ARM: tegra: remove dead code
Browse files Browse the repository at this point in the history
Now that all boards are converted to device tree, devices.[ch] and
board-pinmux.[ch] are no longer used. So, remove them.

The only exception is the EHCI platform data in devices.h. Move that
data to board-dt-tegra20.c - the only places it's used.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
  • Loading branch information
Stephen Warren committed Sep 14, 2012
1 parent fef40b2 commit bab53ce
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 906 deletions.
2 changes: 0 additions & 2 deletions arch/arm/mach-tegra/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
obj-y += board-pinmux.o
obj-y += common.o
obj-y += devices.o
obj-y += io.o
obj-y += irq.o
obj-y += clock.o
Expand Down
27 changes: 26 additions & 1 deletion arch/arm/mach-tegra/board-dt-tegra20.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <linux/pda_power.h>
#include <linux/platform_data/tegra_usb.h>
#include <linux/io.h>
#include <linux/i2c.h>
#include <linux/i2c-tegra.h>
#include <linux/usb/tegra_usb_phy.h>

#include <asm/hardware/gic.h>
#include <asm/mach-types.h>
Expand All @@ -43,7 +45,30 @@

#include "board.h"
#include "clock.h"
#include "devices.h"

struct tegra_ehci_platform_data tegra_ehci1_pdata = {
.operating_mode = TEGRA_USB_OTG,
.power_down_on_bus_suspend = 1,
.vbus_gpio = -1,
};

struct tegra_ulpi_config tegra_ehci2_ulpi_phy_config = {
.reset_gpio = -1,
.clk = "cdev2",
};

struct tegra_ehci_platform_data tegra_ehci2_pdata = {
.phy_config = &tegra_ehci2_ulpi_phy_config,
.operating_mode = TEGRA_USB_HOST,
.power_down_on_bus_suspend = 1,
.vbus_gpio = -1,
};

struct tegra_ehci_platform_data tegra_ehci3_pdata = {
.operating_mode = TEGRA_USB_HOST,
.power_down_on_bus_suspend = 1,
.vbus_gpio = -1,
};

struct of_dev_auxdata tegra20_auxdata_lookup[] __initdata = {
OF_DEV_AUXDATA("nvidia,tegra20-sdhci", TEGRA_SDMMC1_BASE, "sdhci-tegra.0", NULL),
Expand Down
87 changes: 0 additions & 87 deletions arch/arm/mach-tegra/board-pinmux.c

This file was deleted.

54 changes: 0 additions & 54 deletions arch/arm/mach-tegra/board-pinmux.h

This file was deleted.

Loading

0 comments on commit bab53ce

Please sign in to comment.