projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b5de78
)
apalis-tk1: set apalis gpio 8 aka fan_en
author
Igor Opaniuk
<igor.opaniuk@toradex.com>
Thu, 1 Aug 2019 08:06:32 +0000
(11:06 +0300)
committer
Tom Warren
<twarren@nvidia.com>
Fri, 9 Aug 2019 17:01:34 +0000
(10:01 -0700)
Make sure the Apalis GPIO 8 aka FAN_EN is on when using Apalis TK1
modules.
Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
board/toradex/apalis-tk1/apalis-tk1.c
patch
|
blob
|
history
diff --git
a/board/toradex/apalis-tk1/apalis-tk1.c
b/board/toradex/apalis-tk1/apalis-tk1.c
index b87e9e7a3efc21c2dd1602d6e7fe612f7bd4c876..d57c5042dddb98a5a724755c7017d6736970dbd6 100644
(file)
--- a/
board/toradex/apalis-tk1/apalis-tk1.c
+++ b/
board/toradex/apalis-tk1/apalis-tk1.c
@@
-19,6
+19,7
@@
#define LAN_DEV_OFF_N TEGRA_GPIO(O, 6)
#define LAN_RESET_N TEGRA_GPIO(S, 2)
+#define FAN_EN TEGRA_GPIO(DD, 2)
#define LAN_WAKE_N TEGRA_GPIO(O, 5)
#ifdef CONFIG_APALIS_TK1_PCIE_EVALBOARD_INIT
#define PEX_PERST_N TEGRA_GPIO(DD, 1) /* Apalis GPIO7 */
@@
-241,6
+242,15
@@
void tegra_pcie_board_port_reset(struct tegra_pcie_port *port)
}
#endif /* CONFIG_PCI_TEGRA */
+/*
+ * Enable/start PWM CPU fan
+ */
+void start_cpu_fan(void)
+{
+ gpio_request(FAN_EN, "FAN_EN");
+ gpio_direction_output(FAN_EN, 1);
+}
+
/*
* Backlight off before OS handover
*/