summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorYong Goo Yi <yyi@nvidia.com>2013-06-27 14:17:12 +0900
committerGabby Lee <galee@nvidia.com>2013-06-30 19:21:37 -0700
commit4481e2d5b9f1a6c737083a2b031e71d70b9d704d (patch)
tree7da758c1a4b8c9007846879a959aeba8f2b491fa /arch
parentcbf4e3bf343bed9c84733cb9691b43c414035c69 (diff)
arm: tegra: tegratab: Remove duplicated definition
Definitions for pinmux are already defined in pinmux-t11.h Change-Id: I89722a61b01735500641f8c49b2f7497758a3a6a Signed-off-by: Yong Goo Yi <yyi@nvidia.com> Reviewed-on: http://git-master/r/242796 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Gabby Lee <galee@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/board-tegratab-pinmux.c167
1 files changed, 0 insertions, 167 deletions
diff --git a/arch/arm/mach-tegra/board-tegratab-pinmux.c b/arch/arm/mach-tegra/board-tegratab-pinmux.c
index d2353f560526..d75270771d3c 100644
--- a/arch/arm/mach-tegra/board-tegratab-pinmux.c
+++ b/arch/arm/mach-tegra/board-tegratab-pinmux.c
@@ -27,173 +27,6 @@
#include <mach/pinmux-t11.h>
-#define DEFAULT_DRIVE(_name) \
- { \
- .pingroup = TEGRA_DRIVE_PINGROUP_##_name, \
- .hsm = TEGRA_HSM_DISABLE, \
- .schmitt = TEGRA_SCHMITT_ENABLE, \
- .drive = TEGRA_DRIVE_DIV_1, \
- .pull_down = TEGRA_PULL_31, \
- .pull_up = TEGRA_PULL_31, \
- .slew_rising = TEGRA_SLEW_SLOWEST, \
- .slew_falling = TEGRA_SLEW_SLOWEST, \
- }
-/* Setting the drive strength of pins
- * hsm: Enable High speed mode (ENABLE/DISABLE)
- * Schimit: Enable/disable schimit (ENABLE/DISABLE)
- * drive: low power mode (DIV_1, DIV_2, DIV_4, DIV_8)
- * pulldn_drive - drive down (falling edge) - Driver Output Pull-Down drive
- * strength code. Value from 0 to 31.
- * pullup_drive - drive up (rising edge) - Driver Output Pull-Up drive
- * strength code. Value from 0 to 31.
- * pulldn_slew - Driver Output Pull-Up slew control code - 2bit code
- * code 11 is least slewing of signal. code 00 is highest
- * slewing of the signal.
- * Value - FASTEST, FAST, SLOW, SLOWEST
- * pullup_slew - Driver Output Pull-Down slew control code -
- * code 11 is least slewing of signal. code 00 is highest
- * slewing of the signal.
- * Value - FASTEST, FAST, SLOW, SLOWEST
- */
-#define SET_DRIVE(_name, _hsm, _schmitt, _drive, _pulldn_drive, \
- _pullup_drive, _pulldn_slew, _pullup_slew) \
- { \
- .pingroup = TEGRA_DRIVE_PINGROUP_##_name, \
- .hsm = TEGRA_HSM_##_hsm, \
- .schmitt = TEGRA_SCHMITT_##_schmitt, \
- .drive = TEGRA_DRIVE_##_drive, \
- .pull_down = TEGRA_PULL_##_pulldn_drive, \
- .pull_up = TEGRA_PULL_##_pullup_drive, \
- .slew_rising = TEGRA_SLEW_##_pulldn_slew, \
- .slew_falling = TEGRA_SLEW_##_pullup_slew, \
- }
-
-/* Setting the drive strength of pins
- * hsm: Enable High speed mode (ENABLE/DISABLE)
- * Schimit: Enable/disable schimit (ENABLE/DISABLE)
- * drive: low power mode (DIV_1, DIV_2, DIV_4, DIV_8)
- * pulldn_drive - drive down (falling edge) - Driver Output Pull-Down drive
- * strength code. Value from 0 to 31.
- * pullup_drive - drive up (rising edge) - Driver Output Pull-Up drive
- * strength code. Value from 0 to 31.
- * pulldn_slew - Driver Output Pull-Up slew control code - 2bit code
- * code 11 is least slewing of signal. code 00 is highest
- * slewing of the signal.
- * Value - FASTEST, FAST, SLOW, SLOWEST
- * pullup_slew - Driver Output Pull-Down slew control code -
- * code 11 is least slewing of signal. code 00 is highest
- * slewing of the signal.
- * Value - FASTEST, FAST, SLOW, SLOWEST
- * drive_type - Drive type to be used depending on the resistors.
- */
-
-#define SET_DRIVE_WITH_TYPE(_name, _hsm, _schmitt, _drive, _pulldn_drive,\
- _pullup_drive, _pulldn_slew, _pullup_slew, _drive_type) \
- { \
- .pingroup = TEGRA_DRIVE_PINGROUP_##_name, \
- .hsm = TEGRA_HSM_##_hsm, \
- .schmitt = TEGRA_SCHMITT_##_schmitt, \
- .drive = TEGRA_DRIVE_##_drive, \
- .pull_down = TEGRA_PULL_##_pulldn_drive, \
- .pull_up = TEGRA_PULL_##_pullup_drive, \
- .slew_rising = TEGRA_SLEW_##_pulldn_slew, \
- .slew_falling = TEGRA_SLEW_##_pullup_slew, \
- .drive_type = TEGRA_DRIVE_TYPE_##_drive_type, \
- }
-
-#define DEFAULT_PINMUX(_pingroup, _mux, _pupd, _tri, _io) \
- { \
- .pingroup = TEGRA_PINGROUP_##_pingroup, \
- .func = TEGRA_MUX_##_mux, \
- .pupd = TEGRA_PUPD_##_pupd, \
- .tristate = TEGRA_TRI_##_tri, \
- .io = TEGRA_PIN_##_io, \
- .lock = TEGRA_PIN_LOCK_DEFAULT, \
- .od = TEGRA_PIN_OD_DEFAULT, \
- .ioreset = TEGRA_PIN_IO_RESET_DEFAULT, \
- }
-
-#define I2C_PINMUX(_pingroup, _mux, _pupd, _tri, _io, _lock, _od) \
- { \
- .pingroup = TEGRA_PINGROUP_##_pingroup, \
- .func = TEGRA_MUX_##_mux, \
- .pupd = TEGRA_PUPD_##_pupd, \
- .tristate = TEGRA_TRI_##_tri, \
- .io = TEGRA_PIN_##_io, \
- .lock = TEGRA_PIN_LOCK_##_lock, \
- .od = TEGRA_PIN_OD_##_od, \
- .ioreset = TEGRA_PIN_IO_RESET_DEFAULT, \
- }
-
-#define DDC_PINMUX(_pingroup, _mux, _pupd, _tri, _io, _lock, _rcv_sel) \
- { \
- .pingroup = TEGRA_PINGROUP_##_pingroup, \
- .func = TEGRA_MUX_##_mux, \
- .pupd = TEGRA_PUPD_##_pupd, \
- .tristate = TEGRA_TRI_##_tri, \
- .io = TEGRA_PIN_##_io, \
- .lock = TEGRA_PIN_LOCK_##_lock, \
- .rcv_sel = TEGRA_PIN_RCV_SEL_##_rcv_sel, \
- .ioreset = TEGRA_PIN_IO_RESET_DEFAULT, \
- }
-
-#define VI_PINMUX(_pingroup, _mux, _pupd, _tri, _io, _lock, _ioreset) \
- { \
- .pingroup = TEGRA_PINGROUP_##_pingroup, \
- .func = TEGRA_MUX_##_mux, \
- .pupd = TEGRA_PUPD_##_pupd, \
- .tristate = TEGRA_TRI_##_tri, \
- .io = TEGRA_PIN_##_io, \
- .lock = TEGRA_PIN_LOCK_##_lock, \
- .od = TEGRA_PIN_OD_DEFAULT, \
- .ioreset = TEGRA_PIN_IO_RESET_##_ioreset \
- }
-
-#define CEC_PINMUX(_pingroup, _mux, _pupd, _tri, _io, _lock, _od) \
- { \
- .pingroup = TEGRA_PINGROUP_##_pingroup, \
- .func = TEGRA_MUX_##_mux, \
- .pupd = TEGRA_PUPD_##_pupd, \
- .tristate = TEGRA_TRI_##_tri, \
- .io = TEGRA_PIN_##_io, \
- .lock = TEGRA_PIN_LOCK_##_lock, \
- .od = TEGRA_PIN_OD_##_od, \
- .ioreset = TEGRA_PIN_IO_RESET_DEFAULT, \
- }
-
-#define GPIO_PINMUX(_pingroup, _pupd, _tri, _io, _od) \
- { \
- .pingroup = TEGRA_PINGROUP_##_pingroup, \
- .func = TEGRA_MUX_SAFE, \
- .pupd = TEGRA_PUPD_##_pupd, \
- .tristate = TEGRA_TRI_##_tri, \
- .io = TEGRA_PIN_##_io, \
- .lock = TEGRA_PIN_LOCK_DEFAULT, \
- .od = TEGRA_PIN_OD_##_od, \
- .ioreset = TEGRA_PIN_IO_RESET_DEFAULT, \
- }
-
-#define UNUSED_PINMUX(_pingroup) \
- { \
- .pingroup = TEGRA_PINGROUP_##_pingroup, \
- .func = TEGRA_MUX_SAFE, \
- .pupd = TEGRA_PUPD_PULL_DOWN, \
- .tristate = TEGRA_TRI_TRISTATE, \
- .io = TEGRA_PIN_OUTPUT, \
- .lock = TEGRA_PIN_LOCK_DEFAULT, \
- .od = TEGRA_PIN_OD_DEFAULT, \
- .ioreset = TEGRA_PIN_IO_RESET_DEFAULT, \
- }
-
-#define USB_PINMUX CEC_PINMUX
-
-#define GPIO_INIT_PIN_MODE(_gpio, _is_input, _value) \
- { \
- .gpio_nr = _gpio, \
- .is_input = _is_input, \
- .value = _value, \
- }
-
static __initdata struct tegra_drive_pingroup_config tegratab_drive_pinmux[] = {
/* DEFAULT_DRIVE(<pin_group>), */
/* SDMMC1 */