Skip to content
Snippets Groups Projects
  1. Nov 02, 2012
    • Gabe Black's avatar
      ahci: Make the AHCI code find the capacity of disks > 128 GB properly · 19d1d41e
      Gabe Black authored
      
      In the structure returned by the ATA identify device command, there are two
      fields which describe the device capacity. One is a 32 bit data type which
      reports the number of sectors as a 28 bit LBA, and the other is a 64 bit data
      type which is for a 48 bit LBA. If the device doesn't support 48 bit LBAs,
      the small value is the only value with the correct size. If it supports more,
      if the number of sectors is small enough to fit into 28 bits, both fields
      reflect the correct value. If it's too large, the smaller field has 28 bits of
      1s, 0xfffffff, and the other field has the correct value.
      
      The AHCI driver is implemented by attaching to the generic SCSI code and
      translating on the fly between SCSI binary data structures and AHCI data
      structures. It responds to requests to execute specific SCSI commands by
      executing the equivalent AHCI commands and then crafting a response which
      matches what a SCSI disk would send.
      
      The AHCI driver now considers both fields and chooses the correct one when
      implementing both the SCSI READ CAPACITY (10) and READ CAPACITY (16) commands.
      
      Signed-off-by: default avatarGabe Black <gabeblack@chromium.org>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      19d1d41e
    • Stefan Reinauer's avatar
      ahci: cosmetics and cleanup · 4e422bce
      Stefan Reinauer authored
      
      - print the correct speed
      - print all the AHCI capability flags
      (information taken from Linux kernel driver)
      - clean up some comments
      
      For example, this might show the following string:
      AHCI 0001.0300 32 slots 6 ports 6 Gbps 0x3 impl SATA mode
      
      Signed-off-by: default avatarStefan Reinauer <reinauer@chromium.org>
      
      Commit-Ready: Stefan Reinauer <reinauer@chromium.org>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      Tested-by: default avatarStefan Reinauer <reinauer@chromium.org>
      4e422bce
    • Stefan Reinauer's avatar
      scsi: Add function and env var to report number of scsi drives · 447c031b
      Stefan Reinauer authored
      
      Add a new function to find out the number of available SCSI disks. Also
      set the 'scsidevs' environment variable after each scan.
      
      Signed-off-by: default avatarStefan Reinauer <reinauer@chromium.org>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      447c031b
    • Simon Glass's avatar
      Support setenv_ulong() and setenv_addr() for powerpc · c4fa493d
      Simon Glass authored
      
      This includes were outside an #ifdef CONFIG_PPC, but there is not reason
      to exclude powerpc from using them.
      
      Move the declaration outside the #ifdef.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      c4fa493d
    • Tom Rini's avatar
      am335x_evm: Add CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG support · 044fc14b
      Tom Rini authored
      
      We add CONFIG_ENV_VARS_UBOOT_CONFIG,
      CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG and CONFIG_BOARD_LATE_INIT to set
      the variables and then fdtfile and findfdt to make us of this.  It is
      now possible to do 'run findfdt' to have fdtfile be set to the value of
      the dtb file to load for the board we are running on.
      
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      044fc14b
    • Stephen Warren's avatar
      Add board_name to CONFIG_ENV_VARS_UBOOT_CONFIG · 418b7f3a
      Stephen Warren authored
      
      CONFIG_ENV_VARS_UBOOT_CONFIG creates environment variables indicating
      which configuration U-Boot was built for. Some U-Boot binaries run on
      multiple boards, and hence this information may not uniquley describe
      the HW that U-Boot is actually running on. Another patch introduces
      environment variable board_name to represent that. In order to avoid
      scripts having to check $board_name, use it if set, and then fall back
      to using $board, make CONFIG_ENV_VARS_UBOOT_CONFIG also set a default
      value for board_name, so that variable is always available.
      
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
      418b7f3a
  2. Oct 29, 2012
  3. Oct 28, 2012
  4. Oct 26, 2012
  5. Oct 25, 2012
  6. Oct 24, 2012
  7. Oct 23, 2012
  8. Oct 22, 2012
    • Mingkai Hu's avatar
      phylib: Enable SMSC LAN87xx PHY support · d8812bdb
      Mingkai Hu authored
      
      LAN8720 PHY is used on Freescale C2X0QDS board.
      
      Signed-off-by: default avatarMingkai Hu <Mingkai.hu@freescale.com>
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      d8812bdb
    • Haiying Wang's avatar
      poweprc/85xx: add QMan frequency info and fdt fixup. · 990e1a8c
      Haiying Wang authored
      
      Starting from QMan3.0, the QMan clock cycle needs be exposed so that the kernel
      driver can use it to calculate the shaper prescaler and rate.
      
      Signed-off-by: default avatarHaiying Wang <Haiying.Wang@freescale.com>
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      990e1a8c
    • York Sun's avatar
      powerpc/t4qds: Add T4QDS board · ee52b188
      York Sun authored
      
      The T4240QDS is a high-performance computing evaluation, development and
      test platform supporting the T4240 QorIQ Power Architecture™ processor.
      
      SERDES Connections
        32 lanes grouped into four 8-lane banks
        Two “front side” banks dedicated to Ethernet
        Two “back side” banks dedicated to other protocols
      DDR Controllers
        Three independant 64-bit DDR3 controllers
        Supports rates up to 2133 MHz data-rate
        Supports two DDR3/DDR3LP UDIMM/RDIMMs per controller
      QIXIS System Logic FPGA
      
      Each DDR controller has two DIMM slots. The first slot of each controller
      has up to 4 chip selects to support single-, dual- and quad-rank DIMMs.
      The second slot has only 2 chip selects to support single- and dual-rank
      DIMMs. At any given time, up to total 4 chip selects can be used.
      
      Detail information can be found in doc/README.t4qds
      
      Signed-off-by: default avatarYork Sun <yorksun@freescale.com>
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      Signed-off-by: default avatarPrabhakar Kushwaha <prabhakar@freescale.com>
      Signed-off-by: default avatarShengzhou Liu <Shengzhou.Liu@freescale.com>
      Signed-off-by: default avatarRoy Zang <tie-fei.zang@freescale.com>
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      ee52b188
    • Roy Zang's avatar
      fm/mEMAC: add mEMAC frame work · 111fd19e
      Roy Zang authored
      
      The multirate ethernet media access controller (mEMAC) interfaces to
      10Gbps and below Ethernet/IEEE 802.3 networks via either RGMII/RMII
      interfaces or XAUI/XFI/SGMII/QSGMII using the high-speed SerDes interface.
      
      Signed-off-by: default avatarSandeep Singh <Sandeep@freescale.com>
      Signed-off-by: default avatarPoonam Aggrwal <poonam.aggrwal@freescale.com>
      Signed-off-by: default avatarRoy Zang <tie-fei.zang@freescale.com>
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      111fd19e
    • York Sun's avatar
      powerpc/mpc85xx: Add T4240 SoC · 9e758758
      York Sun authored
      
      Add support for Freescale T4240 SoC. Feature of T4240 are
      (incomplete list):
      
      12 dual-threaded e6500 cores built on Power Architecture® technology
        Arranged as clusters of four cores sharing a 2 MB L2 cache.
        Up to 1.8 GHz at 1.0 V with 64-bit ISA support (Power Architecture
          v2.06-compliant)
        Three levels of instruction: user, supervisor, and hypervisor
      1.5 MB CoreNet Platform Cache (CPC)
      Hierarchical interconnect fabric
        CoreNet fabric supporting coherent and non-coherent transactions with
          prioritization and bandwidth allocation amongst CoreNet end-points
        1.6 Tbps coherent read bandwidth
        Queue Manager (QMan) fabric supporting packet-level queue management and
          quality of service scheduling
      Three 64-bit DDR3/3L SDRAM memory controllers with ECC and interleaving
          support
        Memory prefetch engine (PMan)
      Data Path Acceleration Architecture (DPAA) incorporating acceleration for
          the following functions:
        Packet parsing, classification, and distribution (Frame Manager 1.1)
        Queue management for scheduling, packet sequencing, and congestion
          management (Queue Manager 1.1)
        Hardware buffer management for buffer allocation and de-allocation
          (BMan 1.1)
        Cryptography acceleration (SEC 5.0) at up to 40 Gbps
        RegEx Pattern Matching Acceleration (PME 2.1) at up to 10 Gbps
        Decompression/Compression Acceleration (DCE 1.0) at up to 20 Gbps
        DPAA chip-to-chip interconnect via RapidIO Message Manager (RMAN 1.0)
      32 SerDes lanes at up to 10.3125 GHz
      Ethernet interfaces
        Up to four 10 Gbps Ethernet MACs
        Up to sixteen 1 Gbps Ethernet MACs
        Maximum configuration of 4 x 10 GE + 8 x 1 GE
      High-speed peripheral interfaces
        Four PCI Express 2.0/3.0 controllers
        Two Serial RapidIO 2.0 controllers/ports running at up to 5 GHz with
          Type 11 messaging and Type 9 data streaming support
        Interlaken look-aside interface for serial TCAM connection
      Additional peripheral interfaces
        Two serial ATA (SATA 2.0) controllers
        Two high-speed USB 2.0 controllers with integrated PHY
        Enhanced secure digital host controller (SD/MMC/eMMC)
        Enhanced serial peripheral interface (eSPI)
        Four I2C controllers
        Four 2-pin or two 4-pin UARTs
        Integrated Flash controller supporting NAND and NOR flash
      Two eight-channel DMA engines
      Support for hardware virtualization and partitioning enforcement
      QorIQ Platform's Trust Architecture 1.1
      
      Signed-off-by: default avatarYork Sun <yorksun@freescale.com>
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      Signed-off-by: default avatarRoy Zang <tie-fei.zang@freescale.com>
      Signed-off-by: default avatarPrabhakar Kushwaha <prabhakar@freescale.com>
      Signed-off-by: default avatarShengzhou Liu <Shengzhou.Liu@freescale.com>
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      9e758758
    • Timur Tabi's avatar
      powerpc/85xx: move SRIO configuration out of corenet_ds.h · 11860d88
      Timur Tabi authored
      
      The P5040 does not have SRIO, so don't put the SRIO definitions in
      corenet_ds.h.  They belong in the board-specific header files.
      
      Signed-off-by: default avatarTimur Tabi <timur@freescale.com>
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      11860d88
    • Simon Glass's avatar
      config: Enable CBFS, ext4 for coreboot · af9f881a
      Simon Glass authored
      
      Enable Coreboot and EXT4 Filesystems on the coreboot board.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      af9f881a
    • Gabe Black's avatar
      fs: Add a Coreboot Filesystem (CBFS) driver and commands · 84cd9327
      Gabe Black authored
      
      This change adds CBFS support and some commands to use it to u-boot. These
      commands are:
      
      cbfsinit - Initialize CBFS support and pull all metadata into RAM. The end of
      the ROM is an optional parameter which defaults to the standard 0xffffffff and
      can be used to support multiple CBFSes in a system. The last one set up with
      cbfsinit is the one that will be used.
      
      cbfsinfo - Print information from the CBFS header.
      
      cbfsls - Print out the size, type, and name of all the files in the current
      CBFS. Recognized types are translated into symbolic names.
      
      cbfsload - Load a file from CBFS into memory. Like the similar command for fat
      filesystems, you can optionally provide a maximum size.
      
      Support for CBFS is compiled in when the CONFIG_CMD_CBFS option is specified.
      
      The CBFS driver can also be used programmatically from within u-boot.
      
      If u-boot needs something out of CBFS very early before the heap is
      configured, it won't be able to use the normal CBFS support which caches some
      information in memory it allocates from the heap. The
      cbfs_file_find_uncached function searches a CBFS instance without touching
      the heap.
      
      Signed-off-by: default avatarGabe Black <gabeblack@google.com>
      Signed-off-by: default avatarStefan Reinauer <reinauer@chromium.org>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      84cd9327
    • Gabe Black's avatar
      ide: Add printf format string for CONFIG_SYS_64BIT_LBA option · 24a3fdd6
      Gabe Black authored
      
      The size of an LBA type changes depending on this option. We need to
      use a different printf() string in each case, so create a define for
      this.
      
      Signed-off-by: default avatarGabe Black <gabeblack@chromium.org>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      24a3fdd6
    • Marek Vasut's avatar
      common: Discard the __u_boot_cmd section · 8b493a52
      Marek Vasut authored
      
      The command declaration now uses the new LG-array method to generate
      list of commands. Thus the __u_boot_cmd section is now superseded and
      redundant and therefore can be removed. Also, remove externed symbols
      associated with this section from include/command.h .
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      8b493a52
    • Marek Vasut's avatar
      common: Convert the U-Boot commands to LG-arrays · 6c7c946c
      Marek Vasut authored
      
      This patch converts the old method of creating a list of command
      onto the new LG-arrays code. The old u_boot_cmd section is converted
      to new u_boot_list_cmd subsection and LG-array macros used as needed.
      
      Minor adjustments had to be made to the common code to work with the
      LG-array macros, mostly the fixup_cmdtable() calls are now passed the
      ll_entry_start and ll_entry_count instead of linker-generated symbols.
      
      The command.c had to be adjusted as well so it would use the newly
      introduced LG-array API instead of directly using linker-generated
      symbols.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      6c7c946c
    • Marek Vasut's avatar
      common: Implement support for linker-generated arrays · 42ebaae3
      Marek Vasut authored
      
      This patch adds support for linker-generated array. These arrays
      are a generalization of the U-Boot command declaration approach.
      
      Basically, the idea is to generate an array, where elements of the
      array are statically initialized at compile time and each element
      is declared separatelly at different place. Such array is assembled
      together into continuous piece of memory by linker and a pointer to
      it's first entry can then be retrieved via accessor.
      
      The actual implementation relies on placing any variable that is to
      represent an element of LG-array into particular subsection of the
      .u_boot_list linker section . The subsection is determined by user
      options. Once compiled, it is possible to dump all symbols placed
      in .u_boot_list section and the subsections in which they should be
      and generate appropriate bounds for each requested subsection of the
      .u_boot_list section. Each such subsection thus contains __start and
      __end entries at the begining and end respecitively.
      
      This allows for simple run-time traversing of the array, since the
      symbols are properly defined.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      42ebaae3
    • Jaehoon Chung's avatar
      mmc: dw-mmc: support DesignWare MMC Controller · 757bff49
      Jaehoon Chung authored
      
      Support the DesginWare MMC Controller.
      
      Signed-off-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
      Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
      Signed-off-by: default avatarRajeshawari Shinde <rajeshwari.s@samsung.com>
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      757bff49
    • Marek Vasut's avatar
      mmc: pxa: Flip over the remaining boards to pxa_mmc_generic · 831f849f
      Marek Vasut authored
      
      Some of the boards still used the old PXA_MMC driver instead of the
      new generic one. Use the new one instead so the old can be removed
      and the generic MMC framework can be properly used.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Andy Fleming <afleming@freescale.com>
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      831f849f
Loading