Added sd driver for bcm2835 (Raspberry PI)
Subsystems (4)
PATCH 1/1 Added sd driver for bcm2835 (Raspberry PI)
Replaced defines according to sdhci.h
--- arch/arm/mach-bcm2835/core.c | 1 + drivers/mci/Kconfig | 4 + drivers/mci/Makefile | 1 + drivers/mci/mci-bcm2835.c | 591 +++++++++++++++++++++++++++++++++++++++++++ drivers/mci/mci-bcm2835.h | 73 ++++++ 5 files changed, 670 insertions(+) create mode 100644 drivers/mci/mci-bcm2835.c create mode 100644 drivers/mci/mci-bcm2835.h
arch/arm/mach-bcm2835/core.c +1 -0
@@ -70,6 +70,7 @@ static int bcm2835_dev_init(void) {add_generic_device ("bcm2835-gpio" ,0 ,NULL ,BCM2835_GPIO_BASE ,0xB0 ,IORESOURCE_MEM ,NULL );add_generic_device ("bcm2835-cs" ,DEVICE_ID_SINGLE ,NULL ,BCM2835_ST_BASE ,0x1C ,IORESOURCE_MEM ,NULL ); +add_generic_device ("bcm2835_mci" ,0 ,NULL ,BCM2835_EMMC_BASE ,0xFC ,IORESOURCE_MEM ,NULL );return 0 ; }coredevice_initcall (bcm2835_dev_init);
drivers/mci/Kconfig +4 -0
@@ -45,6 +45,10 @@ config MCI_S3C Enable this entry to add support to read and write SD cards on a Samsung S3C24xx based system. +config MCI_BCM2835 + bool "MCI support for BCM2835" + depends on ARCH_BCM2835 + config MCI_IMX bool "i.MX" depends on ARCH_IMX27 || ARCH_IMX31
drivers/mci/Makefile +1 -0
@@ -8,3 +8,4 @@ obj-$(CONFIG_MFD_TWL6030) += twl6030.o obj-$(CONFIG_MCI_PXA) += pxamci.o obj-$(CONFIG_MCI_ATMEL) += atmel_mci.o obj-$(CONFIG_MCI_SPI) += mci_spi.o +obj-$(CONFIG_MCI_BCM2835) += mci-bcm2835.o
drivers/mci/mci-bcm2835.c new file +591 -0
591 lines not on this page · raw message
drivers/mci/mci-bcm2835.h new file +73 -0
73 lines not on this page · raw message
Signature · 7 lines
1.8.2.2 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 8 lines · wilhelm
Replaced defines according to
sdhci.h--- arch/arm/mach-bcm2835/core.c | 1 + drivers/mci/Kconfig | 4 + drivers/mci/Makefile | 1 + drivers/mci/mci-bcm2835.c | 591 +++++++++++++++++++++++++++++++++++++++++++ drivers/mci/mci-bcm2835.h | 73 ++++++
Applied, thanks
Sascha
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox