public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/13] dm: Implement driver model support in SPL
@ 2014-10-23 19:15 Simon Glass
  2014-10-23 19:15 ` [U-Boot] [PATCH v2 01/13] dm: dts: Move omap device tree includes to correct place Simon Glass
                   ` (12 more replies)
  0 siblings, 13 replies; 24+ messages in thread
From: Simon Glass @ 2014-10-23 19:15 UTC (permalink / raw)
  To: u-boot

Now that driver model operations prior to relocation, the remaining
area where it does not work is SPL. This series enables this.

Since SPL is quite memory-constrained, code and data size need to be
kept as small as possible. This series includes a few changes to help
with this:

- Small and simple malloc() implementation
- Dropping device removal features
- Dropping stdio features
- Dropping driver model warnings

With these the code size impact of driver model is small, around 2-3KB.
Data usage is typically 200-300 bytes. In many cases this can squeeze
into the available SPL RAM space.

This requires a revert of the SPL global_data revert (commit 1ee30ae).
I believe that is planned for early in this merge window. We need that
revert undone to be able to support the simple malloc in SPL on ARM.

This series is available at u-boot-dm branch 'spl-working'.

Changes in v2:
- Correct the Makefile condition for simple_malloc
- Rebase on top of the SPI series
- Rebase to master

Simon Glass (13):
  dm: dts: Move omap device tree includes to correct place
  dm: Split the simple malloc() implementation into its own file
  dm: arm: spl: Allow simple malloc() in SPL
  dm: spl: Make simple malloc() available when enabled
  dm: spl: Allow driver model to be used
  dm: Allow device removal features to be dropped
  dm: Allow stdio registration to be dropped
  dm: Disable dm_warn() in SPL
  dm: tegra: Add platform data for the SPL uart
  dm: tegra: Add platform data for the GPIO driver
  dm: arm: spl: Make driver model linker lists available
  dm: tegra: Enable driver model in SPL and adjust the GPIO driver
  dm: Update documentation to include CONFIG_DM... options

 README                                             | 119 +++++++++++++
 arch/arm/cpu/u-boot-spl.lds                        |   7 +
 arch/arm/dts/dt-bindings/gpio/gpio.h               |  15 --
 arch/arm/lib/crt0.S                                |   2 +-
 board/nvidia/common/board.c                        |   8 +
 board/nvidia/seaboard/seaboard.c                   |   4 +-
 common/Makefile                                    |   3 +
 common/board_r.c                                   |   3 +-
 common/dlmalloc.c                                  |  19 +--
 common/malloc_simple.c                             |  38 +++++
 common/spl/spl.c                                   |  16 +-
 doc/driver-model/README.txt                        |  44 +++--
 drivers/core/Makefile                              |   3 +-
 drivers/core/device-remove.c                       | 187 +++++++++++++++++++++
 drivers/core/device.c                              | 168 ------------------
 drivers/gpio/Makefile                              |   4 +
 drivers/gpio/tegra_gpio.c                          |  27 ++-
 drivers/serial/serial-uclass.c                     |   8 +-
 drivers/serial/serial_tegra.c                      |  16 ++
 include/asm-generic/global_data.h                  |   1 +
 include/config_defaults.h                          |   6 +
 include/configs/tegra-common.h                     |  12 +-
 include/dm/device-internal.h                       |  10 ++
 include/dm/util.h                                  |   6 +
 .../dts => include}/dt-bindings/pinctrl/am33xx.h   |   0
 .../arm/dts => include}/dt-bindings/pinctrl/omap.h |   0
 include/malloc.h                                   |  60 ++++---
 scripts/Makefile.spl                               |   1 +
 28 files changed, 522 insertions(+), 265 deletions(-)
 delete mode 100644 arch/arm/dts/dt-bindings/gpio/gpio.h
 create mode 100644 common/malloc_simple.c
 create mode 100644 drivers/core/device-remove.c
 rename {arch/arm/dts => include}/dt-bindings/pinctrl/am33xx.h (100%)
 rename {arch/arm/dts => include}/dt-bindings/pinctrl/omap.h (100%)

-- 
2.1.0.rc2.206.gedb03e5

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

end of thread, other threads:[~2014-10-28  0:07 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-23 19:15 [U-Boot] [PATCH v2 0/13] dm: Implement driver model support in SPL Simon Glass
2014-10-23 19:15 ` [U-Boot] [PATCH v2 01/13] dm: dts: Move omap device tree includes to correct place Simon Glass
2014-10-24 19:05   ` Tom Rini
2014-10-23 19:15 ` [U-Boot] [PATCH v2 02/13] dm: Split the simple malloc() implementation into its own file Simon Glass
2014-10-24 19:05   ` Tom Rini
2014-10-23 19:16 ` [U-Boot] [PATCH v2 03/13] dm: arm: spl: Allow simple malloc() in SPL Simon Glass
2014-10-23 19:16 ` [U-Boot] [PATCH v2 04/13] dm: spl: Make simple malloc() available when enabled Simon Glass
2014-10-24 18:59   ` Tom Rini
2014-10-28  0:07     ` Simon Glass
2014-10-23 19:16 ` [U-Boot] [PATCH v2 05/13] dm: spl: Allow driver model to be used Simon Glass
2014-10-24 19:06   ` Tom Rini
2014-10-23 19:16 ` [U-Boot] [PATCH v2 06/13] dm: Allow device removal features to be dropped Simon Glass
2014-10-23 19:16 ` [U-Boot] [PATCH v2 07/13] dm: Allow stdio registration " Simon Glass
2014-10-24 19:06   ` Tom Rini
2014-10-23 19:16 ` [U-Boot] [PATCH v2 08/13] dm: Disable dm_warn() in SPL Simon Glass
2014-10-24 19:07   ` Tom Rini
2014-10-23 19:16 ` [U-Boot] [PATCH v2 09/13] dm: tegra: Add platform data for the SPL uart Simon Glass
2014-10-23 19:16 ` [U-Boot] [PATCH v2 10/13] dm: tegra: Add platform data for the GPIO driver Simon Glass
2014-10-23 19:16 ` [U-Boot] [PATCH v2 11/13] dm: arm: spl: Make driver model linker lists available Simon Glass
2014-10-24 19:08   ` Tom Rini
2014-10-23 19:16 ` [U-Boot] [PATCH v2 12/13] dm: tegra: Enable driver model in SPL and adjust the GPIO driver Simon Glass
2014-10-23 19:16 ` [U-Boot] [PATCH v2 13/13] dm: Update documentation to include CONFIG_DM... options Simon Glass
2014-10-23 20:17   ` Masahiro YAMADA
2014-10-24  1:05     ` Simon Glass

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