pmaports/device/device-xiaomi-armani/wlanarmani
alive4ever 12487a1efa Initial porting effort to Xiaomi Redmi 1S (armani) (#1204)
The device is Xiaomi Redmi 1S, based on MSM8296 platform, with Qualcomm
Snapdragon 400.  The kernel is from lineageOS (3.4.0). Some additional patches
are needed for successful compilation. The screen dimension is 720x1280.

The touchscreen device name is ft5x06_i2c. Use this name for udev
instead of hardcoded device path. Also add a workaround for red
screen weston by setting weston_pixman to 2
The screen doesn't refresh. Enabling msm-fb-refresher as suggested.

Add udev rule to indicate whether the device is in charging state.
Green led indicates that the device is charging, whereas red light
indicates that the device is discharging.

For prima wlan module to work, an initialization procedure is needed (
echo 1 > /dev/wcnss_wlan ), before loading the prima wlan module
(wlan.ko). Also build the prima wlan as module. 

Xiaomi Redmi 1S is using pronto wlan module, which needs some firmware
to run. Add the required wifi firmware to enable the wifi interface.

Add an openrc service to load wlan module after wcnss_service is
initialized.
2018-02-05 19:58:08 +00:00

22 lines
247 B
Text

#!/sbin/openrc-run
description="Loading wlan module"
depend()
{
need wcnss-wlan
before wpa_supplicant
}
start()
{
ebegin "Loading wlan module"
modprobe wlan || return 1
}
stop()
{
ebegin "Unloading wlan module"
rmmod wlan || return 1
}