public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/19] powerpc: Introduce device tree control and driver model
@ 2014-12-15 14:19 Simon Glass
  2014-12-15 14:19 ` [U-Boot] [PATCH 01/19] Introduce board_init_f_mem() to handle early memory layout Simon Glass
                   ` (19 more replies)
  0 siblings, 20 replies; 33+ messages in thread
From: Simon Glass @ 2014-12-15 14:19 UTC (permalink / raw)
  To: u-boot

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

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

end of thread, other threads:[~2015-01-26 13:39 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-15 14:19 [U-Boot] [PATCH 0/19] powerpc: Introduce device tree control and driver model Simon Glass
2014-12-15 14:19 ` [U-Boot] [PATCH 01/19] Introduce board_init_f_mem() to handle early memory layout Simon Glass
2014-12-15 14:19 ` [U-Boot] [PATCH 02/19] powerpc: Permit device tree control of U-Boot (CONFIG_OF_CONTROL) Simon Glass
2014-12-15 14:19 ` [U-Boot] [PATCH 03/19] powerpc: ppc4xx: canyonlands: config: Tidy up CONFIGs and config.mk Simon Glass
2014-12-15 14:19 ` [U-Boot] [PATCH 04/19] powerpc: ppc4xx: Move CANYONLANDS/GLACIER/ARCHES to Kconfig Simon Glass
2015-01-06  7:29   ` Masahiro Yamada
2014-12-15 14:19 ` [U-Boot] [PATCH 05/19] powerpc: ppc4xx: Add ramboot config for glacier Simon Glass
2014-12-15 14:19 ` [U-Boot] [PATCH 06/19] WIP: powerpc: ppc4xx: Somehow BSS is not cleared in RAMBOOT case Simon Glass
2014-12-15 14:19 ` [U-Boot] [PATCH 07/19] powerpc: ppc4xx: canyonlands: Move to generic board Simon Glass
2014-12-15 14:19 ` [U-Boot] [PATCH 08/19] powerpc: ppc4xx: dts: Bring in canyonlands device tree files Simon Glass
2014-12-15 14:19 ` [U-Boot] [PATCH 09/19] powerpc: ppc4xx: Call board_init_f_mem() for generic board Simon Glass
2014-12-15 14:19 ` [U-Boot] [PATCH 10/19] powerpc: ppc4xx: Add a gpio.h header file Simon Glass
2014-12-15 14:19 ` [U-Boot] [PATCH 11/19] powerpc: ppc4xx: Allow the end of u-boot.bin to be found Simon Glass
2014-12-15 14:19 ` [U-Boot] [PATCH 12/19] powerpc: ppc4xx: Use CONFIG_OF_CONTROL for canyonlands boards Simon Glass
2015-01-26 13:17   ` Stefan Roese
2015-01-26 13:31     ` Simon Glass
2015-01-26 13:39       ` Bin Meng
2014-12-15 14:19 ` [U-Boot] [PATCH 13/19] ppc: amcc: Omit unneeded ns16550 CONFIG if using driver model Simon Glass
2014-12-15 14:19 ` [U-Boot] [PATCH 14/19] powerpc: Add serial driver for " Simon Glass
2014-12-15 14:19 ` [U-Boot] [PATCH 15/19] dm: powerpc: ppc4xx: Move glacier to use driver model for serial Simon Glass
2015-01-26  9:23   ` Stefan Roese
2015-01-26  9:35     ` Stefan Roese
2015-01-26 13:33       ` Simon Glass
2015-01-26 13:38         ` Stefan Roese
2014-12-15 14:19 ` [U-Boot] [PATCH 16/19] powerpc: Add linkage.h file Simon Glass
2014-12-15 14:19 ` [U-Boot] [PATCH 17/19] serial: Support an early UART for debugging Simon Glass
2014-12-16  4:38   ` Masahiro Yamada
2014-12-17  4:46     ` Simon Glass
2014-12-15 14:19 ` [U-Boot] [PATCH 18/19] serial: ns16550: Support debug UART Simon Glass
2014-12-16  4:39   ` Masahiro Yamada
2014-12-17  4:47     ` Simon Glass
2014-12-15 14:19 ` [U-Boot] [PATCH 19/19] powerpc: ppc4xx: Provide early debug UART defaults Simon Glass
2015-01-24  4:06 ` [U-Boot] [PATCH 0/19] powerpc: Introduce device tree control and driver model Simon Glass

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