Commit d1955e1
committed
net: ethernet: dm9000: Accept a MAC address as a bootarg for CI20.
The MAC address for the CI20's DM9000 is stored in EEPROM on a different
part of the board. Previously, the DM9000 would make up a random MAC
after failing to read its own EEPROM. This commit makes it possible for
U-BOOT to pass the MAC address to the DM9000 driver. Such as:
bootargs="dm9000.mac_addr=${ethaddr}"
Note: This isn't the "correct" way to do this, but will do for now. The correct
method would be to recompile U-BOOT with CONFIG_OF_LIBFDT and CONFIG_FIT
enabled. Then the kernel should be compiled as a FIT image and U-BOOT can then
add an entry to the DM9000's DT node to set the MAC address (local-mac-address
= [xx xx xx xx xx xx];).
Signed-off-by: Harvey Hunt <harvey.hunt@imgtec.com>1 parent 58aab73 commit d1955e1
1 file changed
+29
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
49 | 54 | | |
50 | 55 | | |
51 | 56 | | |
| |||
1438 | 1443 | | |
1439 | 1444 | | |
1440 | 1445 | | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
1441 | 1450 | | |
1442 | 1451 | | |
1443 | 1452 | | |
| |||
1666 | 1675 | | |
1667 | 1676 | | |
1668 | 1677 | | |
1669 | | - | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
1670 | 1691 | | |
1671 | | - | |
1672 | | - | |
1673 | | - | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
1674 | 1698 | | |
1675 | 1699 | | |
1676 | 1700 | | |
1677 | | - | |
| 1701 | + | |
1678 | 1702 | | |
1679 | 1703 | | |
1680 | 1704 | | |
1681 | 1705 | | |
1682 | | - | |
1683 | 1706 | | |
1684 | 1707 | | |
1685 | 1708 | | |
| |||
1693 | 1716 | | |
1694 | 1717 | | |
1695 | 1718 | | |
1696 | | - | |
1697 | 1719 | | |
1698 | 1720 | | |
1699 | 1721 | | |
| |||
0 commit comments