Changeset 369bb13b in rtems


Ignore:
Timestamp:
Feb 21, 2014, 1:08:03 PM (6 years ago)
Author:
Pavel Pisa <ppisa@…>
Branches:
4.11, master
Children:
14c3cb6
Parents:
810815c
git-author:
Pavel Pisa <ppisa@…> (02/21/14 13:08:03)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/14/14 07:56:33)
Message:

bsps/arm: Reset MII management in LPC Ethernet

Reduce MII clock to support LPC17XX.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/shared/lpc/network/lpc-ethernet.c

    r810815c r369bb13b  
    233233#define ETH_MCFG_CLOCK_SELECT(val) BSP_FLD32(val, 2, 4)
    234234
     235#define ETH_MCFG_RESETMIIMGMT BSP_BIT32(15)
     236
    235237/* ETH_MCMD */
    236238
     
    13281330
    13291331    /* Initialize PHY */
    1330     lpc_eth->mcfg = ETH_MCFG_CLOCK_SELECT(0x7);
     1332    /* Clock value 10 (divide by 44 ) is safe on LPC178x up to 100 MHz AHB clock */
     1333    lpc_eth->mcfg = ETH_MCFG_CLOCK_SELECT(10) | ETH_MCFG_RESETMIIMGMT;
     1334    rtems_task_wake_after(1);
     1335    lpc_eth->mcfg = ETH_MCFG_CLOCK_SELECT(10);
     1336    rtems_task_wake_after(1);
    13311337    eno = lpc_eth_phy_up(e);
    13321338
Note: See TracChangeset for help on using the changeset viewer.