1. 28 9月, 2012 10 次提交
    • B
      net: Quietly ignore DHCP Option 28 (Broadcast Address) · ee0f60df
      Brian Rzycki 提交于
      Some DHCP servers (notably dnsmasq) always transmit DHCP Option 28,
      Broadcast Address as specified in RFC 2132. Without this patch u-boot
      displays the warning:
        *** Unhandled DHCP Option in OFFER/ACK: 28
      
      The patch suppresses the warning and ignores DHCP Option 28. There is
      no environment variable to set the broadcast address into and if for
      some reason u-boot needs the broadcast it can be calculated from
      ipaddr and netmask.
      Signed-off-by: NBrian Rzycki <bmr@freescale.com>
      ee0f60df
    • C
      PXE: FDT: Add support for fdt in PXE · a655938a
      Chander Kashyap 提交于
      Now DT support is becoming common for all new SoC's. Hence it is better
      to have option for getting specific FDT from the remote server.
      
      This patch adds support for new label i.e. 'fdt'. This will allow to
      retrieve 'fdt blob' from the remote server. This patch take care for
      the following scenarios.
      
      The usage of fdt is optional.
      The 'fdt blob' can be retrieved from tftp or can be available locally
      or can be absent.
      
      If 'fdt_addr_r' environment variable is set and 'fdt' label is defined
      retrieve 'fdt blob' from tftp. 'fdt_addr_r' is then passed along bootm
      command.
      
      If 'fdt_addr' is set and 'fdt blob' is not retrieved from the tftp pass
      'fdt_addr' to bootm command. In this case 'fdt blob' will be available
      at 'fdt_addr'.
      
      If 'fdt_addr' is not set and 'fdt blob' is not retrieve from tftp pass
      NULL to boot command. In this case 'fdt blob' is not required and absent.
      Signed-off-by: NChander Kashyap <chander.kashyap@linaro.org>
      Acked-by: NJason Hobbs <jason.hobbs@calxeda.com>
      a655938a
    • M
      FEC: Replace magic contants · c0b5a3bb
      Marek Vasut 提交于
      Replace the magic contant 1 << 24 with properly defined bits.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Otavio Salvador <otavio@ossystems.com.br>
      Cc: Stefano Babic <sbabic@denx.de>
      c0b5a3bb
    • M
      FEC: Rework the TX wait mechanism · 67449098
      Marek Vasut 提交于
      The mechanism waiting for transmission to finish in fec_send() now
      relies on the E-bit being cleared in the TX buffer descriptor. In
      case of data cache being on, this means invalidation of data cache
      above this TX buffer descriptor on each test for the E-bit being
      cleared.
      
      Apparently, there is another way to check if the transmission did
      complete. This is by checking the TDAR bit in the X_DES_ACTIVE
      register. Reading a register does not need any data cache invalidation,
      which is beneficial.
      
      Rework the sequence that wait for completion of the transmission so that
      the TDAR bit is tested first and afterwards check the E-bit being clear.
      This cuts down the number of cache invalidation calls to one.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Otavio Salvador <otavio@ossystems.com.br>
      Cc: Stefano Babic <sbabic@denx.de>
      67449098
    • M
      FEC: Remove endless loop in the FEC driver · bc1ce150
      Marek Vasut 提交于
      The FEC hardware sometimes errors out on data transfer and hangs in
      the tightloop adjusted by this patch. So add timeout into the tightloop
      to make such a hang recoverable.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Otavio Salvador <otavio@ossystems.com.br>
      Cc: Stefano Babic <sbabic@denx.de>
      bc1ce150
    • M
      FEC: Properly align address over the buffers for cache ops · efe24d2e
      Marek Vasut 提交于
      Align the address that's to be invalidated/flushed properly.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Benoit Thebaudeau <benoit.thebaudeau@advans>
      Cc: Eric Nelson <eric.nelson@boundarydevices.com>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      efe24d2e
    • M
      FEC: Do not pass unaligned buffer to network stack · e2a66e60
      Marek Vasut 提交于
      Do not pass unaligned RX buffer to the upper layers. The upper layer,
      especially in the ARP case, recycles the buffer and passes it back into
      the FEC, into it's TX path. With caches enabled, the FEC hangs on this
      from time to time.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Benoit Thebaudeau <benoit.thebaudeau@advans>
      Cc: Eric Nelson <eric.nelson@boundarydevices.com>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Tested-by: NFabio Estevam <fabio.estevam@freescale.com>
      e2a66e60
    • P
      net: Add Vitesse VSC8662 PHY support · f91ba0ec
      Priyanka Jain 提交于
      -VSC8662 is Dual Port 10/100/1000Base-T Phy,
       100Base-FX/1000/Base-X Gigabit Ethernt Transceiver Phy.
      
      -Its register set and features are similar to
       other Vitesse Phys
      Signed-off-by: NPriyanka Jain <Priyanka.Jain@freescale.com>
      Signed-off-by: NYork Sun <yorksun@freescale.com>
      f91ba0ec
    • V
      net/phy: support the mv88e6352 switch · b737337a
      Valentin Longchamp 提交于
      This patch add support for the configuration of an external switch from
      the 88E6xxx series from Marvell trough an MDIO link using indirect
      adressing. This can be used if we do not want to use an EEPROM for the
      configuration.
      
      This driver is not generic and was not tested on other switches than the
      88e6352. This is proposed as a first implementation that is somewhat
      limited but works and that can be used as a basis for further
      developments for this switch family.
      Signed-off-by: NValentin Longchamp <valentin.longchamp@keymile.com>
      cc: Holger Brunck <holger.brunck@keymile.com>
      cc: Prafulla Wadaskar <prafulla@marvell.com>
      cc: Joe Hershberger <joe.hershberger@gmail.com>
      b737337a
    • B
      net: eth_write_hwaddr: Return error for invalid MACs · 460f949f
      Benoît Thébaudeau 提交于
      If dev->enetaddr was supposed to be set with dev->write_hwaddr() but the MAC
      address was not valid, return an error.
      Signed-off-by: NBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Acked-by: NMike Frysinger <vapier@gentoo.org>
      460f949f
  2. 27 9月, 2012 6 次提交
  3. 25 9月, 2012 11 次提交
  4. 22 9月, 2012 8 次提交
  5. 21 9月, 2012 5 次提交