mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-12 13:32:31 +00:00
dm: script: export gpio460 for wifi reset
GPIO460 is used to reset wifi chip on apl-mab. Export the GPIO pin to userspace so that it can be used in device model. Tracked-On: #2328 Signed-off-by: Binbin Wu <binbin.wu@intel.com>
This commit is contained in:
parent
c85153e7fa
commit
a021cb26bb
@ -360,7 +360,7 @@ fi
|
||||
--mac_seed $mac_seed \
|
||||
-s 27,passthru,0/1b/0 \
|
||||
-s 24,passthru,0/18/0 \
|
||||
-s 18,passthru,3/0/0,keep_gsi \
|
||||
-s 18,passthru,3/0/0,keep_gsi,gpio_rst,460 \
|
||||
$intr_storm_monitor \
|
||||
$boot_ipu_option \
|
||||
-i /run/acrn/ioc_$vm_name,0x20 \
|
||||
@ -410,6 +410,13 @@ do
|
||||
esac
|
||||
done
|
||||
|
||||
if [ ! -f "/sys/class/gpio/gpio460" ]; then
|
||||
echo "export gpio460"
|
||||
echo 460 > /sys/class/gpio/export
|
||||
echo out > /sys/class/gpio/gpio460/direction
|
||||
echo 1 > /sys/class/gpio/gpio460/value
|
||||
fi
|
||||
|
||||
if [ ! -b "/dev/mmcblk1p3" ]; then
|
||||
echo "no /dev/mmcblk1p3 data partition, exit"
|
||||
exit
|
||||
|
Loading…
Reference in New Issue
Block a user