Changeset 810815c in rtems


Ignore:
Timestamp:
Feb 21, 2014, 1:05:01 PM (7 years ago)
Author:
Pavel Pisa <ppisa@…>
Branches:
4.11, 5, master
Children:
369bb13b
Parents:
986ddf5
git-author:
Pavel Pisa <ppisa@…> (02/21/14 13:05:01)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/14/14 07:56:33)
Message:

bsp/lpc24xx: Add LPC24XX_PIN_ETHERNET_POWER_DOWN

Location:
c/src/lib/libbsp/arm/lpc24xx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/lpc24xx/configure.ac

    r986ddf5 r810815c  
    5353RTEMS_BSPOPTS_SET([LPC24XX_ETHERNET_RMII],[*],[])
    5454RTEMS_BSPOPTS_HELP([LPC24XX_ETHERNET_RMII],[enable RMII for Ethernet])
     55
     56RTEMS_BSPOPTS_SET([LPC24XX_PIN_ETHERNET_POWER_DOWN],[*],[])
     57RTEMS_BSPOPTS_HELP([LPC24XX_PIN_ETHERNET_POWER_DOWN],[optional Ethernet power-down pin, output is set to high to enable power])
    5558
    5659RTEMS_BSPOPTS_SET([LPC24XX_EMC_MT48LC4M16A2],[lpc24xx_ncs_rom_*],[1])
  • c/src/lib/libbsp/arm/lpc24xx/include/lpc-ethernet-config.h

    r986ddf5 r810815c  
    7070  {
    7171    static const lpc24xx_pin_range pins [] = {
     72      #ifdef LPC24XX_PIN_ETHERNET_POWER_DOWN
     73        LPC24XX_PIN_ETHERNET_POWER_DOWN,
     74      #endif
    7275      LPC24XX_PIN_ETHERNET_RMII_0,
    7376      LPC24XX_PIN_ETHERNET_RMII_1,
     
    7982    lpc24xx_module_enable(LPC24XX_MODULE_ETHERNET, LPC24XX_MODULE_PCLK_DEFAULT);
    8083    lpc24xx_pin_config(&pins [0], LPC24XX_PIN_SET_FUNCTION);
     84
     85    #ifdef LPC24XX_PIN_ETHERNET_POWER_DOWN
     86      {
     87        unsigned pin = lpc24xx_pin_get_first_index(&pins[0]);
     88
     89        lpc24xx_gpio_config(pin, LPC24XX_GPIO_OUTPUT);
     90        lpc24xx_gpio_set(pin);
     91      }
     92    #endif
    8193  }
    8294#else
Note: See TracChangeset for help on using the changeset viewer.