1. 19 Sep, 2014 3 commits
    • Scott Wood's avatar
      Revert "powerpc/fsl_msi: spread msi ints across different MSIRs" · cb0446c1
      Scott Wood authored
      This reverts commit c822e737.
      
      This commit conflicted with a bitmap allocator change that partially
      accomplishes the same thing, but which does so more correctly.  Revert
      this one until it can be respun on top of the correct change.
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      cb0446c1
    • Scott Wood's avatar
      powerpc/mm: Use common paging_init() for NUMA · 6db35ad2
      Scott Wood authored
      Commit 1c98025c "powerpc: Dynamic DMA
      zone limits" updated how zones are created in paging_init(), but missed
      the NUMA version of paging_init().  This was noticed via a linker
      error, since dma_pfn_limit_to_zone() was, like the non-NUMA
      paging_init(), limited by #ifndef CONFIG_NEED_MULTIPLE_NODES.
      
      It turns out that the NUMA paging_init() was not actually doing
      anything different from the standard paging_init(), other than a couple
      debug prints, a couple 32-bit-only ifdef sections, and a call to
      mark_nonram_nosave().  It's not clear whether mark_nonram_nosave() is
      inherently wrong to do for NUMA, or just not useful on targets that
      have NUMA, but for now I'm preserving the existing behavior.
      
      Fixes: 1c98025c "powerpc: Dynamic DMA zone limits"
      Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      6db35ad2
    • Scott Wood's avatar
      powerpc/85xx/defconfig: Remove duplicate CONFIG_RTC_DRV_DS1307 · 94105a76
      Scott Wood authored
      Commit a95e8c28 "powerpc/defconfig: update RTC support" duplicated
      the CONFIG_RTC_DRV_DS1307 symbol in mpc85xx_defconfig and
      mpc85xx_smp_defconfig, resulting in this:
      
      arch/powerpc/configs/mpc85xx_smp_defconfig:217:warning: override: reassigning to symbol RTC_DRV_DS1307
      
      Fixes: a95e8c28 "powerpc/defconfig: update RTC support"
      Cc: Shengzhou Liu <Shengzhou.Liu@freescale.com>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      94105a76
  2. 16 Sep, 2014 1 commit
  3. 09 Sep, 2014 3 commits
    • Tudor Laurentiu's avatar
      powerpc/fsl-booke64: add missing virtualization options in defconfig · a7d6e223
      Tudor Laurentiu authored
      The 32-bit defconfig version has these enabled
      for years so make the 64-bit defconfig have them too.
      This patch only adds CONFIG_VIRT_DRIVERS,
      CONFIG_FSL_HV_MANAGER and CONFIG_PPC_EPAPR_HV_BYTECHAN
      other changes being "make savedefconfig" artifacts.
      Signed-off-by: default avatarLaurentiu Tudor <Laurentiu.Tudor@freescale.com>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      a7d6e223
    • Priyanka Jain's avatar
      powerpc/fsl-booke: Add initial T1042RDB_PI board support · 667680f6
      Priyanka Jain authored
      T1042RDB_PI is Freescale Reference Design Board supporting the T1042
      QorIQ Power Architecture processor. T1042 is a reduced personality
      of T1040 SoC without Integrated 8-port Gigabit. The board is designed
      with low power features targeted for Printing Image Market.
      
      T1042RDB_PI is  similar to T1040RDB board with few differences like
      it has video interface, supports T1042 personality only
      
      T1042RDB_PI board Overview
      -----------------------
      - SERDES Connections, 8 lanes supporting:
          	- PCI
          	- SATA 2.0
      - DDR Controller
          	- Supports rates of up to 1600 MHz data-rate
          	- Supports one DDR3LP UDIMM
      -IFC/Local Bus
          	- NAND flash: 1GB 8-bit NAND flash
          	- NOR: 128MB 16-bit NOR Flash
      - Ethernet
          	- Two on-board RGMII 10/100/1G ethernet ports.
          	- PHY #0 remains powered up during deep-sleep
      - CPLD
      - Clocks
          	- System and DDR clock (SYSCLK, “DDRCLK”)
          	- SERDES clocks
      - Power Supplies
      - USB
          	- Supports two USB 2.0 ports with integrated PHYs
          	- Two type A ports with 5V@1.5A per port.
      - SDHC
          	- SDHC/SDXC connector
      - SPI
          	- On-board 64MB SPI flash
      - I2C
          	- Device connected: EEPROM, thermal monitor, VID controller, RTC
      - Other IO
          	- Two Serial ports
          	- ProfiBus port
      
      Add support for T1042RDB_PI board:
          -add device tree
          -Add entry in corenet_generic.c, as it is similar to other corenet platforms
      Signed-off-by: default avatarPoonam Aggrwal <poonam.aggrwal@freescale.com>
      Signed-off-by: default avatarPrabhakar Kushwaha <prabhakar@freescale.com>
      Signed-off-by: default avatarPriyanka Jain <Priyanka.Jain@freescale.com>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      667680f6
    • Priyanka Jain's avatar
      powerpc/fsl-booke: Add initial T1040/T1042 RDB board support · 0babcd1c
      Priyanka Jain authored
      T1040/T1042RDB is Freescale Reference Design Board.
      The board can support both T1040/T1042 QorIQ Power Architecture processor.
      
      T1040/T1042RDB board Overview
      -----------------------
      - SERDES Connections, 8 lanes supporting:
      	- PCI
      	- SGMII
          	- QSGMII
          	- SATA 2.0
      - DDR Controller
          	- Supports rates of up to 1600 MHz data-rate
          	- Supports one DDR3LP UDIMM
      -IFC/Local Bus
          	- NAND flash: 1GB 8-bit NAND flash
          	- NOR: 128MB 16-bit NOR Flash
      - Ethernet
          	- Two on-board RGMII 10/100/1G ethernet ports.
          	- PHY #0 remains powered up during deep-sleep
      - CPLD
      - Clocks
          	- System and DDR clock (SYSCLK, “DDRCLK”)
          	- SERDES clocks
      - Power Supplies
      - USB
          	- Supports two USB 2.0 ports with integrated PHYs
          	- Two type A ports with 5V@1.5A per port.
      - SDHC
          	- SDHC/SDXC connector
      - SPI
          	- On-board 64MB SPI flash
      - I2C
          	- Devices connected: EEPROM, thermal monitor, VID controller
      - Other IO
          	- Two Serial ports
          	- ProfiBus port
      
      Add support for T1040/T1042 RDB board:
          -add device tree
          -add entry in Kconfig to build
          -Add entry in corenet_generic.c, as it is similar to other corenet platforms
      Signed-off-by: default avatarPriyanka Jain <Priyanka.Jain@freescale.com>
      Signed-off-by: default avatarPoonam Aggrwal <poonam.aggrwal@freescale.com>
      Signed-off-by: default avatarPrabhakar Kushwaha <prabhakar@freescale.com>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      0babcd1c
  4. 05 Sep, 2014 7 commits
  5. 04 Sep, 2014 4 commits
    • Tudor Laurentiu's avatar
      powerpc/fsl_msi: spread msi ints across different MSIRs · c822e737
      Tudor Laurentiu authored
      Allocate msis such that each time a new interrupt is requested,
      the SRS (MSIR register select) to be used is allocated in a
      round-robin fashion.
      The end result is that the msi interrupts will be spread across
      distinct MSIRs with the main benefit that now users can set
      affinity to each msi int through the mpic irq backing up the
      MSIR register.
      This is achieved with the help of a newly introduced msi bitmap
      api that allows specifying the starting point when searching
      for a free msi interrupt.
      Signed-off-by: default avatarLaurentiu Tudor <Laurentiu.Tudor@freescale.com>
      Cc: Scott Wood <scottwood@freescale.com>
      Cc: Mihai Caraman <mihai.caraman@freescale.com>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      c822e737
    • Tudor Laurentiu's avatar
      powerpc/fsl_msi: show more meaningful names in /proc/interrupts · de99f53d
      Tudor Laurentiu authored
      Rename the irq controller associated with a MSI
      interrupt to fsl-msi-<V>, where <V> is the virq
      of the cascade irq backing up this MSI interrupt.
      This way, one can set the affinity of a MSI
      through the cascade irq associated with said MSI
      interrupt.
      Given this example /proc/interrupts snippet:
      
                 CPU0       CPU1       CPU2       CPU3
       16:          0          0          0          0   OpenPIC    16 Edge      mpic-error-int
       17:          0          4          0          0  fsl-msi-224   0 Edge      eth0-rx-0
       18:          0          5          0          0  fsl-msi-225   1 Edge      eth0-tx-0
       19:          0          2          0          0  fsl-msi-226   2 Edge      eth0
       [...]
      224:          0         11          0          0   OpenPIC   224 Edge      fsl-msi-cascade
      225:          0          0          0          0   OpenPIC   225 Edge      fsl-msi-cascade
      226:          0          0          0          0   OpenPIC   226 Edge      fsl-msi-cascade
       [...]
      
      To change the affinity of MSI interrupt 17
      (having the irq controller named "fsl-msi-224")
      instead of writing /proc/irq/17/smp_affinity, use
      the associated MSI cascade irq, in this case,
      interrupt 224, e.g.:
      
         echo 6 > /proc/irq/224/smp_affinity
      
      Note that a MSI cascade irq covers several MSI
      interrupts, so changing the affinity on the
      cascade will impact all of the associated MSI
      interrupts.
      Signed-off-by: default avatarLaurentiu Tudor <Laurentiu.Tudor@freescale.com>
      Cc: Scott Wood <scottwood@freescale.com>
      Cc: Mihai Caraman <mihai.caraman@freescale.com>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      de99f53d
    • Tudor Laurentiu's avatar
      powerpc/fsl_msi: change the irq handler from chained to normal · 543c043c
      Tudor Laurentiu authored
      As we do for other fsl-mpic related cascaded irqchips
      (e.g. error ints, mpic timers), use a normal irq handler
      for msi irqs too.
      This brings some advantages such as mask/unmask/ack/eoi
      and irq state taken care behind the scenes, kstats
      updates a.s.o plus access to features provided by mpic,
      such as affinity.
      Signed-off-by: default avatarLaurentiu Tudor <Laurentiu.Tudor@freescale.com>
      Cc: Scott Wood <scottwood@freescale.com>
      Cc: Mihai Caraman <mihai.caraman@freescale.com>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      543c043c
    • Tudor Laurentiu's avatar
      powerpc/fsl_msi: reorganize structs to improve clarity and flexibility · 83495231
      Tudor Laurentiu authored
      Store cascade_data in an array inside the driver
      data for later use.
      Get rid of the msi_virq array since now we can
      encapsulate the virqs in the cascade_data
      directly and access them through the array
      mentioned earlier.
      Signed-off-by: default avatarLaurentiu Tudor <Laurentiu.Tudor@freescale.com>
      Cc: Scott Wood <scottwood@freescale.com>
      Cc: Mihai Caraman <mihai.caraman@freescale.com>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      83495231
  6. 03 Sep, 2014 9 commits
  7. 31 Jul, 2014 2 commits
    • Shengzhou Liu's avatar
      powerpc/t2080rdb: Add T2080RDB board support · 78eb9094
      Shengzhou Liu authored
      T2080PCIe-RDB is a Freescale Reference Design Board that hosts T2080 SoC.
      The board feature overview:
      Processor:
       - T2080 SoC integrating four 64-bit dual-threads e6500 cores up to 1.8GHz
      DDR Memory:
       - Single memory controller capable of supporting DDR3 and DDR3-LP devices
       - 72bit 4GB DDR3-LP SODIMM in slot
      Ethernet interfaces:
       - Two 1Gbps RGMII ports on-board
       - Two 10Gbps SFP+ ports on-board
       - Two 10Gbps Base-T ports on-board
      Accelerator:
       - DPAA components consist of FMan, BMan, QMan, PME, DCE and SEC
      IFC/Local Bus
       - NOR:  128MB 16-bit NOR flash
       - NAND: 1GB 8-bit NAND flash
       - CPLD: for system controlling with programable header on-board
      eSPI:
       - 64MB N25Q512 SPI flash
      USB:
       - Two USB2.0 ports with internal PHY (both Type-A)
      PCIe:
       - One PCIe x4 goldfinger(support SR-IOV)
       - One PCIe x4 slot
       - One PCIe x2 end-point device (C293 crypto co-processor)
      SATA:
       - Two SATA 2.0 ports on-board
      SDHC:
       - support a MicroSD/TF card on-board
      I2C:
       - Four I2C controllers.
      UART:
       - Dual 4-pins UART serial ports
      Signed-off-by: default avatarShengzhou Liu <Shengzhou.Liu@freescale.com>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      78eb9094
    • Priyanka Jain's avatar
      powerpc/85xx: Add binding for CPLD · dd2b04fc
      Priyanka Jain authored
      Some Freescale boards like T1040RDB have an on board CPLD connected on
      the IFC bus. Add binding for cpld in board.txt file
      Signed-off-by: default avatarPriyanka Jain <Priyanka.Jain@freescale.com>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      dd2b04fc
  8. 30 Jul, 2014 6 commits
  9. 02 Jul, 2014 3 commits
    • Laurentiu TUDOR's avatar
      powerpc/85xx: drop hypervisor specific board compatibles · cd115477
      Laurentiu TUDOR authored
      They're almost a duplicate of the boards array
      and we can build them at run-time.
      Signed-off-by: default avatarLaurentiu Tudor <Laurentiu.Tudor@freescale.com>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      cd115477
    • Shengzhou Liu's avatar
      powerpc/fsl-booke: Add initial T208x QDS board support · 4c18be2b
      Shengzhou Liu authored
      Add support for Freescale T2080/T2081 QDS Development System Board.
      
      The T2080QDS Development System is a high-performance computing,
      evaluation, and development platform that supports T2080 QorIQ
      Power Architecture processor, with following major features:
      
      T2080QDS feature overview:
      Processor:
       - T2080 SoC integrating four 64-bit dual-threads e6500 cores up to 1.8GHz
      Memory:
       - Single memory controller capable of supporting DDR3 and DDR3-LP
       - Dual DIMM slots up 2133MT/s with ECC
      Ethernet interfaces:
       - Two 1Gbps RGMII on-board ports
       - Four 10Gbps XFI on-board cages
       - 1Gbps/2.5Gbps SGMII Riser card
       - 10Gbps XAUI Riser card
      Accelerator:
       - DPAA components consist of FMan, BMan, QMan, PME, DCE and SEC
      SerDes:
       - 16 lanes up to 10.3125GHz
       - Supports Aurora debug, PEX, SATA, SGMII, sRIO, HiGig, XFI and XAUI
      IFC:
       - 128MB NOR Flash, 512MB NAND Flash, PromJet debug port and FPGA
      eSPI:
       - Three SPI flash (16MB N25Q128A + 8MB EN25S64 + 512KB SST25WF040)
      USB:
       - Two USB2.0 ports with internal PHY (one Type-A + one micro Type-AB)
      PCIE:
       - Four PCI Express controllers (two PCIe 2.0 and two PCIe 3.0, SR-IOV)
      SATA:
       - Two SATA 2.0 ports on-board
      SRIO:
       - Two Serial RapidIO 2.0 ports up to 5 GHz
      eSDHC:
       - Supports SD/MMC/eMMC Card
      DMA:
       - Three 8-channels DMA controllers
      I2C:
       - Four I2C controllers.
      UART:
       - Dual 4-pins UART serial ports
      System Logic:
       - QIXIS-II FPGA system controll
      
      T2081QDS board shares the same PCB with T1040QDS with some differences.
      Signed-off-by: default avatarShengzhou Liu <Shengzhou.Liu@freescale.com>
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      4c18be2b
    • Shengzhou Liu's avatar
      powerpc/fsl-booke: Add support for T2080/T2081 SoC · 1d8de8fc
      Shengzhou Liu authored
      The T2080 QorIQ multicore processor combines four dual-threaded e6500 Power
      Architecture processor cores with high-performance datapath acceleration
      logic and network and peripheral bus interfaces required for networking,
      telecom/datacom, wireless infrastructure, and mil/aerospace applications.
      
      The T2080 SoC includes the following function and features:
      - Four dual-threaded 64-bit Power architecture e6500 cores, up to 1.8GHz
      - 2MB L2 cache and 512KB CoreNet platform cache (CPC)
      - Hierarchical interconnect fabric
      - One 32-/64-bit DDR3/3L SDRAM memory controllers with ECC and interleaving
      - Data Path Acceleration Architecture (DPAA) incorporating acceleration
      - 16 SerDes lanes up to 10.3125 GHz
      - 8 Ethernet interfaces (multiple 1G/2.5G/10G MACs)
      - High-speed peripheral interfaces
        - Four PCI Express controllers (two PCIe 2.0 and two PCIe 3.0)
        - Two Serial RapidIO 2.0 controllers/ports running at up to 5 GHz
      - 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/SDXC/eMMC)
        - Enhanced serial peripheral interface (eSPI)
        - Four I2C controllers
        - Four 2-pin UARTs or two 4-pin UARTs
        - Integrated Flash Controller supporting NAND and NOR flash
      - Three eight-channel DMA engines
      - Support for hardware virtualization and partitioning enforcement
      - QorIQ Platform's Trust Architecture 2.0
      
      T2081 is a reduced personality of T2080 with following difference:
      Feature               T2080 T2081
      1G Ethernet numbers:  8     6
      10G Ethernet numbers: 4     2
      SerDes lanes:         16    8
      Serial RapidIO,RMan:  2     no
      SATA Controller:      2     no
      Aurora:               yes   no
      SoC Package:          896-pins 780-pins
      Signed-off-by: default avatarShengzhou Liu <Shengzhou.Liu@freescale.com>
      [scottwood@freescale.com: added fsl,qoriq-pci-v3.0 for U-Boot compat]
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      1d8de8fc
  10. 25 Jun, 2014 2 commits
    • Scott Wood's avatar
      powerpc/8xx: Remove empty asm/mpc8xx.h · 087dfae3
      Scott Wood authored
      m8xx_pcmcia_ops was the only thing in this file (other than a comment
      that describes a usage that doesn't match the file's contents); now
      that m8xx_pcmcia_ops is gone, remove the empty file.
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      Cc: Pantelis Antoniou <pantelis.antoniou@gmail.com>
      Cc: Vitaly Bordug <vitb@kernel.crashing.org>
      Cc: netdev@vger.kernel.org
      087dfae3
    • Scott Wood's avatar
      pcmcia: Remove m8xx_pcmcia driver · 39eb56da
      Scott Wood authored
      This driver doesn't build, and apparently has not built since
      arch/ppc was removed in 2008 (when mk_int_int_mask was removed
      from asm/irq.h, among other build errors).
      
      A few weeks ago I asked whether anyone was actively maintaining
      this code, and got no positive response:
      http://patchwork.ozlabs.org/patch/352082/
      
      So, let's remove it.
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      Cc: Vitaly Bordug <vitb@kernel.crashing.org>
      Cc: linux-pcmcia@lists.infradead.org
      Cc: Paul Bolle <pebolle@tiscali.nl>
      39eb56da