summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/southbridge/amd/agesa/hudson/sata.c6
-rw-r--r--src/southbridge/amd/pi/hudson/sata.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/southbridge/amd/agesa/hudson/sata.c b/src/southbridge/amd/agesa/hudson/sata.c
index c2348a963d..f04dd5980c 100644
--- a/src/southbridge/amd/agesa/hudson/sata.c
+++ b/src/southbridge/amd/agesa/hudson/sata.c
@@ -13,12 +13,12 @@ static void sata_init(struct device *dev)
/**************************************
* Configure the SATA port multiplier *
**************************************/
- #define BYTE_TO_DWORD_OFFSET(x) (x/4)
+ #define BYTE_TO_DWORD_OFFSET(x) (x / 4)
#define AHCI_BASE_ADDRESS_REG 0x24
#define MISC_CONTROL_REG 0x40
- #define UNLOCK_BIT (1<<0)
+ #define UNLOCK_BIT (1 << 0)
#define SATA_CAPABILITIES_REG 0xFC
- #define CFG_CAP_SPM (1<<12)
+ #define CFG_CAP_SPM (1 << 12)
volatile u32 *ahci_ptr =
(u32*)(uintptr_t)(pci_read_config32(dev, AHCI_BASE_ADDRESS_REG) & 0xFFFFFF00);
diff --git a/src/southbridge/amd/pi/hudson/sata.c b/src/southbridge/amd/pi/hudson/sata.c
index dd1e1824b5..381f7d3da9 100644
--- a/src/southbridge/amd/pi/hudson/sata.c
+++ b/src/southbridge/amd/pi/hudson/sata.c
@@ -13,12 +13,12 @@ static void sata_init(struct device *dev)
/**************************************
* Configure the SATA port multiplier *
**************************************/
- #define BYTE_TO_DWORD_OFFSET(x) (x/4)
+ #define BYTE_TO_DWORD_OFFSET(x) (x / 4)
#define AHCI_BASE_ADDRESS_REG 0x24
#define MISC_CONTROL_REG 0x40
- #define UNLOCK_BIT (1<<0)
+ #define UNLOCK_BIT (1 << 0)
#define SATA_CAPABILITIES_REG 0xFC
- #define CFG_CAP_SPM (1<<12)
+ #define CFG_CAP_SPM (1 << 12)
volatile u32 *ahci_ptr =
(u32*)(pci_read_config32(dev, AHCI_BASE_ADDRESS_REG) & 0xFFFFFF00);