mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-29 05:18:51 +09:00
x86: ivybridge: Probe the LPC in CPU init
We can drop the explicit probe of the PCH since the LPC is a child device and this will happen automatically. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
2b27d20529
commit
f633efa30f
@ -212,7 +212,7 @@ int print_cpuinfo(void)
|
|||||||
{
|
{
|
||||||
enum pei_boot_mode_t boot_mode = PEI_BOOT_NONE;
|
enum pei_boot_mode_t boot_mode = PEI_BOOT_NONE;
|
||||||
char processor_name[CPU_MAX_NAME_LEN];
|
char processor_name[CPU_MAX_NAME_LEN];
|
||||||
struct udevice *dev;
|
struct udevice *dev, *lpc;
|
||||||
const char *name;
|
const char *name;
|
||||||
uint32_t pm1_cnt;
|
uint32_t pm1_cnt;
|
||||||
uint16_t pm1_sts;
|
uint16_t pm1_sts;
|
||||||
@ -245,12 +245,11 @@ int print_cpuinfo(void)
|
|||||||
/* Early chipset init required before RAM init can work */
|
/* Early chipset init required before RAM init can work */
|
||||||
uclass_first_device(UCLASS_NORTHBRIDGE, &dev);
|
uclass_first_device(UCLASS_NORTHBRIDGE, &dev);
|
||||||
|
|
||||||
ret = uclass_first_device(UCLASS_PCH, &dev);
|
ret = uclass_first_device(UCLASS_LPC, &lpc);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
if (!dev)
|
if (!dev)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
sandybridge_early_init(SANDYBRIDGE_MOBILE);
|
sandybridge_early_init(SANDYBRIDGE_MOBILE);
|
||||||
|
|
||||||
/* Check PM1_STS[15] to see if we are waking from Sx */
|
/* Check PM1_STS[15] to see if we are waking from Sx */
|
||||||
|
Loading…
Reference in New Issue
Block a user