
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 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
Changes in v2: None
cmd/sata.c | 138 ++++++++------------------------------------------------ common/Makefile | 1 + common/sata.c | 86 +++++++++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+), 118 deletions(-) create mode 100644 common/sata.c
Applied to u-boot-dm.