summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-apalis-tk1.h
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-10-03 02:05:17 +0200
committerDominik Sliwa <dominik.sliwa@toradex.com>2017-10-03 16:35:28 +0200
commit9382b7e30394dd909ef0cbb610ccf06ef1863640 (patch)
tree96c1f5b0c28cecf3f0ad74e5167dbc3f66f45964 /arch/arm/mach-tegra/board-apalis-tk1.h
parent54e125a0dee6cef8f4127662d0f48be8d3b18b87 (diff)
ARM: tegra: apalis-tk1: support v1.2 hardware revision
Support the V1.2 hardware revision with the following pin muxing changes: Ddc_scl_pv4 and ddc_sda_pv5 previously used as Apalis GPIO3 and GPIO4 are now used as DDC pins. Gen2_i2c_scl_pt5 and gen2_i2c_sda_pt6 previously used as DDC pins are now used as USB power enable signals. Usb_vbus_en0_pn4 and usb_vbus_en1_pn5 previously used as USB power enable signals are now used as GPIO3 and GPIO4. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Dominik Sliwa <dominik.sliwa@toradex.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-apalis-tk1.h')
-rw-r--r--arch/arm/mach-tegra/board-apalis-tk1.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/board-apalis-tk1.h b/arch/arm/mach-tegra/board-apalis-tk1.h
index d6114a1af820..3085eb757a9c 100644
--- a/arch/arm/mach-tegra/board-apalis-tk1.h
+++ b/arch/arm/mach-tegra/board-apalis-tk1.h
@@ -1,7 +1,7 @@
/*
* arch/arm/mach-tegra/board-apalis-tk1.h
*
- * Copyright (c) 2016, Toradex AG. All rights reserved.
+ * Copyright (c) 2016-2017, Toradex AG. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -30,8 +30,13 @@
#define APALIS_GPIO1 TEGRA_GPIO_PFF2
#define APALIS_GPIO2 TEGRA_GPIO_PFF0
+#ifdef APALIS_TK1_V10
#define APALIS_GPIO3 TEGRA_GPIO_PV4 /* open-drain only */
#define APALIS_GPIO4 TEGRA_GPIO_PV5 /* open-drain only */
+#else
+#define APALIS_GPIO3 TEGRA_GPIO_PN4
+#define APALIS_GPIO4 TEGRA_GPIO_PN5
+#endif
#define APALIS_GPIO5 TEGRA_GPIO_PDD5
#define APALIS_GPIO6 TEGRA_GPIO_PDD6
#define APALIS_GPIO7 TEGRA_GPIO_PDD1