Hello Sukruth,
LS1021 is supported in QorIQ Linux SDK 2.0, you could download SDK 2.0 for reference from Linux® SDK for QorIQ ® Processors|NXP .
You could refer to ETSEC driver provided in u-boot for reference, I have attached it for you.
If you installed SDK 2.0, you could run "bitbake u-boot -c patch -f" to get u-boot source in the folder build_<platform>/tmp/work/<platform>-fsl-linux/u-boot-qoriq/2016.01+fslgit-r0/git.
For Non-OS project, you also could refer to NetComm Software downloaded from NetComm Software Resources|NXP , which is a driver package, developed based on CodeWarrior. You could download NetComm 4.4 from NetComm Software Resources|NXP, please refer to
eTSEC driver in NetComm_Software_Release_4.4\NetCommSw\Peripherals\eTSEC
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------