summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-09-29 00:12:18 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-10-03 10:32:09 +0200
commit118272010c367a7ef3060c5cb65fd402983d337e (patch)
tree9fc022b6640423096948aac78f15a151da728194
parent69cc6817e99f2dc0a34706e69874e06785a7b376 (diff)
apalis-tk1: rename fan enable gpio signal
Rename IXORA_FAN_GPIO to FAN_EN as per schematics. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r--board/toradex/apalis-tk1/apalis-tk1.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/board/toradex/apalis-tk1/apalis-tk1.c b/board/toradex/apalis-tk1/apalis-tk1.c
index 7f554e455f1..1c942bcf9d7 100644
--- a/board/toradex/apalis-tk1/apalis-tk1.c
+++ b/board/toradex/apalis-tk1/apalis-tk1.c
@@ -16,6 +16,7 @@
#include "../common/tdx-common.h"
#include "pinmux-config-apalis-tk1.h"
+#define FAN_EN TEGRA_GPIO(DD, 2) /* Apalis GPIO8 */
#define LAN_DEV_OFF_N TEGRA_GPIO(O, 6)
#define LAN_RESET_N TEGRA_GPIO(S, 2)
#define LAN_WAKE_N TEGRA_GPIO(O, 5)
@@ -24,8 +25,6 @@
#define RESET_MOCI_CTRL TEGRA_GPIO(U, 4)
#endif /* CONFIG_APALIS_TK1_PCIE_EVALBOARD_INIT */
-#define IXORA_FAN_GPIO TEGRA_GPIO(DD, 2)
-
int arch_misc_init(void)
{
if (readl(NV_PA_BASE_SRAM + NVBOOTINFOTABLE_BOOTTYPE) ==
@@ -215,7 +214,6 @@ void tegra_pcie_board_port_reset(struct tegra_pcie_port *port)
void start_cpu_fan(void)
{
- gpio_request(IXORA_FAN_GPIO, "IXORA_FAN_GPIO");
- gpio_direction_output(IXORA_FAN_GPIO, 1);
-
+ gpio_request(FAN_EN, "FAN_EN");
+ gpio_direction_output(FAN_EN, 1);
}