]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
x86: quark: Avoid chicken and egg problem
authorBin Meng <bmeng.cn@gmail.com>
Thu, 3 Sep 2015 12:37:24 +0000 (05:37 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 9 Sep 2015 13:48:03 +0000 (07:48 -0600)
commitaa09505ba1677c25e83115375a6775a5eae444ef
tree4d9f4501d233baf80582452bb190b1a2e1eb2c0c
parent5750e5e29a4d4e90cb0ce3ec71233f8efbf5ebaa
x86: quark: Avoid chicken and egg problem

If we convert to use driver model pci on quark, we will encounter
some chicken and egg problems like below:

- To enable PCIe root ports, we need program some registers on the
  message bus via pci bus. With driver model, the first time to
  access pci bus, the pci enumeration process will be triggered.
  But without first enabling PCIe root ports, pci enumeration
  just hangs when scanning PCIe root ports.
- Similar situation happens when trying to access GPIO from the
  PCIe enabling codes, as GPIO requires its block base address
  to be assigned via a pci configuration register in the bridge.

To avoid such dilemma, replace all pci calls in the quark codes
to use the local version which does not go through driver model.

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