public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v4 0/23] ARM: tegra: Add PCIe support
@ 2014-12-10  5:25 Simon Glass
  2014-12-10  5:25 ` [U-Boot] [PATCH v4 01/23] power: Add AMS AS3722 PMIC support Simon Glass
                   ` (23 more replies)
  0 siblings, 24 replies; 30+ messages in thread
From: Simon Glass @ 2014-12-10  5:25 UTC (permalink / raw)
  To: u-boot

From: Thierry Reding <treding@nvidia.com>

(Commit message updated by Simon Glass <sjg@chromium.org> who is sending
this series originally created by Thierry)

This series adds PCIe support for Tegra20, Tegra30 and Tegra124. The size is
mostly due to the large number of infrastructure that's added (Tegra-
specific drivers required by the PCIe driver). In this version I've included
all patches that were previously split into three separate series. Spreading
them over multiple series is probably not worth it since there might be some
dependencies between them and only the end result gives a completely working
setup.

Some patches have already been applied to this series.

Patch 1 implements a driver for the AS3722 PMIC used on the Venice2 and
Jetson TK1 boards.

Patches 2-7 are preparatory work for the Tegra PCIe controller. They add
missing clock driver functionality as well as drivers for the Tegra powergat
and XUSB pad controller blocks.

Patch 8 adds the PCIe controller driver for Tegra20, Tegra30 and Tegra124.

Device tree nodes and configurations options to enable PCIe on the TrimSlice
(Tegra20), Beaver, Cardhu (Tegra30) and Jetson TK1 (Tegra124) boards are
added in patches 9-17.

Patch 18 implements non-cached memory support that will be used in the
last batch of patches to implement more reliable packet transfers in the
r8169 driver. Patch 19 enables non-cached memory support on Tegra.

