]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: Support accessing core tags
authorSimon Glass <sjg@chromium.org>
Sun, 8 May 2022 10:39:24 +0000 (04:39 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 28 Jun 2022 02:09:52 +0000 (03:09 +0100)
commitbda309f4efdac7875d8561472c34e30849c9f84e
tree9bc3064b0b9e15d409d78beba75b2e38d3a867ef
parentf1a53d48c71c09fa02214c169769c613738bc30a
dm: core: Support accessing core tags

At present tag numbers are only allocated for non-core data, meaning that
the 'core' data, like priv and plat, are accessed through dedicated
functions.

For debugging and consistency it is convenient to use tags for this 'core'
data too. Add support for this, with new tag numbers and functions to
access the pointer and size for each.

Update one of the test drivers so that the uclass-private data can be
tested here.

There is some code duplication with functions like device_alloc_priv() but
this is not addressed for now. At some point, some rationalisation may
help to reduce code size, but more thought it needed on that.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/device.c
drivers/misc/test_drv.c
include/dm/device.h
include/dm/tag.h
test/dm/core.c
tools/dtoc/test_dtoc.py