diff options
| author | Marc Jones <[email protected]> | 2012-10-29 05:24:02 +0000 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2012-11-02 15:20:43 -0700 |
| commit | 766b16fe180087d8c59a79a4f6a92d1a500fa524 (patch) | |
| tree | 7805b64203f13334a52bec35f4ce366fd9c4a17a /include | |
| parent | 2a0c61d401732a2c21b0dc7fe6d1aeec79da8c05 (diff) | |
ahci: Perform SATA flush after disk write.
Writes in u-boot are so rare, and the logic to know when is
the last write and do a flush only there is sufficiently
difficult. Just do a flush after every write. This incurs,
usually, one extra flush when the rare writes do happen.
Signed-off-by: Marc Jones <[email protected]>
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/ata.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ata.h b/include/ata.h index 3b2d737e617..a614724b8e9 100644 --- a/include/ata.h +++ b/include/ata.h @@ -114,6 +114,9 @@ #define ATA_CMD_WRITE_EXT 0x34 /* Write Sectores (with retries) with 48bit addressing */ #define ATA_CMD_VRFY_EXT 0x42 /* Read Verify (with retries) with 48bit addressing */ +#define ATA_CMD_FLUSH 0xE7 /* Flush drive cache */ +#define ATA_CMD_FLUSH_EXT 0xEA /* Flush drive cache, with 48bit addressing */ + /* * ATAPI Commands */ |
