diff options
| author | Tom Rini <[email protected]> | 2019-07-08 16:02:19 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2019-07-08 16:02:19 -0400 |
| commit | 0b7f1a95df8fe312ff8f1f548f51e6d656e8e67e (patch) | |
| tree | 8ecfb7fedd9c1b7fa115054b218f7549d836d9a4 /arch/arm/include | |
| parent | f5e73a34eddea4fb7c5e3d984b86f395996a64cd (diff) | |
| parent | 3f1f9f08eb2031e14a7e2037feed18a69f1437c6 (diff) | |
Merge tag 'u-boot-amlogic-20190704' of https://gitlab.denx.de/u-boot/custodians/u-boot-amlogic
- fix khadas-vim README
- add support for unique generated MAC adresses from SoC serial,
limited to Amlogic GXL/GXM boards for now
Diffstat (limited to 'arch/arm/include')
| -rw-r--r-- | arch/arm/include/asm/arch-meson/eth.h | 3 | ||||
| -rw-r--r-- | arch/arm/include/asm/arch-meson/sm.h | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-meson/eth.h b/arch/arm/include/asm/arch-meson/eth.h index 08acc5cbf74..f765cd7c4ca 100644 --- a/arch/arm/include/asm/arch-meson/eth.h +++ b/arch/arm/include/asm/arch-meson/eth.h @@ -19,4 +19,7 @@ enum { */ void meson_eth_init(phy_interface_t mode, unsigned int flags); +/* Generate an unique MAC address based on the HW serial */ +int meson_generate_serial_ethaddr(void); + #endif /* __MESON_ETH_H__ */ diff --git a/arch/arm/include/asm/arch-meson/sm.h b/arch/arm/include/asm/arch-meson/sm.h index 83d6441803a..60d04ae2283 100644 --- a/arch/arm/include/asm/arch-meson/sm.h +++ b/arch/arm/include/asm/arch-meson/sm.h @@ -8,4 +8,8 @@ ssize_t meson_sm_read_efuse(uintptr_t offset, void *buffer, size_t size); +#define SM_SERIAL_SIZE 12 + +int meson_sm_get_serial(void *buffer, size_t size); + #endif /* __MESON_SM_H__ */ |
