aboutsummaryrefslogtreecommitdiff
path: root/board/davinci/da8xxevm/omapl138_lcdk.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-08-17 17:59:37 -0400
committerTom Rini <trini@konsulko.com>2021-08-30 14:10:05 -0400
commit20815ecdcf7b6cf118229af5bb2b474ca2215158 (patch)
tree24dc4929790015d7714c5083abed6d26fc5961e1 /board/davinci/da8xxevm/omapl138_lcdk.c
parent2a1453695dd197f3b77c6303fe0d7a7b5bc86e67 (diff)
downloadu-boot-20815ecdcf7b6cf118229af5bb2b474ca2215158.zip
u-boot-20815ecdcf7b6cf118229af5bb2b474ca2215158.tar.gz
u-boot-20815ecdcf7b6cf118229af5bb2b474ca2215158.tar.bz2
davinci: Drop CONFIG_MAC_ADDR_IN_EEPROM
Looking over the current boards, there are no users of CONFIG_MAC_ADDR_IN_EEPROM. Further, omapl138_lcdk uses CONFIG_NET_RANDOM_ETHADDR. Drop various unused code paths. Cc: Adam Ford <aford173@gmail.com> Cc: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/davinci/da8xxevm/omapl138_lcdk.c')
-rw-r--r--board/davinci/da8xxevm/omapl138_lcdk.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/board/davinci/da8xxevm/omapl138_lcdk.c b/board/davinci/da8xxevm/omapl138_lcdk.c
index d5f43bf..43d9b69 100644
--- a/board/davinci/da8xxevm/omapl138_lcdk.c
+++ b/board/davinci/da8xxevm/omapl138_lcdk.c
@@ -236,12 +236,6 @@ int board_init(void)
#define CFG_MAC_ADDR_OFFSET (flash->size - SZ_64K)
-static int get_mac_addr(u8 *addr)
-{
- /* Need to find a way to get MAC ADDRESS */
- return 0;
-}
-
void dsp_lpsc_on(unsigned domain, unsigned int id)
{
dv_reg_p mdstat, mdctl, ptstat, ptcmd;
@@ -304,29 +298,6 @@ int rmii_hw_init(void)
int misc_init_r(void)
{
- uint8_t tmp[20], addr[10];
-
-
- if (env_get("ethaddr") == NULL) {
- /* Read Ethernet MAC address from EEPROM */
- if (dvevm_read_mac_address(addr)) {
- /* Set Ethernet MAC address from EEPROM */
- davinci_sync_env_enetaddr(addr);
- } else {
- get_mac_addr(addr);
- }
-
- if (!is_multicast_ethaddr(addr) && !is_zero_ethaddr(addr)) {
- sprintf((char *)tmp, "%02x:%02x:%02x:%02x:%02x:%02x",
- addr[0], addr[1], addr[2], addr[3], addr[4],
- addr[5]);
-
- env_set("ethaddr", (char *)tmp);
- } else {
- printf("Invalid MAC address read.\n");
- }
- }
-
#ifdef CONFIG_DRIVER_TI_EMAC_USE_RMII
/* Select RMII fucntion through the expander */
if (rmii_hw_init())