The BPI team has updated the code for BPI-M2-bsp
Github commit : b39973edc60f5746f34b2a7f8976da57bb208c54