“24b3a08e71c32af51f52acccb0e00a38940e549b”上不存在“data/2.算法中阶/6.leetcode-双指针/4.142-环形链表 II/desc.html”
  1. 13 9月, 2012 3 次提交
    • Z
    • T
      powerpc/85xx: introduce support for the Freescale / iVeia P1022RDK · 34f84b5b
      Timur Tabi 提交于
      The Freescale / iVeia P1022RDK reference board is a small-factor board
      with a Freescale P1022 SOC.  It includes:
      
      1) 512 MB 64-bit DDR3-800 (max) memory
      2) 8MB SPI serial flash memory for boot loader
      3) Bootable 4-bit SD/MMC port
      4) Two 10/100/1000 Ethernet connectors
      5) One SATA port
      6) Two USB ports
      7) One PCIe x4 slot
      8) DVI video connector
      9) Audio input and output jacks, powered by a Wolfson WM8960 codec.
      
      Unlike the P1022DS, the P1022RDK does not have any localbus devices,
      presumably because of the localbus / DIU multiplexing restriction of
      the P1022 SOC.
      Signed-off-by: NTimur Tabi <timur@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      34f84b5b
    • T
      powerpc/85xx: Add support for P5040DS board · 4c30c143
      Timur Tabi 提交于
      Add support for the Freescale P5040DS Reference Board ("Superhydra"), which
      is similar to the P5020DS.  Features of the P5040 are listed below, but
      not all of these features (e.g. DPAA networking) are currently supported.
      
      Four P5040 single-threaded e5500 cores built
          Up to 2.4 GHz with 64-bit ISA support
          Three levels of instruction: user, supervisor, hypervisor
      CoreNet platform cache (CPC)
          2.0 MB configures as dual 1 MB blocks hierarchical interconnect fabric
      Two 64-bit DDR3/3L SDRAM memory controllers with ECC and interleaving
       support Up to 1600MT/s
          Memory pre-fetch engine
      DPAA incorporating acceleration for the following functions
          Packet parsing, classification, and distribution (FMAN)
          Queue management for scheduling, packet sequencing and
      	congestion management (QMAN)
          Hardware buffer management for buffer allocation and
      	de-allocation (BMAN)
          Cryptography acceleration (SEC 5.0) at up to 40 Gbps SerDes
          20 lanes at up to 5 Gbps
          Supports SGMII, XAUI, PCIe rev1.1/2.0, SATA Ethernet interfaces
          Two 10 Gbps Ethernet MACs
          Ten 1 Gbps Ethernet MACs
      High-speed peripheral interfaces
          Two PCI Express 2.0/3.0 controllers
      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)
          Two I2C controllers
          Four UARTs
          Integrated flash controller supporting NAND and NOR flash
      DMA
          Dual four channel
      Support for hardware virtualization and partitioning enforcement
          Extra privileged level for hypervisor support
      QorIQ Trust Architecture 1.1
          Secure boot, secure debug, tamper detection, volatile key storage
      Signed-off-by: NTimur Tabi <timur@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      4c30c143
  2. 27 7月, 2012 2 次提交
    • T
      powerpc/85xx: p1022ds: fix DIU/LBC switching with NAND enabled · 896c01cb
      Timur Tabi 提交于
      In order for indirect mode on the PIXIS to work properly, both chip selects
      need to be set to GPCM mode, otherwise writes to the chip select base
      addresses will not actually post to the local bus -- they'll go to the
      NAND controller instead.  Therefore, we need to set BR0 and BR1 to GPCM
      mode before switching to indirect mode.
      Signed-off-by: NTimur Tabi <timur@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      896c01cb
    • T
      powerpc/85xx: p1022ds: disable the NAND flash node if video is enabled · 6269f258
      Timur Tabi 提交于
      The Freescale P1022 has a unique pin muxing "feature" where the DIU video
      controller's video signals are muxed with 24 of the local bus address signals.
      When the DIU is enabled, the bulk of the local bus is disabled, preventing
      access to memory-mapped devices like NAND flash and the pixis FPGA.
      
      Therefore, if the DIU is going to be enabled, then memory-mapped devices on
      the localbus, like NAND flash, need to be disabled.
      
      This patch is similar to "powerpc/85xx: p1022ds: disable the NOR flash node
      if video is enabled", except that it disables the NAND flash node instead.
      This PIXIS node needs to remain enabled because it is used by platform code
      to switch into indirect mode.
      Signed-off-by: NTimur Tabi <timur@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      6269f258
  3. 11 7月, 2012 3 次提交
  4. 10 7月, 2012 5 次提交
    • P
      powerpc/85xx: Add BSC9131 RDB Support · d729b900
      Prabhakar Kushwaha 提交于
      BSC9131RDB is a Freescale reference design board for BSC9131 SoC. The
      BSC9131 is integrated SoC that targets Femto base station market. It
      combines Power Architecture e500v2 and DSP StarCore SC3850 core
      technologies with MAPLE-B2F baseband acceleration processing elements.
      
      The BSC9131 SoC includes the following function and features:
          . Power Architecture subsystem including a e500 processor with 256-Kbyte
          shared L2 cache
          . StarCore SC3850 DSP subsystem with a 512-Kbyte private L2 cache
          . The Multi Accelerator Platform Engine for Femto BaseStation Baseband
            Processing (MAPLE-B2F)
          . A multi-standard baseband algorithm accelerator for Channel
            Decoding/Encoding, Fourier Transforms, UMTS chip rate processing, LTE
            UP/DL Channel processing, and CRC algorithms
          . Consists of accelerators for Convolution, Filtering, Turbo Encoding,
            Turbo Decoding, Viterbi decoding, Chiprate processing, and Matrix
            Inversion operations
          . DDR3/3L memory interface with 32-bit data width without ECC and 16-bit
            with ECC, up to 400-MHz clock/800 MHz data rate
          . Dedicated security engine featuring trusted boot
          . DMA controller
          . OCNDMA with four bidirectional channels
          . Interfaces
          . Two triple-speed Gigabit Ethernet controllers featuring network
            acceleration including IEEE 1588. v2 hardware support and
            virtualization (eTSEC)
          . eTSEC 1 supports RGMII/RMII
          . eTSEC 2 supports RGMII
          . High-speed USB 2.0 host and device controller with ULPI interface
          . Enhanced secure digital (SD/MMC) host controller (eSDHC)
          . Antenna interface controller (AIC), supporting three industry standard
            JESD207/three custom ADI RF interfaces (two dual port and one single
            port) and three MAXIM's MaxPHY serial interfaces
          . ADI lanes support both full duplex FDD support and half duplex TDD
            support
          . Universal Subscriber Identity Module (USIM) interface that facilitates
            communication to SIM cards or Eurochip pre-paid phone cards
          . TDM with one TDM port
          . Two DUART, four eSPI, and two I2C controllers
          . Integrated Flash memory controller (IFC)
          . TDM with 256 channels
          . GPIO
          . Sixteen 32-bit timers
      
      The DSP portion of the SoC consists of DSP core (SC3850) and various
      accelerators pertaining to DSP operations.
      
       BSC9131RDB Overview
       ----------------------
          BSC9131 SoC
          1Gbyte DDR3 (on board DDR)
          128Mbyte 2K page size NAND Flash
          256 Kbit M24256 I2C EEPROM
          128 Mbit SPI Flash memory
          USB-ULPI
          eTSEC1: Connected to RGMII PHY
          eTSEC2: Connected to RGMII PHY
          DUART interface: supports one UARTs up to 115200 bps for console display
      
       Linux runs on e500v2 core and access some DSP peripherals like AIC
      Signed-off-by: NRamneek Mehresh <ramneek.mehresh@freescale.com>
      Signed-off-by: NPriyanka Jain <Priyanka.Jain@freescale.com>
      Signed-off-by: NAkhil Goyal <Akhil.Goyal@freescale.com>
      Signed-off-by: NPoonam Aggrwal <poonam.aggrwal@freescale.com>
      Signed-off-by: NRajan Srivastava <rajan.srivastava@freescale.com>
      Signed-off-by: NPrabhakar Kushwaha <prabhakar@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      d729b900
    • T
      Revert "powerpc/p3060qds: Add support for P3060QDS board" · ab2aba47
      Timur Tabi 提交于
      This reverts commit 96cc017c.
      
      The P3060 was cancelled before it went into production, so there's no point
      in supporting it.
      Signed-off-by: NTimur Tabi <timur@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      ab2aba47
    • T
      powerpc/85xx: use the BRx registers to enable indirect mode on the P1022DS · 6bd825f0
      Timur Tabi 提交于
      In order to enable the DIU video controller on the P1022DS, the FPGA needs
      to be switched to "indirect mode", where the localbus is disabled and
      the FPGA is accessed via writes to localbus chip select signals CS0 and CS1.
      
      To obtain the address of CS0 and CS1, the platform driver uses an "indirect
      pixis mode" device tree node.  This node assumes that the localbus 'ranges'
      property is sorted in chip-select order.  That is, reg value 0 maps to
      CS0, reg value 1 maps to CS1, etc.  This is how the 'ranges' property is
      supposed to be arranged.
      
      Unfortunately, the 'ranges' property is often mis-arranged, and not just on
      the P1022DS.  Linux normally does not care, since it does not program the
      localbus.  But the indirect-mode code on the P1022DS does care.
      
      The "proper" fix is to have U-Boot fix the 'ranges' property, but this would
      be too cumbersome.  The names and 'reg' properties of all the localbus
      devices would also need to be updated, and determining which localbus device
      maps to which chip select is board-specific.
      
      Instead, we determine the CS0/CS1 base addresses the same way that U-boot
      does -- by reading the BRx registers directly and mapping them to physical
      addresses.  This code is simpler and more reliable, and it does not require
      a U-boot or device tree change.
      
      Since the indirect pixis device tree node is no longer needed, the node is
      deleted from the DTS.
      Signed-off-by: NTimur Tabi <timur@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      6bd825f0
    • P
      powerpc: remove Wind River SBC8560 support · b048b4e1
      Paul Gortmaker 提交于
      This reference board dates back to 2004, and is largely a legacy
      EOL product.  The MPC8560 is a pre e500v2 CPU.  The SBC8548 is
      a more modern, better e500v2 target for people to use as a
      reference board with today's kernels, should they require one.
      
      Removing support for it will also allow us to remove some
      sbc8560 specific quirk handling in 8250 UART code, and some
      MTD mapping support.
      
      Cc: David Woodhouse <David.Woodhouse@intel.com>
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      b048b4e1
    • T
      powerpc/85xx: Add P1024rdb board support · 063e94bb
      Tang Yuantian 提交于
      The p1024rdb has the similar feature as the p1020rdb. Therefore, p1024rdb use
      the same platform file as the p1/p2 rdb board.
      Overview of P2020RDB platform
      	- DDR3 1G
      	- NOR flash 16M
      	- 3 Ethernet interfaces
      	- NAND Flash 32M
      	- SPI EEPROM 16M
      	- SD/MMC
      	- 2 USB ports
      	- 4 TDM ports
      Signed-off-by: NJin Qing <b24347@freescale.com>
      Signed-off-by: NLi Yang <leoli@freescale.com>
      Signed-off-by: NTang Yuantian <Yuantian.Tang@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      063e94bb
  5. 03 7月, 2012 1 次提交
  6. 17 6月, 2012 1 次提交
  7. 20 4月, 2012 1 次提交
    • T
      powerpc/85xx: don't call of_platform_bus_probe() twice · 8a95bc8d
      Timur Tabi 提交于
      Commit 46d026ac ("powerpc/85xx: consolidate of_platform_bus_probe calls")
      replaced platform-specific of_device_id tables with a single function
      that probes the most of the busses in 85xx device trees.  If a specific
      platform needed additional busses probed, then it could call
      of_platform_bus_probe() again.  Typically, the additional platform-specific
      busses are children of existing busses that have already been probed.
      of_platform_bus_probe() does not handle those child busses automatically.
      
      Unfortunately, this doesn't actually work.  The second (platform-specific)
      call to of_platform_bus_probe() never finds any of the busses it's asked
      to find.
      
      To remedy this, the platform-specific of_device_id tables are eliminated,
      and their entries are merged into mpc85xx_common_ids[], so that all busses
      are probed at once.
      Signed-off-by: NTimur Tabi <timur@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      8a95bc8d
  8. 29 3月, 2012 2 次提交
  9. 17 3月, 2012 10 次提交
  10. 16 3月, 2012 7 次提交
  11. 23 2月, 2012 2 次提交
    • K
      powerpc/mpic: Remove duplicate MPIC_WANTS_RESET flag · e55d7f73
      Kyle Moffett 提交于
      There are two separate flags controlling whether or not the MPIC is
      reset during initialization, which is completely unnecessary, and only
      one of them can be specified in the device tree.
      
      Also, most platforms in-tree right now do actually want to reset the
      MPIC during initialization anyways, which means lots of duplicate code
      passing the MPIC_WANTS_RESET flag.
      
      Fix all of the callers which currently do not pass the MPIC_WANTS_RESET
      flag to pass the MPIC_NO_RESET flag, then remove the MPIC_WANTS_RESET
      flag and make the code reset the MPIC by default.
      Signed-off-by: NKyle Moffett <Kyle.D.Moffett@boeing.com>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      e55d7f73
    • K
      powerpc/mpic: Remove MPIC_BROKEN_FRR_NIRQS and duplicate irq_count · 5019609f
      Kyle Moffett 提交于
      The mpic->irq_count variable is only used as a software error-checking
      limit to determine whether or not an IRQ number is valid.  In board code
      which does not manually specify an IRQ count to mpic_alloc(), i.e. 0, it
      is automatically detected from the number of ISUs and the ISU size.
      
      In practice, all hardware ends up with irq_count == num_sources, so all
      of the runtime checks on mpic->irq_count should just check the value of
      mpic->num_sources instead.
      
      When platform hardware does not correctly report the number of IRQs,
      which only happens on the MPC85xx/MPC86xx, the MPIC_BROKEN_FRR_NIRQS
      flag is used to override the detected value of num_sources with the
      manual irq_count parameter.  Since there's no need to manually specify
      the number of IRQs except in this case, the extra flag can be eliminated
      and the test changed to "irq_count != 0".
      Signed-off-by: NKyle Moffett <Kyle.D.Moffett@boeing.com>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      5019609f
  12. 16 2月, 2012 2 次提交
    • G
      irq_domain/powerpc: constify irq_domain_ops · 9f70b8eb
      Grant Likely 提交于
      Make all the irq_domain_ops structures in powerpc 'static const'
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Milton Miller <miltonm@bga.com>
      Tested-by: NOlof Johansson <olof@lixom.net>
      9f70b8eb
    • G
      irq_domain: Replace irq_alloc_host() with revmap-specific initializers · a8db8cf0
      Grant Likely 提交于
      Each revmap type has different arguments for setting up the revmap.
      This patch splits up the generator functions so that each revmap type
      can do its own setup and the user doesn't need to keep track of how
      each revmap type handles the arguments.
      
      This patch also adds a host_data argument to the generators.  There are
      cases where the host_data pointer will be needed before the function returns.
      ie. the legacy map calls the .map callback for each irq before returning.
      
      v2: - Add void *host_data argument to irq_domain_add_*() functions
          - fixed failure to compile
          - Moved IRQ_DOMAIN_MAP_* defines into irqdomain.c
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Cc: Rob Herring <rob.herring@calxeda.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Milton Miller <miltonm@bga.com>
      Tested-by: NOlof Johansson <olof@lixom.net>
      a8db8cf0
  13. 15 2月, 2012 1 次提交
    • G
      irq_domain/powerpc: Use common irq_domain structure instead of irq_host · bae1d8f1
      Grant Likely 提交于
      This patch drops the powerpc-specific irq_host structures and uses the common
      irq_domain strucutres defined in linux/irqdomain.h.  It also fixes all
      the users to use the new structure names.
      
      Renaming irq_host to irq_domain has been discussed for a long time, and this
      patch is a step in the process of generalizing the powerpc virq code to be
      usable by all architecture.
      
      An astute reader will notice that this patch actually removes the irq_host
      structure instead of renaming it.  This is because the irq_domain structure
      already exists in include/linux/irqdomain.h and has the needed data members.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Milton Miller <miltonm@bga.com>
      Tested-by: NOlof Johansson <olof@lixom.net>
      bae1d8f1