The sata port can be configured when driver model enabled.
PATCH 1/1 The sata port can be configured when driver model enabled.
- CONFIG_SYS_SCSI_MAX_SCSI_ID
- CONFIG_SYS_SCSI_MAX_LUN
- These two configs can be used here.
Signed-off-by Steven Hao <[email protected]>
---
Changes for v1:
- The sata driver only support 2 ports.
It is not suited for all user.
We can make it can be configured.
--- drivers/ata/ahci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/ata/ahci.c +2 -2
@@ -1167,8 +1167,8 @@ int ahci_probe_scsi(struct udevice *ahci_dev, ulong base)return -ENODEV ; uc_plat =dev_get_uclass_platdata (dev); uc_plat->base = base; - uc_plat->max_lun =1 ; - uc_plat->max_id =2 ; + uc_plat->max_lun =CONFIG_SYS_SCSI_MAX_LUN ; + uc_plat->max_id =CONFIG_SYS_SCSI_MAX_SCSI_ID ; uc_priv =dev_get_uclass_priv (ahci_dev); ret =ahci_init_one (uc_priv, dev);
Signature · 1 line
2.7.4
PATCH 1/1 The sata port can be configured when driver model enabled.
Quoted 11 lines · liu hao
-
CONFIG_SYS_SCSI_MAX_SCSI_ID
-CONFIG_SYS_SCSI_MAX_LUN- These two configs can be used here.
Signed-off-by Steven Hao <[email protected]>---
Changes for v1:
- The sata driver only support 2 ports.
It is not suited for all user.
We can make it can be configured.
This breaks boards such as A20-OLinuXino_MICRO-eMMC
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20191123/41ef0e63/attachment.sig>