eukrea_mbimxsd25-baseboard: add SD card detect
Subsystems (3)
PATCH 1/2 eukrea_mbimxsd25-baseboard: add SD card detect
--- arch/arm/mach-imx/eukrea_mbimxsd25-baseboard.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-)
arch/arm/mach-imx/eukrea_mbimxsd25-baseboard.c +7 -1
@@ -34,6 +34,7 @@#include <mach/mx25.h> #include <mach/imx-uart.h> #include <mach/audmux.h> +#include <mach/esdhc.h> #include "devices-imx25.h"
@@ -242,6 +243,11 @@ struct imx_ssi_platform_data eukrea_mbimxsd_ssi_pdata __initconst = { .flags = IMX_SSI_SYN | IMX_SSI_NET | IMX_SSI_USE_I2S_SLAVE, }; +static struct esdhc_platform_data sd1_pdata = { + .cd_gpio =GPIO_SD1CD , + .wp_gpio = -EINVAL , +}; +/* * system init for baseboard usage. Will be called by cpuimx25 init. *
@@ -275,7 +281,7 @@ void __init eukrea_mbimxsd25_baseboard_init(void)imx25_add_imx_ssi (0 , &eukrea_mbimxsd_ssi_pdata);imx25_add_flexcan1 (NULL ); -imx25_add_sdhci_esdhc_imx (0 ,NULL ); +imx25_add_sdhci_esdhc_imx (0 , &sd1_pdata);gpio_request (GPIO_LED1 ,"LED1" );gpio_direction_output (GPIO_LED1 ,1 );
Signature · 1 line
1.7.4
PATCH 2/2 i.MX25: add sdma clock definitions
--- arch/arm/mach-imx/clock-imx25.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
arch/arm/mach-imx/clock-imx25.c +3 -0
@@ -228,6 +228,7 @@ DEFINE_CLOCK(esdhc1_per_clk, 0, CCM_CGCR0, 3, get_rate_esdhc1, NULL,DEFINE_CLOCK (esdhc2_ahb_clk,0 ,CCM_CGCR0 ,22 , get_rate_esdhc2,NULL ,NULL );DEFINE_CLOCK (esdhc2_per_clk,0 ,CCM_CGCR0 ,4 , get_rate_esdhc2,NULL , &esdhc2_ahb_clk); +DEFINE_CLOCK (sdma_ahb_clk,0 ,CCM_CGCR0 ,26 ,NULL ,NULL ,NULL );DEFINE_CLOCK (fec_ahb_clk,0 ,CCM_CGCR0 ,23 ,NULL ,NULL ,NULL );DEFINE_CLOCK (lcdc_ahb_clk,0 ,CCM_CGCR0 ,24 ,NULL ,NULL ,NULL );DEFINE_CLOCK (lcdc_per_clk,0 ,CCM_CGCR0 ,7 ,NULL ,NULL , &lcdc_ahb_clk);
@@ -253,6 +254,7 @@ DEFINE_CLOCK(lcdc_clk, 0, CCM_CGCR1, 29, get_rate_lcdc, NULL, &lcdc_per_clk);DEFINE_CLOCK (wdt_clk,0 ,CCM_CGCR2 ,19 , get_rate_ipg,NULL ,NULL );DEFINE_CLOCK (ssi1_clk,0 ,CCM_CGCR2 ,11 , get_rate_ssi1,NULL , &ssi1_per_clk);DEFINE_CLOCK (ssi2_clk,1 ,CCM_CGCR2 ,12 , get_rate_ssi2,NULL , &ssi2_per_clk); +DEFINE_CLOCK (sdma_clk,0 ,CCM_CGCR2 ,6 , get_rate_ipg,NULL , &sdma_ahb_clk);DEFINE_CLOCK (esdhc1_clk,0 ,CCM_CGCR1 ,13 , get_rate_esdhc1,NULL , &esdhc1_per_clk); DEFINE_CLOCK(esdhc2_clk, 1, CCM_CGCR1, 14, get_rate_esdhc2, NULL,
@@ -304,6 +306,7 @@ static struct clk_lookup lookups[] = { _REGISTER_CLOCK(NULL, "audmux", audmux_clk) _REGISTER_CLOCK("flexcan.0", NULL, can1_clk) _REGISTER_CLOCK("flexcan.1", NULL, can2_clk) + _REGISTER_CLOCK("imx-sdma", NULL, sdma_clk) };int __init mx25_clocks_init (void )
Signature · 1 line
1.7.4
PATCH 2/2 i.MX25: add sdma clock definitions
Hi
I have done the same yesterday
Quoted 26 lines · Eric B?nard
Signed-off-by Eric B?nard <[email protected]>--- arch/arm/mach-imx/clock-imx25.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)arch/arm/mach-imx/clock-imx25.c +2
-0@@ -228,6 +228,7 @@ DEFINE_CLOCK(esdhc1_per_clk, 0, CCM_CGCR0, 3, get_rate_esdhc1, NULL,DEFINE_CLOCK (esdhc2_ahb_clk,0 ,CCM_CGCR0 ,22 , get_rate_esdhc2,NULL ,NULL );DEFINE_CLOCK (esdhc2_per_clk,0 ,CCM_CGCR0 ,4 , get_rate_esdhc2,NULL , &esdhc2_ahb_clk); +DEFINE_CLOCK (sdma_ahb_clk,0 ,CCM_CGCR0 ,26 ,NULL ,NULL ,NULL );DEFINE_CLOCK (fec_ahb_clk,0 ,CCM_CGCR0 ,23 ,NULL ,NULL ,NULL );DEFINE_CLOCK (lcdc_ahb_clk,0 ,CCM_CGCR0 ,24 ,NULL ,NULL ,NULL );DEFINE_CLOCK (lcdc_per_clk,0 ,CCM_CGCR0 ,7 ,NULL ,NULL , &lcdc_ahb_clk);@@ -253,6 +254,7 @@ DEFINE_CLOCK(lcdc_clk, 0, CCM_CGCR1, 29, get_rate_lcdc, NULL, &lcdc_per_clk);DEFINE_CLOCK (wdt_clk,0 ,CCM_CGCR2 ,19 , get_rate_ipg,NULL ,NULL );DEFINE_CLOCK (ssi1_clk,0 ,CCM_CGCR2 ,11 , get_rate_ssi1,NULL , &ssi1_per_clk);DEFINE_CLOCK (ssi2_clk,1 ,CCM_CGCR2 ,12 , get_rate_ssi2,NULL , &ssi2_per_clk); +DEFINE_CLOCK (sdma_clk,0 ,CCM_CGCR2 ,6 , get_rate_ipg,NULL , &sdma_ahb_clk);DEFINE_CLOCK (esdhc1_clk,0 ,CCM_CGCR1 ,13 , get_rate_esdhc1,NULL , &esdhc1_per_clk); DEFINE_CLOCK(esdhc2_clk, 1, CCM_CGCR1, 14, get_rate_esdhc2, NULL,
arch/arm/mach-imx/clock-imx25.c static struct clk_lookup lookups[] = { · line 312
Quoted 7 lines
arch/arm/mach-imx/clock-imx25.c +1
-0@@ -304,6 +306,7 @@ static struct clk_lookup lookups[] = { _REGISTER_CLOCK(NULL, "audmux", audmux_clk) _REGISTER_CLOCK("flexcan.0", NULL, can1_clk) _REGISTER_CLOCK("flexcan.1", NULL, can2_clk) + _REGISTER_CLOCK("imx-sdma", NULL, sdma_clk) };int __init mx25_clocks_init (void )
struct imx_imx_sdma_data imx25_imx_sdma_data __initconst =
- imx_imx_sdma_data_entry_single(MX25, 1, "imx25", 0);
+ imx_imx_sdma_data_entry_single(MX25, 1, "imx25", 1);
#endif /* ifdef CONFIG_SOC_IMX25 */
But in order to load a build in kernel there is some problem with the _to_version composition.
Michael Trimarchi
PATCH 1/2 eukrea_mbimxsd25-baseboard: add SD card detect
In reply to Eric BénardQuoted 1 line · Eric B?nard
Signed-off-by Eric B?nard <[email protected]>
Please wait with those patches until the final driver modifications are applied to mmc-next. mx51-issues may cause some changes.
Signature · 9 lines
Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20110225/3fb8c45b/attachment.sig>
PATCH 1/2 eukrea_mbimxsd25-baseboard: add SD card detect
Quoted 5 lines · Wolfram Sang
Quoted 1 line · Eric B?nard
Signed-off-by Eric B?nard <[email protected]>Please wait with those patches until the final driver modifications are applied to mmc-next. mx51-issues may cause some changes.
Sascha, you can go ahead now. All of Eric's SD-related patches are:
Signature · 9 lines
Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20110226/817dfe99/attachment.sig>