(Note from Simon: These patches may have already been applied in the ARM
tree, but I can't see them there).

Finally, patches 20-23 implement non-cached memory support and various fixes
in the r8169 driver and add support for the revision of the NIC found on the
Jetson TK1.

The above boards all have an ethernet NIC connected to PCIe, which is what
I tested with.

Note from Simon: I have:

- rebased this on top of the I2C driver model series
- dropped the I2C framework patches
- adjust the PMIC driver and code that calls it to use driver mode
- tested the I2C changes on Jetson-TK1

Changes in v4:
- Use const unsigned for bus and address
- Insert missing word 'to' in a comment
- Fix typo in commit message

Changes in v3:
- Use driver model for the PMIC
- Use driver model to access the PMIC
- Use driver model to access the PMIC
- Avoid build error with noncached_init() when the dcache is disabled
- Remove cache-line size warning if dcache is disabled

Thierry Reding (23):
  power: Add AMS AS3722 PMIC support
  ARM: tegra: Implement tegra_plle_enable()
  ARM: tegra: Provide PCIEXCLK reset ID
  ARM: tegra: Implement powergate support
  ARM: tegra: Implement XUSB pad controller
  ARM: tegra: Add XUSB pad controller on Tegra124
  ARM: tegra: Enable XUSB pad controller on Jetson TK1
  pci: tegra: Add Tegra PCIe driver
  ARM: tegra: Add Tegra20 PCIe device tree node
  ARM: tegra: Enable PCIe on TrimSlice
  ARM: tegra: Add GIC for Tegra30
  ARM: tegra: Add Tegra30 PCIe device tree node
  ARM: tegra: Enable PCIe on Cardhu
  ARM: tegra: Enable PCIe on Beaver
  ARM: tegra: Add GIC for Tegra124
  ARM: tegra: Add Tegra124 PCIe device tree node
  ARM: tegra: Enable PCIe on Jetson TK1
  ARM: Implement non-cached memory support
  ARM: tegra: Enable non-cached memory
  net: rtl8169: Honor CONFIG_SYS_RX_ETH_BUFFER
  net: rtl8169: Properly align buffers
  net: rtl8169: Use non-cached memory if available
  net: rtl8169: Add support for RTL-8168/8111g

 README                                           |   19 +
 arch/arm/cpu/tegra-common/Makefile               |    2 +
 arch/arm/cpu/tegra-common/powergate.c            |  102 ++
 arch/arm/cpu/tegra-common/xusb-padctl.c          |   39 +
 arch/arm/cpu/tegra124-common/Makefile            |    1 +
 arch/arm/cpu/tegra124-common/clock.c             |  109 +++
 arch/arm/cpu/tegra124-common/xusb-padctl.c       |  716 ++++++++++++++
 arch/arm/cpu/tegra20-common/clock.c              |  141 ++-
 arch/arm/cpu/tegra30-common/clock.c              |  155 +++
 arch/arm/dts/tegra124-jetson-tk1.dts             |  373 +++++++
 arch/arm/dts/tegra124.dtsi                       |   89 ++
 arch/arm/dts/tegra20-trimslice.dts               |   69 ++
 arch/arm/dts/tegra20.dtsi                        |   59 ++
 arch/arm/dts/tegra30-beaver.dts                  |  245 +++++
 arch/arm/dts/tegra30-cardhu.dts                  |  362 +++++++
 arch/arm/dts/tegra30.dtsi                        |   83 ++
 arch/arm/include/asm/arch-tegra/powergate.h      |   38 +
 arch/arm/include/asm/arch-tegra/xusb-padctl.h    |   24 +
 arch/arm/include/asm/arch-tegra114/powergate.h   |    6 +
 arch/arm/include/asm/arch-tegra124/clock.h       |    2 +
 arch/arm/include/asm/arch-tegra124/powergate.h   |    6 +
 arch/arm/include/asm/arch-tegra20/clock-tables.h |    2 +-
 arch/arm/include/asm/arch-tegra20/clock.h        |    2 +
 arch/arm/include/asm/arch-tegra20/powergate.h    |    6 +
 arch/arm/include/asm/arch-tegra30/clock.h        |    2 +
 arch/arm/include/asm/arch-tegra30/powergate.h    |    6 +
 arch/arm/include/asm/system.h                    |    5 +
 arch/arm/lib/cache.c                             |   44 +
 board/compulab/trimslice/trimslice.c             |    8 +
 board/nvidia/cardhu/cardhu.c                     |   52 +
 board/nvidia/common/board.c                      |    3 +
 board/nvidia/jetson-tk1/jetson-tk1.c             |   52 +
 common/board_r.c                                 |   11 +
 drivers/net/rtl8169.c                            |  127 ++-
 drivers/pci/Makefile                             |    1 +
 drivers/pci/pci_tegra.c                          | 1143 ++++++++++++++++++++++
 drivers/power/Makefile                           |    1 +
 drivers/power/as3722.c                           |  264 +++++
 include/configs/beaver.h                         |   10 +
 include/configs/cardhu.h                         |   10 +
 include/configs/jetson-tk1.h                     |   13 +
 include/configs/tegra-common.h                   |    2 +
 include/configs/trimslice.h                      |   10 +
 include/dt-bindings/clock/tegra20-car.h          |    2 +-
 include/dt-bindings/clock/tegra30-car.h          |    2 +-
 include/dt-bindings/pinctrl/pinctrl-tegra-xusb.h |    7 +
 include/fdtdec.h                                 |    6 +
 include/power/as3722.h                           |   27 +
 lib/fdtdec.c                                     |    5 +
 49 files changed, 4424 insertions(+), 39 deletions(-)
 create mode 100644 arch/arm/cpu/tegra-common/powergate.c
 create mode 100644 arch/arm/cpu/tegra-common/xusb-padctl.c
 create mode 100644 arch/arm/cpu/tegra124-common/xusb-padctl.c
 create mode 100644 arch/arm/include/asm/arch-tegra/powergate.h
 create mode 100644 arch/arm/include/asm/arch-tegra/xusb-padctl.h
 create mode 100644 arch/arm/include/asm/arch-tegra114/powergate.h
 create mode 100644 arch/arm/include/asm/arch-tegra124/powergate.h
 create mode 100644 arch/arm/include/asm/arch-tegra20/powergate.h
 create mode 100644 arch/arm/include/asm/arch-tegra30/powergate.h
 create mode 100644 drivers/pci/pci_tegra.c
 create mode 100644 drivers/power/as3722.c
 create mode 100644 include/dt-bindings/pinctrl/pinctrl-tegra-xusb.h
 create mode 100644 include/power/as3722.h

-- 
2.2.0.rc0.207.ga3a616c

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2014-12-29 19:39 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-10  5:25 [U-Boot] [PATCH v4 0/23] ARM: tegra: Add PCIe support Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 01/23] power: Add AMS AS3722 PMIC support Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 02/23] ARM: tegra: Implement tegra_plle_enable() Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 03/23] ARM: tegra: Provide PCIEXCLK reset ID Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 04/23] ARM: tegra: Implement powergate support Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 05/23] ARM: tegra: Implement XUSB pad controller Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 06/23] ARM: tegra: Add XUSB pad controller on Tegra124 Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 07/23] ARM: tegra: Enable XUSB pad controller on Jetson TK1 Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 08/23] pci: tegra: Add Tegra PCIe driver Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 09/23] ARM: tegra: Add Tegra20 PCIe device tree node Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 10/23] ARM: tegra: Enable PCIe on TrimSlice Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 11/23] ARM: tegra: Add GIC for Tegra30 Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 12/23] ARM: tegra: Add Tegra30 PCIe device tree node Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 13/23] ARM: tegra: Enable PCIe on Cardhu Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 14/23] ARM: tegra: Enable PCIe on Beaver Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 15/23] ARM: tegra: Add GIC for Tegra124 Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 16/23] ARM: tegra: Add Tegra124 PCIe device tree node Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 17/23] ARM: tegra: Enable PCIe on Jetson TK1 Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 18/23] ARM: Implement non-cached memory support Simon Glass
2014-12-10 15:03   ` Simon Glass
2014-12-18 20:17     ` Albert ARIBAUD
2014-12-18 20:39       ` Simon Glass
     [not found]         ` <8e4d45a0266245de9bad5dde5f1d24bd@HQMAIL103.nvidia.com>
2014-12-19  7:02           ` Albert ARIBAUD
2014-12-29 19:39             ` Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 19/23] ARM: tegra: Enable non-cached memory Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 20/23] net: rtl8169: Honor CONFIG_SYS_RX_ETH_BUFFER Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 21/23] net: rtl8169: Properly align buffers Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 22/23] net: rtl8169: Use non-cached memory if available Simon Glass
2014-12-10  5:25 ` [U-Boot] [PATCH v4 23/23] net: rtl8169: Add support for RTL-8168/8111g Simon Glass
2014-12-17  2:10 ` [U-Boot] [PATCH v4 0/23] ARM: tegra: Add PCIe support Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox