Skip to content
Snippets Groups Projects
  1. Feb 18, 2014
  2. Feb 07, 2014
    • Alexey Brodkin's avatar
      serial/serial_arc - add driver for ARC UART · 22a240c3
      Alexey Brodkin authored
      
      Driver for non-standard on-chip UART, instantiated in the ARC (Synopsys)
      FPGA Boards such as ARCAngel4/ML50x
      
      Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
      
      Cc: Mischa Jonker <mjonker@synopsys.com>
      Cc: Francois Bedard <fbedard@synopsys.com>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Stefano Babic <sbabic@denx.de>
      22a240c3
    • Alexey Brodkin's avatar
      net/designware: make driver compatible with data cache · 50b0df81
      Alexey Brodkin authored
      
      Up until now this driver only worked with data cache disabled.
      To make it work with enabled data cache following changes were required:
      
       * Flush Tx/Rx buffer descriptors their modification
       * Invalidate Tx/Rx buffer descriptors before reading its values
       * Flush cache for data passed from CPU to GMAC
       * Invalidate cache for data passed from GMAC to CPU
      
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Vipin Kumar <vipin.kumar@st.com>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Mischa Jonker <mjonker@synopsys.com>
      Cc: Shiraz Hashim <shiraz.hashim@st.com>
      Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
      Cc: Amit Virdi <amit.virdi@st.com>
      Cc: Sonic Zhang <sonic.zhang@analog.com>
      Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
      50b0df81
    • Alexey Brodkin's avatar
      net/designware - switch driver to phylib usage · 92a190aa
      Alexey Brodkin authored
      
      With this change driver will benefit from existing phylib and thus
      custom phy functionality implemented in the driver will go away:
       * Instantiation of the driver is now much shorter - 2 parameters
      instead of 4.
       * Simplified phy management/functoinality in driver is replaced with
      rich functionality of phylib.
       * Support of custom phy initialization is now done with existing
      "board_phy_config".
      
      Note that after this change some previously used config options
      (driver-specific PHY configuration) will be obsolete and they are simply
      substituted with similar options of phylib.
      
      For example:
       * CONFIG_DW_AUTONEG - no need in this one. Autonegotiation is enabled
      by default.
       * CONFIG_DW_SEARCH_PHY - if one wants to specify attached phy
      explicitly CONFIG_PHY_ADDR board config option has to be used, otherwise
      automatically the first discovered on MDIO bus phy will be used
      
      I believe there's no need now in "doc/README.designware_eth" because
      user only needs to instantiate the driver with "designware_initialize"
      whose prototype exists in "include/netdev.h".
      
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Vipin Kumar <vipin.kumar@st.com>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Mischa Jonker <mjonker@synopsys.com>
      Cc: Shiraz Hashim <shiraz.hashim@st.com>
      Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
      Cc: Amit Virdi <amit.virdi@st.com>
      Cc: Sonic Zhang <sonic.zhang@analog.com>
      Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
      92a190aa
    • Alexey Brodkin's avatar
      net/designware: add explicit reset of {tx|rx}_currdescnum · 74cb708d
      Alexey Brodkin authored
      
      Driver "init" function might be called multiple times.
      On every "init" Tx/Rx buffer descriptors are initialized: "descs_init"
      -> "{tx|rx}_descs_init".
      
      In its turn those init functions set MAC's "{tx|rx}desclistaddr" to
      point on the first buffer descriptor in the list.
      
      So CPU to start operation from the first buffer descriptor as well after
      every "init" we have to reset "{tx|rx}_currdescnum".
      
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: Vipin Kumar <vipin.kumar@st.com>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Mischa Jonker <mjonker@synopsys.com>
      Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
      74cb708d
    • Aaron Wu's avatar
      blackfin: Initialize the EMAC VLAN with proper default value · 819ca38f
      Aaron Wu authored
      
      EMAC_VLANx regs is not properly initiallized in u-boot, once it's overwrite in the
      kernel when DSA enabled, hot reset will lead to bringing up EMAC fail in u-boot.
      
      Signed-off-by: default avatarAaron Wu <Aaron.Wu@analog.com>
      Signed-off-by: default avatarSonic Zhang <sonic.zhang@analog.com>
      819ca38f
  3. Feb 06, 2014
    • Novasys Ingenierie's avatar
      fpga: zynq: Correct fpga load when buf is not aligned · c83a35f6
      Novasys Ingenierie authored
      
      When ARCH_DMA_MINALIGN is greater than header size of the bit file, and buf is
      not aligned, new_buf address became greater then buf_start address and the
      load_word loop corrupts bit file data.
      
      A work around is to decrease new_buf of ARCH_DMA_MINALIGN, it might corrupt data
      before buf but permits to load correctly.
      
      Signed-off-by: default avatarStany MARCEL <smarcel@novasys-ingenierie.com>
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
      c83a35f6
    • Marek Vasut's avatar
      usb: mv_udc: Rename to ci_udc · f016f8ca
      Marek Vasut authored
      
      The mv_udc is not marvell-specific anymore. The mv_udc is used to drive
      generic ChipIdea CI13xxx series OTG cores, so rename the driver to ci_udc
      instead.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Eric Nelson <eric.nelson@boundarydevices.com>
      Cc: Stefano Babic <sbabic@denx.de>
      f016f8ca
    • Łukasz Majewski's avatar
      usb:gadget:f_thor: cosmetic: Remove debug memset · fc2d5d04
      Łukasz Majewski authored
      
      Apparently debug memset (with a 0x55 value) has been overlooked in the
      f_thor code.
      
      Signed-off-by: default avatarLukasz Majewski <l.majewski@samsung.com>
      Cc: Marek Vasut <marex@denx.de>
      fc2d5d04
    • Łukasz Majewski's avatar
      usb:gadget:f_thor: Allocate request up to THOR_PACKET_SIZE not ep->maxpacket · 84c13e6f
      Łukasz Majewski authored
      
      Now it is possible to allocate static request - which receives data from
      the host (OUT transaction) to the size of THOR packet.
      
      Signed-off-by: default avatarLukasz Majewski <l.majewski@samsung.com>
      Cc: Marek Vasut <marex@denx.de>
      84c13e6f
    • Łukasz Majewski's avatar
      usb:udc:samsung: Zero copy approach for data passed to Samsung's UDC driver · e0059eae
      Łukasz Majewski authored
      
      The Samsung's UDC driver is not anymore copying data from USB requests to
      aligned internal buffers. Now it works directly in data allocated in the
      upper layers like UMS, DFU, THOR.
      
      This change is possible since those gadgets now must take care to allocate
      buffers aligned to cache line (CONFIG_SYS_CACHELINE_SIZE).
      
      This can be achieved by using DEFINE_CACHE_ALIGN_BUFFER() or
      ALLOC_CACHE_ALIGN_BUFFER() macros. Those take care to allocate buffer
      aligned to cache line in both starting address and its size.
      Sometimes it is enough to just use memalign() with size being a
      multiplication of cache line size.
      
      Test condition
      - test HW + measurement: Trats - Exynos4210 rev.1
      - test HW Trats2 - Exynos4412 rev.1
      400 MiB compressed rootfs image download with `thor 0 mmc 0`
      
      Measurement:
      Transmission speed: 27.04 MiB/s
      
      Signed-off-by: default avatarLukasz Majewski <l.majewski@samsung.com>
      Cc: Marek Vasut <marex@denx.de>
      e0059eae
    • Łukasz Majewski's avatar
      usb:udc:samsung: Allow burst transfers for non EP0 endpints · 9c982218
      Łukasz Majewski authored
      
      This patch removed obscure restriction on the HW setting of DMA transfers.
      Before this change each transaction sent up to 512 bytes (with packet count
      equal to 1) for non EP0 transfer.
      
      Now it is possible to setup DMA transaction up to DMA_BUFFER_SIZE.
      
      Test condition
      - test HW + measurement: Trats - Exynos4210 rev.1
      - test HW Trats2 - Exynos4412 rev.1
      400 MiB compressed rootfs image download with `thor 0 mmc 0`
      
      Measurement:
      Transmission speed: 20.74 MiB/s
      
      Signed-off-by: default avatarLukasz Majewski <l.majewski@samsung.com>
      Cc: Marek Vasut <marex@denx.de>
      9c982218
    • Łukasz Majewski's avatar
      usb:udc:samsung: Remove redundant cache operation from Samsung UDC driver · 716662bd
      Łukasz Majewski authored
      
      A set of cache operations (both invalidation and flush) were redundant
      in the S3C HS OTG Samsung driver:
      
      1. s3c_udc_ep0_zlp - to transmit EP0's ZLP packets one don't need to flush
      the cache (since it is the zero length transmission)
      
      2. s3c_udc_pre_setup and s3c_ep0_complete_out - cache invalidation is not
      needed when the buffer for OUT EP0 transmission is setup, since no data
      has yet arrived.
      
      Cache cleanups presented above don't contribute much to transmission speed
      up, hence shall be regarded as cosmetic changes.
      
      3. setdma_rx - here the s3c UDC driver's internal buffers were invalidated.
      This call is not needed anymore since we reuse the buffers passed from
      gadgets. This is a key contribution to transmission speed improvement.
      
      Test condition
      - test HW + measurement: Trats - Exynos4210 rev.1
      - test HW Trats2 - Exynos4412 rev.1
      400 MiB compressed rootfs image download with `thor 0 mmc 0`
      
      Measurements:
      
      Base values (without improvement):
      Transmission speed: 9.51 MiB/s
      
      After the change:
      Transmission speed: 10.15 MiB/s
      
      Signed-off-by: default avatarLukasz Majewski <l.majewski@samsung.com>
      Cc: Marek Vasut <marex@denx.de>
      716662bd
    • Łukasz Majewski's avatar
      usb:gadget:ums: Replace malloc calls with memalign to fix cache buffer alignment · 16b7a29f
      Łukasz Majewski authored
      
      Calls to malloc() have been replaced by memalign. It now provides proper
      buffer alignment.
      
      Signed-off-by: default avatarLukasz Majewski <l.majewski@samsung.com>
      Cc: Marek Vasut <marex@denx.de>
      16b7a29f
  4. Feb 04, 2014
  5. Feb 03, 2014
  6. Jan 24, 2014
  7. Jan 22, 2014
  8. Jan 21, 2014
  9. Jan 17, 2014
    • Jeroen Hofstee's avatar
      nand, gpmc: fix reading after switching ecc · 13fbde6e
      Jeroen Hofstee authored
      
      The omap_gpmc allows switching ecc at runtime. Since
      the NAND_SUBPAGE_READ flag is only set, it is kept when
      switching to hw ecc, which is not correct. This leads to
      calling chip->ecc.read_subpage which is not a valid
      pointer. Therefore clear the flag when switching ecc so
      reading in hw mode works again.
      
      Cc: Scott Wood <scottwood@freescale.com>
      Cc: Pekon Gupta <pekon@ti.com>
      Cc: Nikita Kiryanov <nikita@compulab.co.il>
      Signed-off-by: default avatarJeroen Hofstee <jeroen@myspectrum.nl>
      13fbde6e
  10. Jan 15, 2014
  11. Jan 14, 2014
  12. Jan 13, 2014
    • Inderpal Singh's avatar
      usb: exynos5: arndale: Add network support · 7da76512
      Inderpal Singh authored
      
      Arndale board has AX88760, which is USB 2.0 Hub & USB 2.0 Ethernet Combo
      controller, connected to HSIC Phy of USB host controller via USB3503 hub.
      
      This patch uses board specific board_usb_init function to perform reset
      sequence for USB3503 hub and enables the relevant config options for
      network to work.
      
      Signed-off-by: default avatarInderpal Singh <inderpal.singh@linaro.org>
      Signed-off-by: default avatarChander Kashyap <chander.kashyap@linaro.org>
      7da76512
    • Inderpal Singh's avatar
      usb: ehci: exynos: set/reset hsic phys · 16f9480d
      Inderpal Singh authored
      
      The controller has 3 ports. The port0 is for USB 2.0 Phy, port1 and port2
      are for HSIC phys. The usb 2.0 phy is already being setup. This patch
      sets up the hsic phys.
      
      Signed-off-by: default avatarInderpal Singh <inderpal.singh@linaro.org>
      16f9480d
    • Kuo-Jung Su's avatar
      usb: gadget: fotg210: EP0 fifo empty indication is non-reliable · dcad2800
      Kuo-Jung Su authored
      
      The fifo size of ep0 is 64 bytes, and if the packet size grater than
      64 bytes, the driver would have to fill up the fifo multiple times,
      and before filling up the fifo, the driver should make sure the fifo
      is empty by checking fifo empty indication.
      
      However there is a hardware bug that the fifo empty indication is
      somehow a bit earlier than fifo reset. So if I don't add an extra
      delay here, the data might be corrupted. (i.e., 1 byte missing)
      
      After a couple of tests, it truns out that 1 usec is good enough.
      
      This workaround should be applied to all hardware revisions.
      
      Signed-off-by: default avatarKuo-Jung Su <dantesu@faraday-tech.com>
      CC: Marek Vasut <marex@denx.de>
      dcad2800
    • Kuo-Jung Su's avatar
      usb: gadget: fotg210: add w1c interrupt status support · bd5e301d
      Kuo-Jung Su authored
      
      Since hardware revision 1.11.0, the following interrupt status
      registers are now W1C (i.e., write 1 clear):
      
      1. Interrupt Source Group 0 Register (0x144) (EP0 Abort: BIT5)
      2. Interrupt Source Group 2 Register (0x14C) (All bits)
      
      And before revision 1.11.0, these registers are all R/W.
      Which means software must write a 0 to clear the status.
      
      Signed-off-by: default avatarKuo-Jung Su <dantesu@faraday-tech.com>
      CC: Marek Vasut <marex@denx.de>
      bd5e301d
    • Kuo-Jung Su's avatar
      i2c: fti2c010: fix compiler warning on paddr[] · dccacbe0
      Kuo-Jung Su authored
      
      This fixes the following compiler warnings:
      
      fti2c010.c: In function 'fti2c010_read':
      fti2c010.c:204:8: warning: 'paddr' may be used uninitialized in this function [-Wuninitialized]
      fti2c010.c: In function 'fti2c010_write':
      fti2c010.c:266:8: warning: 'paddr' may be used uninitialized in this function [-Wuninitialized]
      
      Signed-off-by: default avatarKuo-Jung Su <dantesu@faraday-tech.com>
      Cc: Heiko Schocher <hs@denx.de>
      dccacbe0
Loading