U-BOOT GPIO Driver for LS102xa Platform

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

U-BOOT GPIO Driver for LS102xa Platform

U-BOOT GPIO Driver for LS102xa Platform

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

Labels (1)
Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1128612%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EU-BOOT%20GPIO%20Driver%20for%20LS102xa%20Platform%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1128612%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%22%3ERecently%20some%20customers%20are%20porting%20SDK%202.0%20u-boot%20for%20LS1021ATWR%20to%20their%20custom%20boards.%20They%20intended%20to%20use%20GPIO%20lines%20to%20turn%20on%2Foff%20LEDs%20for%20diagnostics%20and%20other%20various%20purposes.%20However%20GPIO%20driver%20is%20not%20supported%20in%20SDK%202.0%20u-boot%20for%20LS102xa%20platform.%20The%20attached%20patch%20is%20used%20to%20add%20GPIO%20driver%20on%20LS1021ATWR%20platform%20based%20on%20SDK%202.0%20u-boot%20code.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%22%3EPlease%20use%20it%20in%20SDK%202.0%20as%20the%20following%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%22%3E%24%20source%20.%2Ffsl-setup-env%20-m%20ls1021atwr%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%22%3E%24%20bitbake%20u-boot%20-c%20cleansstate%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%22%3E%24%20bitbake%20u-boot%20-c%20patch%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%22%3EGo%20to%20the%20folder%20build_ls1021atwr%2Ftmp%2Fwork%2Fls1021atwr-fsl-linux-gnueabi%2Fu-boot-qoriq%2F2016.01%2Bfslgit-r0%2Fgit%2C%20apply%20the%20attached%20patch%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%22%3E%24%20patch%20-p1%26lt%3B0001-ls1021xa-gpio.patch%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%22%3EGo%20back%20to%20build_ls1021atwr%20folder%20to%20rebuild%20u-boot%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010.0pt%3B%22%3E%24%20bitbake%20u-boot%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1128612%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EQorIQ%20LS1%20Devices%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎10-08-2017 11:47 PM
Updated by: