public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Igor Opaniuk <igor.opaniuk@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 02/10] apalis-tk1: set apalis gpio 8 aka fan_en
Date: Mon,  5 Aug 2019 18:20:39 +0300	[thread overview]
Message-ID: <20190805152047.30405-3-igor.opaniuk@gmail.com> (raw)
In-Reply-To: <20190805152047.30405-1-igor.opaniuk@gmail.com>

From: Igor Opaniuk <igor.opaniuk@toradex.com>

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>
---

 board/toradex/apalis-tk1/apalis-tk1.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/board/toradex/apalis-tk1/apalis-tk1.c b/board/toradex/apalis-tk1/apalis-tk1.c
index b87e9e7a3e..d57c5042dd 100644
--- 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
  */
-- 
2.17.1

  parent reply	other threads:[~2019-08-05 15:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-05 15:20 [U-Boot] [PATCH v3 00/10] apalis-tk1: fixes/updates for v2019.10 Igor Opaniuk
2019-08-05 15:20 ` [U-Boot] [PATCH v3 01/10] apalis-tk1: do not explicitly release reset_moci# Igor Opaniuk
2019-08-05 15:20 ` Igor Opaniuk [this message]
2019-08-05 15:20 ` [U-Boot] [PATCH v3 03/10] apalis-tk1: provide proper USB vendor id Igor Opaniuk
2019-08-05 15:20 ` [U-Boot] [PATCH v3 04/10] apalis-tk1: enable user debug by default Igor Opaniuk
2019-08-05 15:20 ` [U-Boot] [PATCH v3 05/10] apalis-tk1: add pcie_aspm=off to defargs Igor Opaniuk
2019-08-05 15:20 ` [U-Boot] [PATCH v3 06/10] apalis-tk1: switch to zImage Igor Opaniuk
2019-08-05 15:20 ` [U-Boot] [PATCH v3 07/10] apalis-tk1/t30: colibri_t30: display reset reason Igor Opaniuk
2019-08-05 15:20 ` [U-Boot] [PATCH v3 08/10] apalis-tk1: remove default vesa vga mode from vidargs Igor Opaniuk
2019-08-05 15:20 ` [U-Boot] [PATCH v3 09/10] apalis-tk1: support v1.2 hardware revision Igor Opaniuk
2019-08-05 15:20 ` [U-Boot] [PATCH v3 10/10] apalis-tk1: remove non-esential power rails on boot Igor Opaniuk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190805152047.30405-3-igor.opaniuk@gmail.com \
    --to=igor.opaniuk@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox