summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-snapdragon/misc.c
Commit message (Collapse)AuthorAgeFilesLines
* mach-snapdragon: Fix overwriting last digit of serial numberJan-Christoph Tebbe2020-04-031-1/+1
| | | | | | | | | When generating the MAC address based on the boards serial number the last digit was overwritten with the null termination. That way boards with serial numbers close to each other would use the same MAC address. Signed-off-by: Jan-Christoph Tebbe <Jan-Christoph.Tebbe@ithinx.io>
* snapdragon: added MAC generation functionsRamon Fried2018-08-131-0/+16
| | | | | | | | Add support for generation of unique MAC address that is derived from board serial. Algorithm for generation of MAC taken from LK. Signed-off-by: Ramon Fried <ramon.fried@gmail.com>
* snapdragon: added msm_board_serial() funcRamon Fried2018-08-131-0/+37
This commit adds a function to get the board serial number. In snapdragon it's actually the eMMC serial number. Function added in a new file misc.c that will include further snapdragon miscellaneous functions. Signed-off-by: Ramon Fried <ramon.fried@gmail.com>