
7 Jul
2010
7 Jul
'10
4:08 p.m.
Le 07/07/2010 13:46, Prafulla Wadaskar a écrit :
If you mean 'why not make this a standalone driver, e.g. driver/net/mvsata_ide.{ch} under a configuration option CONFIG_MVSATA_IDE' -- why not, but it would basically be empty of 'driving' functionality (this is handled by cmd_ide) and would only provide initialization code, subject to board options (e.g. CONFIG_MVSATA_IDE_ENABLE_PORT{0,1}).
then you should add below initialization code in cpu.c for respective SoCs and function call here
Ok, but that means duplicating this code across SoCs aven though it is actually identical for all of them.
Amicalement,
--
Albert.