Re: [U-Boot] [u-boot PATCH v5 04/10] ti: common: board_detect: commodify ethaddr environment setting code

2017-03-15 Thread Roger Quadros
On 15/03/17 16:46, Felipe Balbi wrote: > > Hi, > > Roger Quadros writes: >>> On Tue, Mar 14, 2017 at 3:05 PM Roger Quadros >> > wrote: >>> >>> +void board_ti_set_ethaddr(int index) >>> +{ >>> + uint8_t mac_addr[6]; >>>

Re: [U-Boot] [u-boot PATCH v5 04/10] ti: common: board_detect: commodify ethaddr environment setting code

2017-03-15 Thread Felipe Balbi
Hi, Roger Quadros writes: >> On Tue, Mar 14, 2017 at 3:05 PM Roger Quadros > > wrote: >> >> +void board_ti_set_ethaddr(int index) >> +{ >> + uint8_t mac_addr[6]; >> + int i; >> + u64 mac1, mac2; >>

Re: [U-Boot] [u-boot PATCH v5 04/10] ti: common: board_detect: commodify ethaddr environment setting code

2017-03-15 Thread Roger Quadros
Hi, On 14/03/17 17:54, Felipe Balbi wrote: > Hi, > > On Tue, Mar 14, 2017 at 3:05 PM Roger Quadros > wrote: > > +void board_ti_set_ethaddr(int index) > +{ > + uint8_t mac_addr[6]; > + int i; > + u64 mac1, mac2; >

Re: [U-Boot] [u-boot PATCH v5 04/10] ti: common: board_detect: commodify ethaddr environment setting code

2017-03-14 Thread Felipe Balbi
Hi, On Tue, Mar 14, 2017 at 3:05 PM Roger Quadros wrote: +void board_ti_set_ethaddr(int index) +{ + uint8_t mac_addr[6]; + int i; + u64 mac1, mac2; + u8 mac_addr1[6], mac_addr2[6]; + int num_macs; + /* +* Export any Ethernet MAC

[U-Boot] [u-boot PATCH v5 04/10] ti: common: board_detect: commodify ethaddr environment setting code

2017-03-14 Thread Roger Quadros
Keystone and OMAP platforms will need this to set ethernet MAC addresses from board EEPROM. Signed-off-by: Roger Quadros Reviewed-by: Lokesh Vutla Reviewed-by: Tom Rini --- v5: - Set upto 50 MAC addresses if more than 50 are provided in