U-BOOT GPIO Driver for LS102xa Platform

Document created by Yiping Wang Employee on Oct 8, 2017
Version 1Show Document
  • View in full screen mode

Recently some customers are porting SDK 2.0 u-boot for LS1021ATWR to their custom boards. They intended to use GPIO lines to turn on/off LEDs for diagnostics and other various purposes. However GPIO driver is not supported in SDK 2.0 u-boot for LS102xa platform. The attached patch is used to add GPIO driver on LS1021ATWR platform based on SDK 2.0 u-boot code.

Please use it in SDK 2.0 as the following:

$ source ./fsl-setup-env -m ls1021atwr

$ bitbake u-boot -c cleansstate

$ bitbake u-boot -c patch

Go to the folder build_ls1021atwr/tmp/work/ls1021atwr-fsl-linux-gnueabi/u-boot-qoriq/2016.01+fslgit-r0/git, apply the attached patch

$ patch -p1<0001-ls1021xa-gpio.patch

Go back to build_ls1021atwr folder to rebuild u-boot

$ bitbake u-boot

Outcomes