x86: crownbay: Support Topcliff integrated pci uart devices with driver model
authorBin Meng <bmeng.cn@gmail.com>
Mon, 24 Aug 2015 08:14:03 +0000 (01:14 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 26 Aug 2015 14:54:17 +0000 (07:54 -0700)
commita1f1582b73a5c82b3d63697d521dbcef31e05229
tree02c41d26fc6b8150903bc564acd818678a06450c
parentcdeb2ba99cb333f7729cd5784ea2de00e265f22f
x86: crownbay: Support Topcliff integrated pci uart devices with driver model

In order to make a pci uart device node to be properly bound to its
driver, we need make sure its parent node has a compatible string
which matches a driver that scans all of its child device nodes in
the device tree.

Change all pci bridge nodes under root pci node to use "pci-bridge"
compatible driver, as well as corresponding <reg> properties to
indicate its devfn. At last, adding "u-boot,dm-pre-reloc" to each
of these nodes for driver model to initialize them before relocation.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/dts/crownbay.dts