mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-30 08:30:50 +09:00
x86: broadwell: Don't bother probing the PCH for pinctrl
At present the pinctrl probes the PCH but since it only uses it to obtain a PCI address, this is no necessary. Avoiding this fixes one of the two co-dependent loops in broadwell. This driver really should be a proper pinctrl driver, but for now it remains a syscon device. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
23e8bd7e49
commit
c692f82240
@ -16,6 +16,7 @@
|
|||||||
#include <asm/arch/gpio.h>
|
#include <asm/arch/gpio.h>
|
||||||
#include <dt-bindings/gpio/x86-gpio.h>
|
#include <dt-bindings/gpio/x86-gpio.h>
|
||||||
#include <dm/pinctrl.h>
|
#include <dm/pinctrl.h>
|
||||||
|
#include <dm/uclass-internal.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
@ -214,7 +215,7 @@ static int broadwell_pinctrl_probe(struct udevice *dev)
|
|||||||
u32 gpiobase;
|
u32 gpiobase;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = uclass_first_device(UCLASS_PCH, &pch);
|
ret = uclass_find_first_device(UCLASS_PCH, &pch);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
if (!pch)
|
if (!pch)
|
||||||
|
Loading…
Reference in New Issue
Block a user