From 369bf26b206c87a8f877954b50320aa95a6fd08e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 5 Aug 2013 16:21:24 -0600 Subject: [PATCH] SAMA5: Add HSMCI memory card driver support --- ChangeLog | 10 + Documentation/NuttX.html | 8 +- arch/arm/src/sama5/Kconfig | 37 +- arch/arm/src/sama5/Make.defs | 13 +- arch/arm/src/sama5/chip/sam_hsmci.h | 364 +++ arch/arm/src/sama5/sam_dmac.c | 27 +- arch/arm/src/sama5/sam_dmac.h | 41 +- arch/arm/src/sama5/sam_hsmci.c | 2918 +++++++++++++++++++++++++ arch/arm/src/sama5/sam_hsmci.h | 143 ++ configs/sama5d3x-ek/README.txt | 62 + configs/sama5d3x-ek/src/Makefile | 12 + configs/sama5d3x-ek/src/sam_at25.c | 166 ++ configs/sama5d3x-ek/src/sam_hsmci.c | 296 +++ configs/sama5d3x-ek/src/sam_nsh.c | 102 +- configs/sama5d3x-ek/src/sama5d3x-ek.h | 91 + 15 files changed, 4208 insertions(+), 82 deletions(-) create mode 100644 arch/arm/src/sama5/chip/sam_hsmci.h create mode 100644 arch/arm/src/sama5/sam_hsmci.c create mode 100644 arch/arm/src/sama5/sam_hsmci.h create mode 100644 configs/sama5d3x-ek/src/sam_at25.c create mode 100644 configs/sama5d3x-ek/src/sam_hsmci.c diff --git a/ChangeLog b/ChangeLog index 7548bb0efa5..2d4dd58e37f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5297,3 +5297,13 @@ SPI driver while testing the SAMA5 SPI driver: If CONFIG_SPI_OWNBUS is not set, the driver will not configure the SPI mode correctly (2013-8-5). + * configs/sama5d3x-ek/src/sam_at25.c: Move AT25 initialization logic + out of sam_nsh.c and into a separate file where it can be better + shared (2013-8-5). + * arch/arm/src/sama5/sam_hsmci.c, sam_hsmci.h, and chip.sam_hsmci.h: + Add register definitions and a driver for the (3) HSMCI memory card + interfaces provided by the SAMA5. Leveraged from the SAM3/4 and + untested on initial commit (2013-8-5). + * nuttx/configs/sama5d3x-ek/src/sam_hsmci.c and sam_nsh.c: Add support + for the (2) SD card slots provided on the SAMA5D3x-EK boards. + Untested on initial commit (2013-8-5). diff --git a/Documentation/NuttX.html b/Documentation/NuttX.html index 00246d0254c..246fdef3cf9 100644 --- a/Documentation/NuttX.html +++ b/Documentation/NuttX.html @@ -8,7 +8,7 @@

NuttX RTOS

-

Last Updated: July 31, 2013

+

Last Updated: August 5, 2013

@@ -1992,12 +1992,14 @@