Skip to content

powerpc: Introduce device tree control and driver model

Stefan Roese u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest1 of 19 patches 0 repliesNew

1 of 19 patches is in this archive. The cover letter announces 19.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
17/19powerpc: ppc4xx: Change from OF_SEPARATE to OF_EMBED+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

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

Hi Simon,

Quoted 19 lines · Simon Glass
Quoted 19 lines · Simon Glass
Quoted 17 lines

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.

Changes in v2:
- Reduce reserved stack space for board_init_f_mem() to 64 bytes
- Add SYS_MALLOC_F to Kconfig

Quoted 6 lines
Quoted 4 lines

I'm trying to catch up on a few things I haven't got to.

If it suits I can apply this to u-boot-dm since it is a driver-model-enablement series and Stefan has tested it.

OK unless I hear any screams I'm going ahead with that plan this week.

Yes, please go ahead. Lazy people (like me) tend to only scream when really forced to test the "latest and greatest" stuff. ;)

Thanks,
Stefan