dm: Add support for generic system controllers (syscon)
authorSimon Glass <sjg@chromium.org>
Tue, 23 Jun 2015 21:38:43 +0000 (15:38 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 21 Jul 2015 23:39:24 +0000 (17:39 -0600)
commit5725128507eca41bb110d702858ca2c8d7dc4085
tree64ad9fddd8e970d2cb610b956a5a31f248e43fc4
parent6f98b7504f7097ea36df451c58d718f3ad2aa4ea
dm: Add support for generic system controllers (syscon)

Many SoCs have a number of system controllers which are dealt with as a
group by a single driver. It is a pain to have to add lots of compatible
strings and/or separate drivers for each. Instead we can identify the
controllers by a number and request the address of the one we want.

Add a simple implementation of this which can be used by SoC driver code.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/Makefile
drivers/core/syscon-uclass.c [new file with mode: 0644]
include/dm/uclass-id.h
include/syscon.h [new file with mode: 0644]