To further limit the memory space, we only allow serial device to be bound before relocation.
Signed-off-by: Bin Meng <bmeng...@gmail.com> --- drivers/pci/pci-uclass.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c index 4160274..b7dca0f 100644 --- a/drivers/pci/pci-uclass.c +++ b/drivers/pci/pci-uclass.c @@ -487,9 +487,13 @@ static int pci_find_and_bind_driver(struct udevice *parent, * whose driver has the DM_FLAG_PRE_RELOC set, to save * precious memory space as on some platforms as that * space is pretty limited (ie: using Cache As RAM). + * + * To further limit the memory space, we only allow + * serial device to be bound. */ if (!(gd->flags & GD_FLG_RELOC) && - !(drv->flags & DM_FLAG_PRE_RELOC)) + !(drv->flags & DM_FLAG_PRE_RELOC) && + (drv->id != UCLASS_SERIAL)) return 0; /* -- 1.8.2.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot