Attached patch implements a new CMOS option 'sata_mode'. A new Kconfig option 'SATA_MODE' with default 'ide' is added to amd/sb600/Kconfig. The handling of the CMOS option is placed in amd/sb600/sata.c and overrides the hardcoded 'ide' mode in the following way: if get_option(., "sata_mode") returns 0 use CMOS option in case of -2 grab the Kconfig option CONFIG_SATA_MODE if exist otherwise use the hardcoded mode.
Signed-off-by: Josef Kellermann seppk@arcor.de mailto://seppk@arcor.de
Hi Josef.
Thank you for the contribution.
Am Freitag, den 18.02.2011, 20:12 +0100 schrieb Josef Kellermann:
Attached patch implements a new CMOS option 'sata_mode'. A new Kconfig option 'SATA_MODE' with default 'ide' is added to amd/sb600/Kconfig.
I changed the Kconfig handling a bit to not use a magic string, and to handle the default value in Kconfig instead of doing it in code.
Signed-off-by: Josef Kellermann seppk@arcor.de
Acked-by: Patrick Georgi patrick.georgi@secunet.com r6379
Patrick