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

At present the SATA command code includes both the command-processing code
and the core SATA 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:
- All CONFIG option are referenced from the non-command code
- The concept of a 'current SATA 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/sata.c
common/Makefile
common/sata.c [new file with mode: 0644]