
14 May
2016
14 May
'16
9:35 p.m.
On 1 May 2016 at 11:36, Simon Glass sjg@chromium.org wrote:
At present the IDE command code includes both the command-processing code and the core IDE functions and data structures.
Separate the latter into its own file, adding functions as needed to avoid the command code accessing data structures directly.
With this commit:
- Most CONFIG option are referenced from the non-command code
- The concept of a 'current IDE device' is confined to the command code
This will make it easier to convert this code to driver model.
Signed-off-by: Simon Glass sjg@chromium.org
Changes in v2: None
cmd/ide.c | 1297 +------------------------------------------------------ common/Makefile | 1 + common/ide.c | 1206 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 1228 insertions(+), 1276 deletions(-) create mode 100644 common/ide.c
Applied to u-boot-dm.