xref: /aosp_15_r20/external/coreboot/src/soc/intel/apollolake/include/soc/ahci.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #ifndef _SOC_APOLLOLAKE_AHCI_H_
4 #define _SOC_APOLLOLAKE_AHCI_H_
5 
6 #include <soc/soc_chip.h>
7 
8 #define AHCI_TMP_BASE_ADDR		0x9872c000
9 
10 #define AHCI_CAP			0x0
11 #define AHCI_CAP_ISS_MASK		0x00f00000
12 #define  AHCI_SPEED(speed)		(speed << 20)
13 
14 /* Set SATA controller speed. */
15 void ahci_set_speed(enum sata_speed_limit speed);
16 
17 #endif /* _SOC_APOLLOLAKE_AHCI_H_ */
18