[U-Boot] [PATCH 0/19] powerpc: Introduce device tree control and driver model

Simon Glass sjg at chromium.org
Mon Dec 15 15:19:35 CET 2014


This series does a small amount of tweaking to support device tree control
(CONFIG_OF_CONTROL) on PowerPC platforms. It also adds support for driver
model. In both cases the main effort is to set things up correctly before
calling board_init_f().

A new generic function, board_init_f_mem() is introduced. This does the
various memory calculations in C code, since they are messy in assembler
and every architecture should in fact be the same. A later series will
adjust ARM and x86 to use this function.

As an example, the Canyonlands boards are converted over to use device tree
control and driver model for their serial console. It should be fairly
straightforward to convert over other boards.


Simon Glass (18):
  Introduce board_init_f_mem() to handle early memory layout
  powerpc: Permit device tree control of U-Boot (CONFIG_OF_CONTROL)
  powerpc: ppc4xx: canyonlands: config: Tidy up CONFIGs and config.mk
  powerpc: ppc4xx: Move CANYONLANDS/GLACIER/ARCHES to Kconfig
  powerpc: ppc4xx: Add ramboot config for glacier
  powerpc: ppc4xx: canyonlands: Move to generic board
  powerpc: ppc4xx: dts: Bring in canyonlands device tree files
  powerpc: ppc4xx: Call board_init_f_mem() for generic board
  powerpc: ppc4xx: Add a gpio.h header file
  powerpc: ppc4xx: Allow the end of u-boot.bin to be found
  powerpc: ppc4xx: Use CONFIG_OF_CONTROL for canyonlands boards
  ppc: amcc: Omit unneeded ns16550 CONFIG if using driver model
  powerpc: Add serial driver for driver model
  dm: powerpc: ppc4xx: Move glacier to use driver model for serial
  powerpc: Add linkage.h file
  serial: Support an early UART for debugging
  serial: ns16550: Support debug UART
  powerpc: ppc4xx: Provide early debug UART defaults

Stefan Roese (1):
  WIP: powerpc: ppc4xx: Somehow BSS is not cleared in RAMBOOT case

 arch/Kconfig                                |   1 +
 arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c      |   8 +
 arch/powerpc/cpu/ppc4xx/config.mk           |   5 +-
 arch/powerpc/cpu/ppc4xx/cpu_init.c          |   2 +
 arch/powerpc/cpu/ppc4xx/start.S             |  18 +-
 arch/powerpc/cpu/ppc4xx/u-boot.lds          |   8 +-
 arch/powerpc/dts/Makefile                   |  11 +
 arch/powerpc/dts/arches.dts                 | 339 ++++++++++++++++
 arch/powerpc/dts/canyonlands.dts            | 555 ++++++++++++++++++++++++++
 arch/powerpc/dts/glacier.dts                | 579 ++++++++++++++++++++++++++++
 arch/powerpc/include/asm/arch-ppc4xx/gpio.h |   7 +
 arch/powerpc/include/asm/linkage.h          |   7 +
 arch/powerpc/include/asm/ppc460ex_gt.h      |   2 +
 arch/powerpc/lib/board.c                    |   3 +
 board/amcc/canyonlands/Kconfig              |  35 ++
 board/amcc/canyonlands/MAINTAINERS          |   1 +
 board/amcc/canyonlands/config.mk            |   2 -
 board/amcc/canyonlands/u-boot-ram.lds       |  85 ++++
 common/board_f.c                            |  18 +
 common/board_r.c                            |   8 +-
 configs/arches_defconfig                    |   5 +-
 configs/canyonlands_defconfig               |   5 +-
 configs/glacier_defconfig                   |   5 +-
 configs/glacier_ramboot_defconfig           |   8 +
 drivers/serial/Kconfig                      |  59 +++
 drivers/serial/Makefile                     |   1 +
 drivers/serial/ns16550.c                    |  42 +-
 drivers/serial/serial_ppc.c                 |  40 ++
 include/configs/amcc-common.h               |   2 +
 include/configs/canyonlands.h               |  38 +-
 include/debug_uart.h                        | 139 +++++++
 31 files changed, 2006 insertions(+), 32 deletions(-)
 create mode 100644 arch/powerpc/dts/Makefile
 create mode 100644 arch/powerpc/dts/arches.dts
 create mode 100644 arch/powerpc/dts/canyonlands.dts
 create mode 100644 arch/powerpc/dts/glacier.dts
 create mode 100644 arch/powerpc/include/asm/arch-ppc4xx/gpio.h
 create mode 100644 arch/powerpc/include/asm/linkage.h
 create mode 100644 board/amcc/canyonlands/u-boot-ram.lds
 create mode 100644 configs/glacier_ramboot_defconfig
 create mode 100644 drivers/serial/serial_ppc.c
 create mode 100644 include/debug_uart.h

-- 
2.2.0.rc0.207.ga3a616c



More information about the U-Boot mailing list