[U-Boot] [PATCH] IDE: Don't assume there are always two devices per bus

Rogan Dawes rogan at dawes.za.net
Mon Sep 6 08:03:46 CEST 2010


On 2010/09/06 7:54 AM, Albert ARIBAUD wrote:
> /* OpenRD's two kirkwood busses are SATA: 1 device per bux max) */
> #define CONFIG_SYS_ATA_IDE_CONFIG { \
> 	{ KW_SATA_PORT0_OFFSET, 1}, \
> 	{ KW_SATA_PORT1_OFFSET, 1} \
> }
> 

I like this, as it removes assumptions from the code.

FWIW.

Rogan


More information about the U-Boot mailing list