Re: [U-Boot] [PATCH v2 0/25] Add Marvell Armada XP MV78460 SoC support

2014-08-23 Thread Jagan Teki
On Tue, Aug 5, 2014 at 12:39 PM, Stefan Roese s...@denx.de wrote:

 This patch series adds support for the Marvell Armada XP SoC's. Specifically
 the MV78460.

 Basic support for the db-78460-bp evaluation board is added. Supporting the
 following interfaces:
 - UART
 - SPI (including SPI NOR flash)
 - I2C
 - Ethernet (neta)

 While doing this port, I tried to consolidate common Marvell code into
 the arch/arm/mvebu-common directory. This directory should be used to
 collect more common code for the MVEBU SoC's (Dove, Kirkwood, Armada 370,
 Armada 380, Armada XP). I started with Kirkwood and some of its
 interfaces. Dove is definitely a candidate to move some of its code
 into thise directory as well.

 Because of the renaming of some functions from kirkwood to mvebu (to make
 them better usable on other MVEBU SoCs), this patch series not only
 touches the ARM SoC specific files (in arch/arm/...). But also some
 device drivers (e.g. SPI, I2C). Separating these driver specific patches
 into different patches that are not depending on this ARM patch series
 seems hard if not impossible. Thats why I would really like to get this
 patch series to get  applied completely be one custodian. Not sure if
 this could / should go through Tom directly? Only if all the subsystem
 custodians have given their Acked-by ... of course.

 Testing on Kirkwood based boards would be greatly appreciated. So anyone with
 access to some of those board, please give this patch series a try. I really
 hope that I didn't break anything while merging some of the code into the
 common mvebu directory.

 Please note that this Armada XP port still requires the Binary Header
 (bin_hdr) from the Marvell U-Boot tree to be included as a binary blob
 into the resulting image (u-boot.kwb) that can be booted by the MVEBU
 BootROM. This binary bin_hdr is usually responsible for the DDR3
 controller configuration and the DDR3 training. One way to extract this
 bin_hdr binary from an existing Marvell boot image right now is to use
 the kwbimage tool from Barebox. Please refer to the documentation
 thats available there for more details.

 Thanks,
 Stefan

 Changes in v2:
 - Fixed issue in mbus_dt_setup_win() to also assign remappable windows
 - Made mbus_dt_setup_win() non-static, so that it can be called from
   other files for board specific mbus window configuration
 - Renamed target from db-78460-bp to db-mv784mp-gp as this matches
   the real eval board name
 - Added optional '-a' parameter to use the timings for Armada XP, as they
   are incompatibel with the currently used ones for Kirkwood (etc).
 - Rebased on latest U-Boot version already including the Kconfig
   support switch.
 - Removed patch [PATCH v1 21/25] arm: kirkwood: Use mvebu new common mbus 
 API
   as this breaks Kirkwood booting. This needs to be resolved at some time,
   but I don't have access to a Kirkwood based board with JTAG BDI access to
   debug it right now. Till somebody fixes this issue, lets just remove
   it from this series for now.
 - Added basic support for the maxBCM MV78460 based board

 Stefan Roese (25):
   sf: Add M25PX64 SPI NOR flash ID
   arm: kirkwood: spi.h: Add some missing parenthesis
   spi: kirkwood_spi.c: Some fixes and cleanup
   spi: kirkwood_spi.c: Make global variable static
   spi: kirkwood_spi.c: cosmetic: Fix minor coding style issues

Picked these on u-boot-spi/master

   arm: kirkwood: Move some SoC files into new arch/arm/mvebu-common
   arm: marvell: Move arch/kirkwood.h to arch/soc.h
   arm: marvell: Move arch-kirkwood/spi.h to arch-mvebu/spi.h

Conflicts - but added reviewed tag and updated Prafulla, please take
these on your repo.

   arm: marvell: Rework timer.c to make it usable for other MVEBU
 platforms
   arm: mvebu: Add common mbus functions to use on Marvell SoCs
   spi: kirkwood_spi.c: Compile MPP (pin-mux) only for kirkwood SoC's
   arm: marvell: Extract kirkwood gpio functions into new common file
 gpio.c
   spi: kirkwood_spi.c: Change KW_SPI_BASE to MVEBU_SPI_BASE
   arm: kirkwood: Change naming of dram functions from km_foo() to
 mvebu_foo()
   net: mvneta.c: Add support for the ethernet controller of the Marvell
 Armada XP SoC
   net: phy.h: Make PHY autonegotiation timeout configurable
   i2c: mvtwsi: Add support for Marvell Armada XP
   arm: armada-xp: Add basic support for Marvell Armada XP SoC
   arm: armada-xp: Add basic support for the Marvell DB-MV784MP-GP board
   arm: armada-xp: Add basic support for the maxBCM board
   arm: kirkwood: Remove some dead code from cpu.c
   tools/kwboot: Sync with latest barebox version to support Armada XP
   tools: Compile kwboot for Marvell Armada XP as those SoCs are now
 supported
   tools: kwbimage: Add image version 1 support for Armada XP / 370
   Makefile: Add CONFIG_BUILD_TARGET to automatically build an special
 image

  Makefile   |9 +
  README |8 +
  

Re: [U-Boot] [PATCH v2 0/25] Add Marvell Armada XP MV78460 SoC support

2014-08-06 Thread Prafulla Wadaskar


 -Original Message-
 From: Stefan Roese [mailto:s...@denx.de]
 Sent: 05 August 2014 12:40
 To: u-boot@lists.denx.de
 Cc: Prafulla Wadaskar; tr...@ti.com
 Subject: [PATCH v2 0/25] Add Marvell Armada XP MV78460
 SoC support
 
 
 This patch series adds support for the Marvell Armada
 XP SoC's. Specifically
 the MV78460.
 
 Basic support for the db-78460-bp evaluation board is
 added. Supporting the
 following interfaces:
 - UART
 - SPI (including SPI NOR flash)
 - I2C
 - Ethernet (neta)
 
 While doing this port, I tried to consolidate common
 Marvell code into
 the arch/arm/mvebu-common directory. This directory
 should be used to
 collect more common code for the MVEBU SoC's (Dove,
 Kirkwood, Armada 370,
 Armada 380, Armada XP). I started with Kirkwood and
 some of its
 interfaces. Dove is definitely a candidate to move some
 of its code
 into thise directory as well.
 
 Because of the renaming of some functions from kirkwood
 to mvebu (to make
 them better usable on other MVEBU SoCs), this patch
 series not only
 touches the ARM SoC specific files (in arch/arm/...).
 But also some
 device drivers (e.g. SPI, I2C). Separating these driver
 specific patches
 into different patches that are not depending on this
 ARM patch series
 seems hard if not impossible. Thats why I would really
 like to get this
 patch series to get  applied completely be one
 custodian. Not sure if
 this could / should go through Tom directly? Only if
 all the subsystem
 custodians have given their Acked-by ... of course.
 

Hi Stefan,

Yes, it will be difficult, so please consider my ack for Kirkwood part to 
inline with new SoC support.

Regards...
Prafulla . . .
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 0/25] Add Marvell Armada XP MV78460 SoC support

2014-08-05 Thread Stefan Roese

This patch series adds support for the Marvell Armada XP SoC's. Specifically
the MV78460.

Basic support for the db-78460-bp evaluation board is added. Supporting the
following interfaces:
- UART
- SPI (including SPI NOR flash)
- I2C
- Ethernet (neta)

While doing this port, I tried to consolidate common Marvell code into
the arch/arm/mvebu-common directory. This directory should be used to
collect more common code for the MVEBU SoC's (Dove, Kirkwood, Armada 370,
Armada 380, Armada XP). I started with Kirkwood and some of its
interfaces. Dove is definitely a candidate to move some of its code
into thise directory as well.

Because of the renaming of some functions from kirkwood to mvebu (to make
them better usable on other MVEBU SoCs), this patch series not only
touches the ARM SoC specific files (in arch/arm/...). But also some
device drivers (e.g. SPI, I2C). Separating these driver specific patches
into different patches that are not depending on this ARM patch series
seems hard if not impossible. Thats why I would really like to get this
patch series to get  applied completely be one custodian. Not sure if
this could / should go through Tom directly? Only if all the subsystem
custodians have given their Acked-by ... of course.

Testing on Kirkwood based boards would be greatly appreciated. So anyone with
access to some of those board, please give this patch series a try. I really
hope that I didn't break anything while merging some of the code into the
common mvebu directory.

Please note that this Armada XP port still requires the Binary Header
(bin_hdr) from the Marvell U-Boot tree to be included as a binary blob
into the resulting image (u-boot.kwb) that can be booted by the MVEBU
BootROM. This binary bin_hdr is usually responsible for the DDR3
controller configuration and the DDR3 training. One way to extract this
bin_hdr binary from an existing Marvell boot image right now is to use
the kwbimage tool from Barebox. Please refer to the documentation
thats available there for more details.

Thanks,
Stefan

Changes in v2:
- Fixed issue in mbus_dt_setup_win() to also assign remappable windows
- Made mbus_dt_setup_win() non-static, so that it can be called from
  other files for board specific mbus window configuration
- Renamed target from db-78460-bp to db-mv784mp-gp as this matches
  the real eval board name
- Added optional '-a' parameter to use the timings for Armada XP, as they
  are incompatibel with the currently used ones for Kirkwood (etc).
- Rebased on latest U-Boot version already including the Kconfig
  support switch.
- Removed patch [PATCH v1 21/25] arm: kirkwood: Use mvebu new common mbus API
  as this breaks Kirkwood booting. This needs to be resolved at some time,
  but I don't have access to a Kirkwood based board with JTAG BDI access to
  debug it right now. Till somebody fixes this issue, lets just remove
  it from this series for now.
- Added basic support for the maxBCM MV78460 based board

Stefan Roese (25):
  sf: Add M25PX64 SPI NOR flash ID
  arm: kirkwood: spi.h: Add some missing parenthesis
  spi: kirkwood_spi.c: Some fixes and cleanup
  spi: kirkwood_spi.c: Make global variable static
  spi: kirkwood_spi.c: cosmetic: Fix minor coding style issues
  arm: kirkwood: Move some SoC files into new arch/arm/mvebu-common
  arm: marvell: Move arch/kirkwood.h to arch/soc.h
  arm: marvell: Move arch-kirkwood/spi.h to arch-mvebu/spi.h
  arm: marvell: Rework timer.c to make it usable for other MVEBU
platforms
  arm: mvebu: Add common mbus functions to use on Marvell SoCs
  spi: kirkwood_spi.c: Compile MPP (pin-mux) only for kirkwood SoC's
  arm: marvell: Extract kirkwood gpio functions into new common file
gpio.c
  spi: kirkwood_spi.c: Change KW_SPI_BASE to MVEBU_SPI_BASE
  arm: kirkwood: Change naming of dram functions from km_foo() to
mvebu_foo()
  net: mvneta.c: Add support for the ethernet controller of the Marvell
Armada XP SoC
  net: phy.h: Make PHY autonegotiation timeout configurable
  i2c: mvtwsi: Add support for Marvell Armada XP
  arm: armada-xp: Add basic support for Marvell Armada XP SoC
  arm: armada-xp: Add basic support for the Marvell DB-MV784MP-GP board
  arm: armada-xp: Add basic support for the maxBCM board
  arm: kirkwood: Remove some dead code from cpu.c
  tools/kwboot: Sync with latest barebox version to support Armada XP
  tools: Compile kwboot for Marvell Armada XP as those SoCs are now
supported
  tools: kwbimage: Add image version 1 support for Armada XP / 370
  Makefile: Add CONFIG_BUILD_TARGET to automatically build an special
image

 Makefile   |9 +
 README |8 +
 arch/arm/Kconfig   |8 +
 arch/arm/cpu/arm926ejs/kirkwood/Makefile   |4 +-
 arch/arm/cpu/arm926ejs/kirkwood/cpu.c  |   74 +-
 arch/arm/cpu/arm926ejs/kirkwood/mpp.c  |2 +-
 arch/arm/cpu/armv7/armada-xp/Makefile