Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Roger Quadros | bae074b | 2013-11-11 16:56:41 +0200 | [diff] [blame] | 2 | /* |
| 3 | * SATA Wrapper Register map |
| 4 | * |
| 5 | * (C) Copyright 2013 |
| 6 | * Texas Instruments, <www.ti.com> |
Roger Quadros | bae074b | 2013-11-11 16:56:41 +0200 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef _TI_SATA_H |
| 10 | #define _TI_SATA_H |
| 11 | |
| 12 | /* SATA Wrapper module */ |
| 13 | #define TI_SATA_WRAPPER_BASE (OMAP54XX_L4_CORE_BASE + 0x141100) |
| 14 | /* SATA PHY Module */ |
| 15 | #define TI_SATA_PLLCTRL_BASE (OMAP54XX_L4_CORE_BASE + 0x96800) |
| 16 | |
| 17 | /* SATA Wrapper register offsets */ |
| 18 | #define TI_SATA_SYSCONFIG 0x00 |
| 19 | #define TI_SATA_CDRLOCK 0x04 |
| 20 | |
| 21 | /* Register Set */ |
| 22 | #define TI_SATA_SYSCONFIG_OVERRIDE0 (1 << 16) |
| 23 | #define TI_SATA_SYSCONFIG_STANDBY_MASK (0x3 << 4) |
| 24 | #define TI_SATA_SYSCONFIG_IDLE_MASK (0x3 << 2) |
| 25 | |
| 26 | /* Standby modes */ |
| 27 | #define TI_SATA_STANDBY_FORCE 0x0 |
| 28 | #define TI_SATA_STANDBY_NO (0x1 << 4) |
| 29 | #define TI_SATA_STANDBY_SMART_WAKE (0x3 << 4) |
| 30 | #define TI_SATA_STANDBY_SMART (0x2 << 4) |
| 31 | |
| 32 | /* Idle modes */ |
| 33 | #define TI_SATA_IDLE_FORCE 0x0 |
| 34 | #define TI_SATA_IDLE_NO (0x1 << 2) |
| 35 | #define TI_SATA_IDLE_SMART_WAKE (0x3 << 2) |
| 36 | #define TI_SATA_IDLE_SMART (0x2 << 2) |
| 37 | |
Roger Quadros | bae074b | 2013-11-11 16:56:41 +0200 | [diff] [blame] | 38 | #endif /* _TI_SATA_H */ |