summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/sam34/sam_hsmci.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/arm/src/sam34/sam_hsmci.c')
-rw-r--r--nuttx/arch/arm/src/sam34/sam_hsmci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/sam34/sam_hsmci.c b/nuttx/arch/arm/src/sam34/sam_hsmci.c
index f9ee665a8..6df8610cb 100644
--- a/nuttx/arch/arm/src/sam34/sam_hsmci.c
+++ b/nuttx/arch/arm/src/sam34/sam_hsmci.c
@@ -64,7 +64,7 @@
#include "sam_dmac.h"
#include "sam_hsmci.h"
#include "chip/sam_dmac.h"
-#include "chip/sam_pmc.h"
+#include "chip/sam3u_pmc.h"
#include "chip/sam_hsmci.h"
#include "chip/sam_pinmap.h"
@@ -667,7 +667,7 @@ static inline void sam_enable(void)
{
/* Enable the MCI peripheral clock */
- putreg32((1 << SAM_PID_HSMCI), SAM_PMC_PCER);
+ sam_hsmci_enableclk();
/* Enable the MCI and the Power Saving */
@@ -1223,7 +1223,7 @@ static void sam_reset(FAR struct sdio_dev_s *dev)
/* Enable the MCI clock */
flags = irqsave();
- putreg32((1 << SAM_PID_HSMCI), SAM_PMC_PCER);
+ sam_hsmci_enableclk();
fdbg("PCSR: %08x\n", getreg32(SAM_PMC_PCSR));
/* Reset the MCI */