summaryrefslogtreecommitdiffstats
path: root/drivers/mci/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* mci: Add am654 SDHCI driverSascha Hauer2023-11-061-0/+1
| | | | | Link: https://lore.barebox.org/20230803105003.4088205-17-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: Add dwcmshc-sdhci driverJules Maselbas2023-08-211-0/+1
| | | | | | | | | | | | | | The dwcmshc driver started as a modification of the dove-sdhci driver. This new dwcmshc driver has been heavily reworked to be closer to the rockchip-dwcmshc-sdhci driver, both drivers are for the same IP from Synopsys DesignWare Cores. This new dwcmshc driver use new features introduced in common sdhci code, mainly to support v4_mode and 64-bit DMA. Signed-off-by: Jules Maselbas <jmaselbas@kalray.eu> Link: https://lore.barebox.org/20230818142244.17157-7-jmaselbas@kalray.eu Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: remove s3c driverSascha Hauer2023-03-011-1/+0
| | | | | | | | | The Samsung architecture has been removed, remove the mci driver only used on this architecture as well. Reviewed-by: Marco Felsch <m.felsch@pengutronix.de> Link: https://lore.barebox.org/20230228135727.1602351-3-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* drivers: migrate "GPL-2.0" license identifiers to SPDX 2.0Roland Hieber2021-11-221-1/+1
| | | | | | | | | | "GPL-2.0-only" was introduced in SPDX 2.0, and the old identifier "GPL-2.0" is now considered deprecated; see <https://spdx.org/licenses>. Fixes: 28f4a6a4df76f0f1581d (2021-10-30, "drivers: add missing SPDX-License-Identifier") Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.barebox.org/20211117113851.2022669-2-rhi@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* drivers: add missing SPDX-License-IdentifierAhmad Fatoum2021-11-011-0/+1
| | | | | | | | | | | | | | | | | | | | This adds the suitable SPDX-License-Identifier to all files in drivers/ that previously lacked one. To aid manual inspection, following heuristics can be used: * No changes outside of comments/whitespace: git show -U0 HEAD | rg -v '^(@@|diff|index)|[-+]([-+]|//|#|[\s/]\*)' * -or-later come in pairs: git show --inter-hunk-context=19 HEAD | \ perl -0777 -F'/^@/gm' -ne 'for (@F) { @m = /later/g; print if @m & 1 }' Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20211030175632.2276077-4-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: Add support for Rockchip variant of the dwcmshcSascha Hauer2021-06-111-0/+1
| | | | | | | | | | | This adds support for a Rockchip derivation of the DWCMSHC controller which itself is a SDHCI controller found on some Rockchip SoCs like the RK3568. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Link: https://lore.barebox.org/20210607104411.23071-13-s.hauer@pengutronix.de Link: https://lore.barebox.org/20210610144720.25620-3-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: atmel_mci: add PBL supportOleksij Rempel2021-05-031-1/+2
| | | | | | | | | Move most of the atmel_mci code to atmel_mci_common.c and introduce atmel_mci_pbl.c for the PBL part. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Link: https://lore.barebox.org/20210423142829.29468-2-o.rempel@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: sdhci: atmel: extend driver for PBL usageAhmad Fatoum2020-07-111-0/+1
| | | | | | | | | The BootROM resets both the SD/MMC host controller and the pin controller, but the card itself remains in transfer mode. If we redo host-side setup, we can directly read new blocks off the card. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: sdhci: add Atmel SDHCI (sama5d2, sam9x60) supportAhmad Fatoum2020-04-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | We already support Ethernet and QSPI on the SAMA5D2, but MMC was so far missing. Port over the at91bootstrap driver to barebox. Some parts are based on the U-Boot and Linux implementations. To support future use in PBL, the driver model and driver implementation parts are split into separate files with the latter being compilable for PBL as well. Registers, which are found in the common Linux sdhci.h have been added to the barebox sdhci.h. Registers which appear to be Atmel specific have been added to atmel-sdhci-common.c instead. The driver still misses some parts, which will follow later: - ADMA is unsupported, PIO only for now - Only the SD/MMC controller already enabled by the first stage bootloader is supported. Further clocking changes appear to be necessary to enable another Both can be retrofitted later on and don't hold us back from booting from MMC. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: imx-esdhc-pbl: Use sdhci_transfer_data()Andrey Smirnov2019-12-041-1/+1
| | | | | | | | Drop some extra code by converting esdhc_do_data() to use sdhci_transfer_data(). Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: imx-esdhc-pbl: Share IO accessors with regular driverAndrey Smirnov2019-12-041-2/+2
| | | | | | | | | With a bit of a change to PBL ESDHC initialization code it is possible to share all of the low-level I/O accessor code with the regular driver, including sharing definitions of flags describing HW's quirks. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: add Arasan SDHCI controller driverThomas Haemmerle2019-11-211-0/+1
| | | | | | | | | | | | | | | | | | | | This adds support for the Arasan SDHCI controller, which is found on the Xilinx Zynq 7000 and ZynqMP SoCs. This just adds very basic PIO read/write support. This submission is also missing the tap delay configuration, which is required for the high speed modes on the ZynqMP, but this can be added in a separate patch once it is clear how the interface for this feature should look like. The driver skeleton was provided by Michael, most of the actual driver porting work was done by Thomas and some coding style fixes and write support bug fixes added by Lucas. Signed-off-by: Michael Tretter <m.tretter@pengutronix.de> Signed-off-by: Thomas Haemmerle <thomas.haemmerle@wolfvision.net> Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: Add sdhci helperSascha Hauer2019-11-191-0/+1
| | | | | | | | We have several SDHCI compatible drivers in the tree. This starts with a set of generic helper functions for these drivers to share some common functionality. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: add support for stm32mp sd/mmc controllerOleksij Rempel2019-11-061-0/+1
| | | | | | | | | | This driver was ported from u-boot v2019.10. Instead of devicetree compatible it is using ARM AMBA id. So, there is no need to patch devicetree with different compatible as it was implemented in u-boot. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: add driver for BCM283x sdhost coreLucas Stach2019-05-061-0/+1
| | | | | | | | | | The sdhost is a simple MMC controller found on the Broadcom BCM283x line of SoCs. The driver code was ported from U-Boot and then simplified a bit, by dropping a lot of the state tracking. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* esdhc-xload: Move to drivers/mciSascha Hauer2019-03-051-0/+1
| | | | | | | The esdhc-xload code will be used by upcoming Layerscape support aswell, so move it from architecture code to drivers/mci/. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: add Marvell Dove SDHCI driverMichael Grzeschik2017-04-191-0/+1
| | | | | | | | | | | | | This adds a driver for the SDHCI controller found on Marvell Dove SoCs. Despite a missing pinctrl driver, corresponding MPP config has to be set on a per board basis. This driver was succesfully tested with Solidrun Dove Cubox. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* bcm2835: introduce mach-bcm283xAlexander Aring2016-01-041-1/+1
| | | | | | | | | | | | This patch changes the most part of mach-bcm2835 to mach-bcm283x. This prepares to add RPi2 support which is a bcm2836. This patch changes the Kconfig entry namens to BCM283X for drivers only. These drivers should working the same in bcm2836. While updating defconfig I added LED support/trigger option. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* tegra: add SDMMC controller driverLucas Stach2013-12-041-0/+1
| | | | | | | | Confirmed working on Tegra 2, may need some small adjustments for Tegra 3. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add: mmci driversJean-Christophe PLAGNIOL-VILLARD2013-10-221-0/+1
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: add designware mmc controller supportSascha Hauer2013-09-111-0/+1
| | | | | | Based on the U-Boot driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MCI: Sort Makefile entriesAlexander Shiyan2013-05-301-9/+9
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: OMAP MCI: Move TWL6030 power initialization into OMAP directoryAlexander Shiyan2013-05-301-1/+0
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Added sd driver for bcm2835 (Raspberry PI)wilhelm2013-05-301-0/+1
| | | | | | Replaced defines according to sdhci.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: Using MFD_xx prefix for symbolsAlexander Shiyan2013-02-181-1/+1
| | | | | | | | This patch provides rename MFD-related symbols for using MFD-prefix. Additionally, sorting mfd/Kconfig and mfd/Makefile records. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* omap_hsmmc: setup mmc voltage on twl6030Alexander Aring2011-12-211-0/+1
| | | | | | | | Support the setup of the mmc voltage, when booting OMAP4 with twl6030 from nand. Signed-off-by: Alexander Aring <a.aring@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* drivers/mci: add PXA host controllerRobert Jarzmik2011-12-081-0/+1
| | | | | | | | | | Add a simple PIO based host controller for MMC and SD cards on PXA SoCs. Reads and writes are available, and no usage is made of DMA or IRQs. SPI mode is not supported yet. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: Add MCI over SPI supportFranck Jullien2011-11-251-0/+1
| | | | | | | | | | | This patch adds MMC over SPI support to mci-core.c and mci_spi.c driver. This driver is useful when SOC doesn't have built-in MCI component. Tested with nios, 2Go SD-CARD and FAT file system. Signed-off-by: Franck Jullien <franck.jullien@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: add Atmel AT91 MCI driverHubert Feurstein2011-06-161-0/+1
| | | | | | | The driver supports push and pull transfers. Tested on at91sam9m10 SoC. Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
* mci: Add omap hsmmc driverSascha Hauer2011-04-041-0/+1
| | | | | | | This driver is based on the U-Boot omap hsmmc driver by Sukumar Ghorai <s-ghorai@ti.com>. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci i.MX23/28: rename driver to mxs.cSascha Hauer2011-03-081-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: Add i.MX esdhc supportSascha Hauer2010-10-111-0/+1
| | | | | | | | | This adds a driver for the esdhc controller found on Freescale i.MX25/35/51 SoCs. This code is based on the U-Boot driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mci: Add i.MX27/31 driverSascha Hauer2010-10-111-0/+1
| | | | | | Add i.MX27/31 driver Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add S3C2440 MCI card supportJuergen Beisert2010-10-111-0/+1
| | | | | | | | | | Adding MCI card support for S3C2440 CPUs. This is for reference only, as there is currently no user in the barebox tree. Maybe one with access to the A9M2440 development kit can check it on his/her system. Checked here with my own S3C2440 based system which is not in the barebox tree. Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add i.MX23 MCI card supportJuergen Beisert2010-10-111-0/+1
| | | | | | | | | Adding MCI card support for STM378x/i.MX23 CPUs. This is for reference only, as this architecture is currently not part of barebox (but will coming soon). Its tested on the i.MX23 based ChumbyOne. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add MCI card support to bareboxJuergen Beisert2010-10-111-0/+1
This adds the basic framework to handle MCI cards in barebox. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>