I work on an embedded platform with a DM9000 ethernet controller. This particular controller can either get its MAC address from an attached EEPROM or it can be set via the platform_data mechanism. As a cost saving measure, there is no EEPROM attached to the controller on this board, so in order to get a MAC address, we pull the die ID from the CPU during boot and use that to initialize the MAC address in the device struct before we pass it to the driver core.
Is there a mechanism to enable these sort of hacks with device trees and if so, how?
Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds