[U-Boot] [PATCH v3 0/11] Support for the kmp204x reference design

Valentin Longchamp valentin.longchamp at keymile.com
Wed Sep 11 13:17:34 CEST 2013


This series includes all the needed patches to run u-boot on Keymile's
kmp204x reference design.

The kmp204x is a reference design based on Freescale's P2040/P2041 SoC.
It is supposed to be a reference platform for future boards. There is
currently only one board that is based on this design which is called
kmlion1.

The first 10 patches of the series are small changes to the generic
Keymile board support code as well as minor changes to some Freescale
drivers and CPU support.

The final patch 11 is where the new kmp204x code is introduced. It is
mostly based on the existing P2041rdb code by Freescale which was
adapted to our design.

Changes in v3:
- Add SYS_MALLOC_LEN to km_arm.h as well, as it was omitted before.
- take the new I2C defines into account and use
  CONFIG_SYS_I2C_INIT_BOARD instead of an additional option and define
  it only for the I2C bitbang KM boards (km_arm and km82xx) and not for
  all KM boards.
- add a call to fman_enable_port in fm_enable_port enable the port in
  hardware as well.
- rebased on mainline u-boot 2013.10-rc2 (+ a few patches)
- use new licensing string
- move BCH #defines before keymile-common.h #include
- remove common RCW printing patch
- remove RCW printing form checkboard() as it is now in mpc85xx/cpu.c
- new I2C #defines for new I2C subsystem
- remove patch km-powerpc: move CONFIG_FLASH_CFI_MTD from km-powerpc.h
  since km-powerpc is not included by kmp204x.h
- fix RCW for new IRQ/GPIO usage of kmp204x
- set netdev to eth0 since the new DTS now correctly assigns FM1 at DTSEC
  to eth0

Changes in v2:
- Introduce CONFIG_KM_I2C_ABORT #define to avoid #if !defined in
  common.c
- add CONFIG_KM_COMMON_ETH_INIT for the km board that need the common.c
  board_eth_init
- when refresh rate gets halved for extended range temperature
  operations, the srt bit in the mode register 2 is set.
- Remove patch "5/8 fsl: do not define FSL_SRIO_PCIE_BOOT_MASTER for all
  P2041 systems" from the series as it is not needed with current u-boot.
- fix the defines used in kmp204x/law.c for the lbus local address
  windows.
- fix the header files to include Freescale's copyrights
- integrate Scott's feedback

Valentin Longchamp (11):
  powerpc: cast bi_memsize to ulong for %ld usage
  km-powerpc: move SYS_MALLOC_LEN out of keymile-common.h
  KM: fix typo in default environment
  KM: define CONFIG_SYS_I2C_INIT_BOARD only for concerned board
  KM: add CONFIG_KM_COMMON_ETH_INIT for km common eth init
  mpc8xxx: call i2c_set_bus_num in __get_spd
  mpc8xxx: set x2 DDR3 refresh rate if SPD config requires it
  net/fman: add a fm_enable_port function
  mtd/fsl_elbc: take NAND_ECC_SOFT_BCH config option into account
  fsl/mpc85xx: define common serdes_clock_to_string function
  mpc85xx: introduce the kmp204x reference design support

 MAINTAINERS                                        |   1 +
 arch/powerpc/cpu/mpc85xx/fsl_corenet2_serdes.c     |  21 +
 arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c      |  17 +
 .../powerpc/cpu/mpc8xxx/ddr/common_timing_params.h |   1 +
 arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c           |   7 +-
 arch/powerpc/cpu/mpc8xxx/ddr/ddr3_dimm_params.c    |   4 +
 .../cpu/mpc8xxx/ddr/lc_common_dimm_params.c        |   5 +
 arch/powerpc/cpu/mpc8xxx/ddr/main.c                |   6 +-
 arch/powerpc/include/asm/fsl_ddr_dimm_params.h     |   1 +
 arch/powerpc/include/asm/fsl_serdes.h              |   1 +
 arch/powerpc/lib/board.c                           |   2 +-
 board/freescale/b4860qds/b4860qds.c                |  16 -
 board/freescale/corenet_ds/corenet_ds.c            |  14 -
 board/freescale/p2041rdb/p2041rdb.c                |  14 -
 board/freescale/t4qds/t4240qds.c                   |  16 -
 board/keymile/common/common.c                      |  27 +-
 board/keymile/kmp204x/Makefile                     |  48 +++
 board/keymile/kmp204x/ddr.c                        |  64 +++
 board/keymile/kmp204x/eth.c                        |  71 ++++
 board/keymile/kmp204x/kmp204x.c                    | 258 ++++++++++++
 board/keymile/kmp204x/kmp204x.h                    |  15 +
 board/keymile/kmp204x/law.c                        |  40 ++
 board/keymile/kmp204x/pbi.cfg                      |  35 ++
 board/keymile/kmp204x/pci.c                        |  35 ++
 board/keymile/kmp204x/rcw_kmp204x.cfg              |  11 +
 board/keymile/kmp204x/tlb.c                        | 110 +++++
 boards.cfg                                         |   1 +
 drivers/mtd/nand/fsl_elbc_nand.c                   |   6 +-
 drivers/net/fm/b4860.c                             |   7 +
 drivers/net/fm/fm.h                                |   1 +
 drivers/net/fm/init.c                              |   8 +
 drivers/net/fm/p1023.c                             |   7 +
 drivers/net/fm/p4080.c                             |   7 +
 drivers/net/fm/p5020.c                             |   7 +
 drivers/net/fm/p5040.c                             |   7 +
 drivers/net/fm/t4240.c                             |   7 +
 include/configs/km/keymile-common.h                |   6 +-
 include/configs/km/km-powerpc.h                    |   6 +
 include/configs/km/km_arm.h                        |   8 +-
 include/configs/km/kmp204x-common.h                | 451 +++++++++++++++++++++
 include/configs/km82xx.h                           |   2 +
 include/configs/kmp204x.h                          |  68 ++++
 include/fm_eth.h                                   |   1 +
 43 files changed, 1343 insertions(+), 97 deletions(-)
 create mode 100644 board/keymile/kmp204x/Makefile
 create mode 100644 board/keymile/kmp204x/ddr.c
 create mode 100644 board/keymile/kmp204x/eth.c
 create mode 100644 board/keymile/kmp204x/kmp204x.c
 create mode 100644 board/keymile/kmp204x/kmp204x.h
 create mode 100644 board/keymile/kmp204x/law.c
 create mode 100644 board/keymile/kmp204x/pbi.cfg
 create mode 100644 board/keymile/kmp204x/pci.c
 create mode 100644 board/keymile/kmp204x/rcw_kmp204x.cfg
 create mode 100644 board/keymile/kmp204x/tlb.c
 create mode 100644 include/configs/km/kmp204x-common.h
 create mode 100644 include/configs/kmp204x.h

-- 
1.8.0.1



More information about the U-Boot mailing list