diff options
author | Niel Fourie <lusus@denx.de> | 2021-01-21 13:19:20 +0100 |
---|---|---|
committer | Priyanka Jain <priyanka.jain@nxp.com> | 2021-02-08 14:01:18 +0530 |
commit | 37bfd9cb50b829be07ebf8e6634bb3b5457b4a79 (patch) | |
tree | 485fe92a743d83754f4f9527d4c484c47ad58481 /board/keymile/common | |
parent | df86d324c79e890141386b7e27adc1cb949e8d41 (diff) | |
download | u-boot-37bfd9cb50b829be07ebf8e6634bb3b5457b4a79.tar.gz u-boot-37bfd9cb50b829be07ebf8e6634bb3b5457b4a79.tar.xz u-boot-37bfd9cb50b829be07ebf8e6634bb3b5457b4a79.zip |
PowerPC: keymile: Add support for kmcent2 board
Add basic support for the Hitachi Power Grids kmcent2 board, based
on the NXP QorIQ T1040 SoC.
Signed-off-by: Valentin Longchamp <valentin.longchamp@hitachi-powergrids.com>
Signed-off-by: Rainer Boschung <rainer.boschung@hitachi-powergrids.com>
Signed-off-by: Niel Fourie <lusus@denx.de>
Cc: Holger Brunck <holger.brunck@hitachi-powergrids.com>
Cc: Heiko Schocher <hs@denx.de>
Reviewed-by: Stefan Roese <sr@denx.de>
[Fixed blank line at EOF errors]
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'board/keymile/common')
-rw-r--r-- | board/keymile/common/ivm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/board/keymile/common/ivm.c b/board/keymile/common/ivm.c index e989bf609f..bc8ffd56e1 100644 --- a/board/keymile/common/ivm.c +++ b/board/keymile/common/ivm.c @@ -321,6 +321,11 @@ static int ivm_populate_env(unsigned char *buf, int len, int mac_address_offset) process_mac(valbuf, page2, mac_address_offset, true); env_set((char *)"eth1addr", (char *)valbuf); } + if (IS_ENABLED(CONFIG_TARGET_KMCENT2)) { + /* 3rd ethernet interface */ + process_mac(valbuf, page2, 2, true); + env_set((char *)"eth4addr", (char *)valbuf); + } return 0; } |