From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cr2jJ-0005Ej-J3 for barebox@lists.infradead.org; Thu, 23 Mar 2017 13:24:48 +0000 Received: by mail-pg0-x242.google.com with SMTP id 81so28194035pgh.3 for ; Thu, 23 Mar 2017 06:24:22 -0700 (PDT) From: Andrey Smirnov Date: Thu, 23 Mar 2017 06:23:53 -0700 Message-Id: <20170323132358.8539-10-andrew.smirnov@gmail.com> In-Reply-To: <20170323132358.8539-1-andrew.smirnov@gmail.com> References: <20170323132358.8539-1-andrew.smirnov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 09/14] at91sam9x5ek: Configure MMC in DT To: barebox@lists.infradead.org Cc: Andrey Smirnov Signed-off-by: Andrey Smirnov --- arch/arm/boards/at91sam9x5ek/init.c | 20 -------------------- arch/arm/dts/at91sam9x5ek.dts | 5 +++++ 2 files changed, 5 insertions(+), 20 deletions(-) diff --git a/arch/arm/boards/at91sam9x5ek/init.c b/arch/arm/boards/at91sam9x5ek/init.c index fca5e7d..8acb23c 100644 --- a/arch/arm/boards/at91sam9x5ek/init.c +++ b/arch/arm/boards/at91sam9x5ek/init.c @@ -168,25 +168,6 @@ static void ek_add_device_lcdc(void) static void ek_add_device_lcdc(void) {} #endif -/* - * MCI (SD/MMC) - */ -/* mci0 detect_pin is revision dependent */ -static struct atmel_mci_platform_data mci0_data = { - .bus_width = 4, - .detect_pin = AT91_PIN_PD15, - .wp_pin = -EINVAL, -}; - -static void ek_add_device_mci(void) -{ - if (at91sam9x5ek_cm_is_vendor(VENDOR_COGENT)) - mci0_data.detect_pin = -EINVAL; - - /* MMC0 */ - at91_add_device_mci(0, &mci0_data); -} - static const struct spi_board_info ek_cm_cogent_spi_devices[] = { { .name = "mtd_dataflash", @@ -255,7 +236,6 @@ static int at91sam9x5ek_devices_init(void) ek_add_device_nand(); ek_add_device_eth(); ek_add_device_spi(); - ek_add_device_mci(); ek_add_device_usb(); ek_add_device_lcdc(); diff --git a/arch/arm/dts/at91sam9x5ek.dts b/arch/arm/dts/at91sam9x5ek.dts index f9ae091..00bb86a 100644 --- a/arch/arm/dts/at91sam9x5ek.dts +++ b/arch/arm/dts/at91sam9x5ek.dts @@ -9,6 +9,11 @@ #include / { + aliases { + mmc0 = &mmc0; + mmc1 = &mmc1; + }; + i2c-gpio-0 { status = "okay"; }; -- 2.9.3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox