]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: syscon: Don't require a regmap for PCI devices
authorSimon Glass <sjg@chromium.org>
Sun, 17 Feb 2019 03:24:38 +0000 (20:24 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 20 Feb 2019 07:21:44 +0000 (15:21 +0800)
commit529f57d92666631383fb3d8fff50028da91de006
tree79c91f8996850cc19f929d769c825415b0f58fce
parentf9811e8575eb42e75c615ba9b44f0481cdb78330
dm: syscon: Don't require a regmap for PCI devices

At present it is not possible to use the syscon devices for PCI devices
since a regmap is required. Since PCI uses a 3-cell address the conversion
of the 'reg' property to an address always fails. In any case, the regmap
is not useful with PCI since devices are accessed through the PCI bus
which regmap does not support.

Add a special case for PCI syscon devices, so that they don't set up a
regmap.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/core/syscon-uclass.c