dm: ide: Separate the non-command code into its own file
authorSimon Glass <sjg@chromium.org>
Sun, 1 May 2016 17:36:10 +0000 (11:36 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 17 May 2016 15:54:43 +0000 (09:54 -0600)
commite9be1ee75ed27c4281cad5168b6c51d26b2e8a15
treeb3d1b8c693f2b4032bb26e3d0e2db63b10dc4434
parent11f610edf01abc96ca10e82e1752648ee911705b
dm: ide: Separate the non-command code into its own file

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>
cmd/ide.c
common/Makefile
common/ide.c [new file with mode: 0644]