meta-quanta: gsj: Lower fan speed to default duty as booting and rebooting

The fan speed is lowered to 90 duty for thermal issue.

Signed-off-by: Hank Liou <Hank.Liou@quantatw.com>
Change-Id: Ia61e5d7510a93b7fc5d8516e96ed3c0324130f81
diff --git a/meta-gsj/recipes-phosphor/fans/phosphor-pid-control/fan-boot-control.service b/meta-gsj/recipes-phosphor/fans/phosphor-pid-control/fan-boot-control.service
new file mode 100644
index 0000000..2149c3d
--- /dev/null
+++ b/meta-gsj/recipes-phosphor/fans/phosphor-pid-control/fan-boot-control.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Set Fan to Default Duty as Booting Up
+DefaultDependencies=no
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/fan-default-speed.sh
+
+[Install]
+WantedBy=sysinit.target
diff --git a/meta-gsj/recipes-phosphor/fans/phosphor-pid-control/fan-default-speed.sh b/meta-gsj/recipes-phosphor/fans/phosphor-pid-control/fan-default-speed.sh
new file mode 100644
index 0000000..2cd3106
--- /dev/null
+++ b/meta-gsj/recipes-phosphor/fans/phosphor-pid-control/fan-default-speed.sh
@@ -0,0 +1,5 @@
+#!bin/bash
+
+echo 230 > /sys/class/hwmon/*/pwm1
+echo 230 > /sys/class/hwmon/*/pwm2
+echo 230 > /sys/class/hwmon/*/pwm3
diff --git a/meta-gsj/recipes-phosphor/fans/phosphor-pid-control/fan-full-speed.sh b/meta-gsj/recipes-phosphor/fans/phosphor-pid-control/fan-full-speed.sh
deleted file mode 100644
index dd411d2..0000000
--- a/meta-gsj/recipes-phosphor/fans/phosphor-pid-control/fan-full-speed.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!bin/bash
-
-echo 255 > /sys/class/hwmon/*/pwm1
-echo 255 > /sys/class/hwmon/*/pwm2
-echo 255 > /sys/class/hwmon/*/pwm3
diff --git a/meta-gsj/recipes-phosphor/fans/phosphor-pid-control/fan-reboot-control.service b/meta-gsj/recipes-phosphor/fans/phosphor-pid-control/fan-reboot-control.service
index 4396d18..681bdbe 100644
--- a/meta-gsj/recipes-phosphor/fans/phosphor-pid-control/fan-reboot-control.service
+++ b/meta-gsj/recipes-phosphor/fans/phosphor-pid-control/fan-reboot-control.service
@@ -1,12 +1,12 @@
 [Unit]
-Description=Set Fan to Full Speed as Rebooting
+Description=Set Fan to Default Duty as Rebooting
 DefaultDependencies=no
 After=shutdown.target
 
 [Service]
 Type=oneshot
 RemainAfterExit=true
-ExecStart=/usr/bin/fan-full-speed.sh
+ExecStart=/usr/bin/fan-default-speed.sh
 
 [Install]
-WantedBy=shutdown.target
\ No newline at end of file
+WantedBy=shutdown.target
diff --git a/meta-gsj/recipes-phosphor/fans/phosphor-pid-control/phosphor-pid-control.service b/meta-gsj/recipes-phosphor/fans/phosphor-pid-control/phosphor-pid-control.service
index 135e673..0e18819 100644
--- a/meta-gsj/recipes-phosphor/fans/phosphor-pid-control/phosphor-pid-control.service
+++ b/meta-gsj/recipes-phosphor/fans/phosphor-pid-control/phosphor-pid-control.service
@@ -8,7 +8,7 @@
 Restart=always
 RestartSec=5
 StartLimitInterval=0
-ExecStopPost=/usr/bin/fan-full-speed.sh
+ExecStopPost=/usr/bin/fan-default-speed.sh
 
 [Install]
-WantedBy=basic.target
\ No newline at end of file
+WantedBy=basic.target