Provide sdhci driver for mmp2 and pxa9xx
Subsystems (5)
v4 cover Provide sdhci driver for mmp2 and pxa9xx
v3->v4
Update patch sequence and mmp2_defconfig
update driver/mmc/host/Kconfig
Remove get_ro
The patches to provide separate sdhci driver for mmp2 and pxa910 based on sdhci-platfm.
Rename to sdhci-pxav3.c and sdhci-pxav2.c
Remove obsolete sdhci-pxa.c, which is used to share among pxa serious, since under this method, platform difference have to be put under arch/arm, which is not easy to track.
As a result, mmp2 mmc resource should be updated accordingly.
Zhangfei Gao (5):
mmc: support sdhci-pxav3.c
mmc: support sdhci-pxav2.c
ARM: mmp2: update mmp2 mmc resource
mmc: delete obsolete sdhci-pxa.c
ARM: mmp2: update mmp2_defconfig to support mmc
arch/arm/configs/mmp2_defconfig | 9 +- arch/arm/mach-mmp/brownstone.c | 10 +- arch/arm/mach-mmp/jasper.c | 2 +- arch/arm/mach-mmp/mmp2.c | 16 +- arch/arm/plat-pxa/include/plat/sdhci.h | 35 +++- drivers/mmc/host/Kconfig | 24 ++- drivers/mmc/host/Makefile | 3 +- drivers/mmc/host/sdhci-pxa.c | 303 -------------------------------- drivers/mmc/host/sdhci-pxav2.c | 244 +++++++++++++++++++++++++ drivers/mmc/host/sdhci-pxav3.c | 289 ++++++++++++++++++++++++++++++ 10 files changed, 609 insertions(+), 326 deletions(-) delete mode 100644 drivers/mmc/host/sdhci-pxa.c create mode 100644 drivers/mmc/host/sdhci-pxav2.c create mode 100644 drivers/mmc/host/sdhci-pxav3.c
PATCH v4 1/5 mmc: support sdhci-pxav3.c
SDHCI driver for PXAV3 SoCs, such as MMP2, the driver based on sdhci-pltfm to handle resource etc.
--- arch/arm/plat-pxa/include/plat/sdhci.h | 35 ++++- drivers/mmc/host/Kconfig | 12 ++ drivers/mmc/host/Makefile | 1 + drivers/mmc/host/sdhci-pxav3.c | 289 ++++++++++++++++++++++++++++++++ 4 files changed, 332 insertions(+), 5 deletions(-) create mode 100644 drivers/mmc/host/sdhci-pxav3.c
arch/arm/plat-pxa/include/plat/sdhci.h +30 -5
@@ -15,21 +15,46 @@/* pxa specific flag */ /* Require clock free running */ -#define PXA_FLAG_DISABLE_CLOCK_GATING (1<<0) - +#define PXA_FLAG_ENABLE_CLOCK_GATING (1<<0) +/* card alwayes wired to host, like on-chip emmc */ +#define PXA_FLAG_CARD_PERMANENT (1<<1)/* Board design supports 8-bit data on SD/SDIO BUS */ #define PXA_FLAG_SD_8_BIT_CAPABLE_SLOT (1<<2)/* * struct pxa_sdhci_platdata() - Platform device data for PXA SDHCI -* @max_speed: the maximum speed supported -* @quirks: quirks of specific device * @flags: flags for platform requirement +* @clk_delay_cycles: +* mmp2: each step is roughly 100ps, 5bits width +* pxa910: each step is 1ns, 4bits width +* @clk_delay_sel: select clk_delay, used on pxa910 +* 0: choose feedback clk +* 1: choose feedback clk + delay value +* 2: choose internal clk +* @clk_delay_enable: enable clk_delay or not, used on pxa910 +* @ext_cd_gpio: gpio pin used for external CD line +* @ext_cd_gpio_invert: invert values for external CD gpio line +* @max_speed: the maximum speed supported +* @host_caps: Standard MMC host capabilities bit field. +* @quirks: quirks of platfrom +* @pm_caps: pm_caps of platfrom */ struct sdhci_pxa_platdata { +unsigned int flags; +unsigned int clk_delay_cycles; +unsigned int clk_delay_sel; +bool clk_delay_enable; +unsigned int ext_cd_gpio; +bool ext_cd_gpio_invert;unsigned int max_speed; +unsigned int host_caps;unsigned int quirks; -unsigned int flags; +unsigned int pm_caps; +}; + +struct sdhci_pxa { +u8 clk_enable; +u8 power_mode; };#endif /* __PLAT_PXA_SDHCI_H */
drivers/mmc/host/Kconfig +12 -0
@@ -193,6 +193,18 @@ config MMC_SDHCI_PXA If unsure, say N. +config MMC_SDHCI_PXAV3 + tristate "Marvell MMP2 SD Host Controller support (PXAV3)" + select MMC_SDHCI + select MMC_SDHCI_PLTFM + default CPU_MMP2 + help + This selects the Marvell(R) PXAV3 SD Host Controller. + If you have a MMP2 platform with SD Host Controller + and a card slot, say Y or M here. + + If unsure, say N. + config MMC_SDHCI_SPEAR tristate "SDHCI support on ST SPEAr platform" depends on MMC_SDHCI && PLAT_SPEAR
drivers/mmc/host/Makefile +1 -0
@@ -10,6 +10,7 @@ obj-$(CONFIG_MMC_MXS) += mxs-mmc.o obj-$(CONFIG_MMC_SDHCI) += sdhci.o obj-$(CONFIG_MMC_SDHCI_PCI) += sdhci-pci.o obj-$(CONFIG_MMC_SDHCI_PXA) += sdhci-pxa.o +obj-$(CONFIG_MMC_SDHCI_PXAV3) += sdhci-pxav3.o obj-$(CONFIG_MMC_SDHCI_S3C) += sdhci-s3c.o obj-$(CONFIG_MMC_SDHCI_SPEAR) += sdhci-spear.o obj-$(CONFIG_MMC_WBSD) += wbsd.o
drivers/mmc/host/sdhci-pxav3.c new file +289 -0
289 lines not on this page · raw message
Signature · 1 line
1.7.0.4
PATCH v4 2/5 mmc: support sdhci-pxav2.c
In reply to Zhangfei GaoSDHCI driver for PXAV2 SoCs, such as pxa910, the driver based on sdhci-pltfm to handle resource etc.
--- drivers/mmc/host/Kconfig | 12 ++ drivers/mmc/host/Makefile | 1 + drivers/mmc/host/sdhci-pxav2.c | 244 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 257 insertions(+), 0 deletions(-) create mode 100644 drivers/mmc/host/sdhci-pxav2.c
drivers/mmc/host/Kconfig +12 -0
@@ -205,6 +205,18 @@ config MMC_SDHCI_PXAV3 If unsure, say N. +config MMC_SDHCI_PXAV2 + tristate "Marvell PXA9XX SD Host Controller support (PXAV2)" + select MMC_SDHCI + select MMC_SDHCI_PLTFM + default CPU_PXA910 + help + This selects the Marvell(R) PXAV2 SD Host Controller. + If you have a PXA9XX platform with SD Host Controller + and a card slot, say Y or M here. + + If unsure, say N. + config MMC_SDHCI_SPEAR tristate "SDHCI support on ST SPEAr platform" depends on MMC_SDHCI && PLAT_SPEAR
drivers/mmc/host/Makefile +1 -0
@@ -11,6 +11,7 @@ obj-$(CONFIG_MMC_SDHCI) += sdhci.o obj-$(CONFIG_MMC_SDHCI_PCI) += sdhci-pci.o obj-$(CONFIG_MMC_SDHCI_PXA) += sdhci-pxa.o obj-$(CONFIG_MMC_SDHCI_PXAV3) += sdhci-pxav3.o +obj-$(CONFIG_MMC_SDHCI_PXAV2) += sdhci-pxav2.o obj-$(CONFIG_MMC_SDHCI_S3C) += sdhci-s3c.o obj-$(CONFIG_MMC_SDHCI_SPEAR) += sdhci-spear.o obj-$(CONFIG_MMC_WBSD) += wbsd.o
drivers/mmc/host/sdhci-pxav2.c new file +244 -0
244 lines not on this page · raw message
Signature · 1 line
1.7.0.4
PATCH v4 2/5 mmc: support sdhci-pxav2.c
Quoted 39 lines · Zhangfei Gao
SDHCI driver for PXAV2 SoCs, such as pxa910, the driver based on sdhci-pltfm to handle resource etc.
Signed-off-by Zhangfei Gao <[email protected]>Signed-off-by Jun Nie <[email protected]>Signed-off-by Qiming Wu <[email protected]>---
+++
b/drivers/mmc/host/sdhci-pxav2.cdrivers/mmc/host/sdhci-pxav2.c new file +31
-0+ +#define SD_FIFO_PARAM 0xe0 +#define DIS_PAD_SD_CLK_GATE 0x0400/* Turn on/off Dynamic SD Clock Gating */ +#define CLK_GATE_ON 0x0200/* Disable/enable Clock Gate */ +#define CLK_GATE_CTL 0x0100/* Clock Gate Control */ +#define CLK_GATE_SETTING_BITS (DIS_PAD_SD_CLK_GATE | \ + CLK_GATE_ON | CLK_GATE_CTL) + +#define SD_CLOCK_BURST_SIZE_SETUP 0xe6 +#define SDCLK_SEL_SHIFT 8 +#define SDCLK_SEL_MASK 0x3 +#define SDCLK_DELAY_SHIFT 10 +#define SDCLK_DELAY_MASK 0x3c + +#define SD_CE_ATA_2 0xea +#define MMC_CARD 0x1000 +#define MMC_WIDTH 0x0100 + +static void pxav2_set_private_registers (struct sdhci_host *host,u8 mask) +{ +struct platform_device *pdev =to_platform_device (mmc_dev (host->mmc)); +struct sdhci_pxa_platdata *pdata = pdev->dev.platform_data; + +if (mask ==SDHCI_RESET_ALL ) { +u16 tmp =0 ; + +/* +* tune timing of read data/command when crc error happen +* no performance impact +*/ +if (pdata->clk_delay_sel ==1 ) {
drivers/mmc/host/sdhci-pxav2.c line 72
Quoted 10 lines
drivers/mmc/host/sdhci-pxav2.c new file +10
-0+ tmp =readw (host->ioaddr +SD_CLOCK_BURST_SIZE_SETUP ); + + tmp &= ~(SDCLK_DELAY_MASK <<SDCLK_DELAY_SHIFT ); + tmp |= (pdata->clk_delay_cycles &SDCLK_DELAY_MASK ) + <<SDCLK_DELAY_SHIFT ; + tmp &= ~(SDCLK_SEL_MASK <<SDCLK_SEL_SHIFT ); + tmp |= (1 &SDCLK_SEL_MASK ) <<SDCLK_SEL_SHIFT ; + +writew (tmp, host->ioaddr +SD_CLOCK_BURST_SIZE_SETUP ); + }
There are 3 possible value for clk_delay_sel.
0 == do not use clk_delay_cycles
1 == use programmed clk_delay_cycles value (the code above) all other values use the sd_clk which was used to drive the output
The code about only handles 2 of the 3 cases
suggest
(if (pdata->clk_delay_sel) {Quoted 6 lines
drivers/mmc/host/sdhci-pxav2.c new file +6
-0+if (pdata->clk_delay_sel ==1 ) { + tmp =readw (host->ioaddr +SD_CLOCK_BURST_SIZE_SETUP ); + + tmp &= ~(SDCLK_DELAY_MASK <<SDCLK_DELAY_SHIFT ); + tmp |= (pdata->clk_delay_cycles &SDCLK_DELAY_MASK ) + <<SDCLK_DELAY_SHIFT ;
drivers/mmc/host/sdhci-pxav2.c
Quoted 10 lines
drivers/mmc/host/sdhci-pxav2.c new file +9
-0+ tmp &= ~(SDCLK_SEL_MASK <<SDCLK_SEL_SHIFT ); + tmp |=1 <<SDCLK_SEL_SHIFT ; + +writew (tmp, host->ioaddr +SD_CLOCK_BURST_SIZE_SETUP ); + }else { + tmp =readw (host->ioaddr +SD_CLOCK_BURST_SIZE_SETUP ); + tmp &= ~(SDCLK_SEL_MASK <<SDCLK_SEL_SHIFT ); + tmp |=2 <<SDCLK_SEL_SHIFT ; +writew (tmp, host->ioaddr +SD_CLOCK_BURST_SIZE_SETUP );
}
}Philip and Mark
Quoted 1 line
PATCH v4 2/5 mmc: support sdhci-pxav2.c
Quoted 26 lines
Quoted 13 lines
(quoted diff) +13
-0+static void pxav2_set_private_registers(struct sdhci_host *host, u8 mask) +{ + ? ? struct platform_device *pdev = to_platform_device(mmc_dev(host->mmc)); + ? ? struct sdhci_pxa_platdata *pdata = pdev->dev.platform_data; + + ? ? if (mask == SDHCI_RESET_ALL) { + ? ? ? ? ? ? u16 tmp = 0; + + ? ? ? ? ? ? /* + ? ? ? ? ? ? ?* tune timing of read data/command when crc error happen + ? ? ? ? ? ? ?* no performance impact + ? ? ? ? ? ? ?*/ + ? ? ? ? ? ? if (pdata->clk_delay_sel == 1) {Review
Quoted 10 lines
(quoted diff) +10
-0+ ? ? ? ? ? ? ? ? ? ? tmp = readw(host->ioaddr + SD_CLOCK_BURST_SIZE_SETUP); + + ? ? ? ? ? ? ? ? ? ? tmp &= ~(SDCLK_DELAY_MASK << SDCLK_DELAY_SHIFT); + ? ? ? ? ? ? ? ? ? ? tmp |= (pdata->clk_delay_cycles & SDCLK_DELAY_MASK) + ? ? ? ? ? ? ? ? ? ? ? ? ? ? << SDCLK_DELAY_SHIFT; + ? ? ? ? ? ? ? ? ? ? tmp &= ~(SDCLK_SEL_MASK << SDCLK_SEL_SHIFT); + ? ? ? ? ? ? ? ? ? ? tmp |= (1 & SDCLK_SEL_MASK) << SDCLK_SEL_SHIFT; + + ? ? ? ? ? ? ? ? ? ? writew(tmp, host->ioaddr + SD_CLOCK_BURST_SIZE_SETUP); + ? ? ? ? ? ? }There are 3 possible value for
clk_delay_sel.
Quoted 5 lines
0 ?== do not use
clk_delay_cycles
1 == use programmedclk_delay_cyclesvalue (the code above) all other values use thesd_clkwhich was used to drive the outputThe code about only handles 2 of the 3 cases
pxa910/920 only require two cases.
1, clk_delay_sel = 1 with delay value.
2, use default setting and directly use sd_clk. clk_delay_sel = 3.
Quoted 20 lines
suggest
? ? ? ?(if (
pdata->clk_delay_sel) {Quoted 16 lines
+ ? ? ? ? ? ? if (
pdata->clk_delay_sel== 1) {
+ ? ? ? ? ? ? ? ? ? ? tmp =readw(host->ioaddr + SD_CLOCK_BURST_SIZE_SETUP);(quoted diff) +13
-0+ + ? ? ? ? ? ? ? ? ? ? tmp &= ~(SDCLK_DELAY_MASK << SDCLK_DELAY_SHIFT); + ? ? ? ? ? ? ? ? ? ? tmp |= (pdata->clk_delay_cycles & SDCLK_DELAY_MASK) + ? ? ? ? ? ? ? ? ? ? ? ? ? ? << SDCLK_DELAY_SHIFT; + ? ? ? ? ? ? ? ? ? ? tmp &= ~(SDCLK_SEL_MASK << SDCLK_SEL_SHIFT); + ? ? ? ? ? ? ? ? ? ? tmp |= 1 << SDCLK_SEL_SHIFT; + + ? ? ? ? ? ? ? ? ? ? writew(tmp, host->ioaddr + SD_CLOCK_BURST_SIZE_SETUP); + ? ? ? ? ? ? } else { + ? ? ? ? ? ? ? ? ? ? tmp = readw(host->ioaddr + SD_CLOCK_BURST_SIZE_SETUP); + ? ? ? ? ? ? ? ? ? ? tmp &= ~(SDCLK_SEL_MASK << SDCLK_SEL_SHIFT); + ? ? ? ? ? ? ? ? ? ? tmp |= 2 ?<< SDCLK_SEL_SHIFT; + ? ? ? ? ? ? ? ? ? ? writew(tmp, host->ioaddr + SD_CLOCK_BURST_SIZE_SETUP);
The else is default setting on pxa910 after reset.
Quoted 11 lines
? ? ? ? ? ? ? ? ? }
? ? ? ? }Philip and Mark
Quoted 1 line
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH v4 2/5 mmc: support sdhci-pxav2.c
Quoted 52 lines · zhangfei gao
Quoted 26 lines
Quoted 13 lines
drivers/mmc/host/sdhci-pxav2.c new file +13
-0+static void pxav2_set_private_registers (struct sdhci_host *host,u8 mask) +{ +struct platform_device *pdev =to_platform_device (mmc_dev (host->mmc)); +struct sdhci_pxa_platdata *pdata = pdev->dev.platform_data; + +if (mask ==SDHCI_RESET_ALL ) { +u16 tmp =0 ; + +/* +* tune timing of read data/command when crc error happen +* no performance impact +*/ +if (pdata->clk_delay_sel ==1 ) {drivers/mmc/host/sdhci-pxav2.c line 72
Quoted 10 lines
drivers/mmc/host/sdhci-pxav2.c new file +10
-0+ tmp =readw (host->ioaddr +SD_CLOCK_BURST_SIZE_SETUP ); + + tmp &= ~(SDCLK_DELAY_MASK <<SDCLK_DELAY_SHIFT ); + tmp |= (pdata->clk_delay_cycles &SDCLK_DELAY_MASK ) + <<SDCLK_DELAY_SHIFT ; + tmp &= ~(SDCLK_SEL_MASK <<SDCLK_SEL_SHIFT ); + tmp |= (1 &SDCLK_SEL_MASK ) <<SDCLK_SEL_SHIFT ; + +writew (tmp, host->ioaddr +SD_CLOCK_BURST_SIZE_SETUP ); + }There are 3 possible value for
clk_delay_sel.Quoted 5 lines
0 == do not use
clk_delay_cycles
1 == use programmedclk_delay_cyclesvalue (the code above) all other values use thesd_clkwhich was used to drive the outputThe code about only handles 2 of the 3 cases
pxa910/920 only require two cases.
1,clk_delay_sel= 1 with delay value.
2, use default setting and directly usesd_clk.clk_delay_sel= 3.Quoted 16 lines
suggest
(if (pdata->clk_delay_sel) {Quoted 11 lines
drivers/mmc/host/sdhci-pxav2.c new file +11
-0+if (pdata->clk_delay_sel ==1 ) { + tmp =readw (host->ioaddr +SD_CLOCK_BURST_SIZE_SETUP ); + + tmp &= ~(SDCLK_DELAY_MASK <<SDCLK_DELAY_SHIFT ); + tmp |= (pdata->clk_delay_cycles &SDCLK_DELAY_MASK ) + <<SDCLK_DELAY_SHIFT ; + tmp &= ~(SDCLK_SEL_MASK <<SDCLK_SEL_SHIFT ); + tmp |=1 <<SDCLK_SEL_SHIFT ; + +writew (tmp, host->ioaddr +SD_CLOCK_BURST_SIZE_SETUP ); + }else {
Quoted 9 lines
Quoted 4 lines
drivers/mmc/host/sdhci-pxav2.c line 71
Quoted 4 lines
drivers/mmc/host/sdhci-pxav2.c new file +4
-0+ tmp =readw (host->ioaddr +SD_CLOCK_BURST_SIZE_SETUP ); + tmp &= ~(SDCLK_SEL_MASK <<SDCLK_SEL_SHIFT ); + tmp |=2 <<SDCLK_SEL_SHIFT ; +writew (tmp, host->ioaddr +SD_CLOCK_BURST_SIZE_SETUP );The else is default setting on pxa910 after reset.
Quoted 4 lines
} }Philip and Mark
If you are comfortable not support mode 0 then I am okay with this patch set.
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH v4 3/5 ARM: mmp2: update mmp2 mmc resource
In reply to Zhangfei Gao mmp2 mmc driver name update to sdhci-pxav3 according to sdhci-pxav3.c
--- arch/arm/mach-mmp/brownstone.c | 10 +++++++++- arch/arm/mach-mmp/jasper.c | 2 +- arch/arm/mach-mmp/mmp2.c | 16 ++++++++-------- 3 files changed, 18 insertions(+), 10 deletions(-)
arch/arm/mach-mmp/brownstone.c +9 -1
@@ -177,9 +177,16 @@ static struct i2c_board_info brownstone_twsi1_info[] = { };static struct sdhci_pxa_platdata mmp2_sdh_platdata_mmc0 = { - .max_speed =25000000 , + .clk_delay_cycles =0x1f , }; +static struct sdhci_pxa_platdata mmp2_sdh_platdata_mmc2 = { + .clk_delay_cycles =0x1f , + .flags =PXA_FLAG_CARD_PERMANENT + |PXA_FLAG_SD_8_BIT_CAPABLE_SLOT , +}; + +static void __init brownstone_init (void ) {mfp_config (ARRAY_AND_SIZE (brownstone_pin_config));
@@ -189,6 +196,7 @@ static void __init brownstone_init(void)mmp2_add_uart (3 );mmp2_add_twsi (1 ,NULL ,ARRAY_AND_SIZE (brownstone_twsi1_info));mmp2_add_sdhost (0 , &mmp2_sdh_platdata_mmc0);/* SD/MMC */ +mmp2_add_sdhost (2 , &mmp2_sdh_platdata_mmc2);/* eMMC */ /* enable 5v regulator */ platform_device_register (&brownstone_v_5vp_device);
arch/arm/mach-mmp/jasper.c +1 -1
@@ -154,7 +154,7 @@ static struct i2c_board_info jasper_twsi1_info[] = { };static struct sdhci_pxa_platdata mmp2_sdh_platdata_mmc0 = { - .max_speed =25000000 , + .clk_delay_cycles =0x1f , };static void __init jasper_init (void )
arch/arm/mach-mmp/mmp2.c +8 -8
@@ -168,10 +168,10 @@ static struct clk_lookup mmp2_clkregs[] = {INIT_CLKREG (&clk_twsi5,"pxa2xx-i2c.4" ,NULL ),INIT_CLKREG (&clk_twsi6,"pxa2xx-i2c.5" ,NULL ),INIT_CLKREG (&clk_nand,"pxa3xx-nand" ,NULL ), -INIT_CLKREG (&clk_sdh0,"sdhci-pxa.0" ,"PXA-SDHCLK" ), -INIT_CLKREG (&clk_sdh1,"sdhci-pxa.1" ,"PXA-SDHCLK" ), -INIT_CLKREG (&clk_sdh2,"sdhci-pxa.2" ,"PXA-SDHCLK" ), - INIT_CLKREG(&clk_sdh3, "sdhci-pxa.3", "PXA-SDHCLK"), +INIT_CLKREG (&clk_sdh0,"sdhci-pxav3.0" ,"PXA-SDHCLK" ), +INIT_CLKREG (&clk_sdh1,"sdhci-pxav3.1" ,"PXA-SDHCLK" ), +INIT_CLKREG (&clk_sdh2,"sdhci-pxav3.2" ,"PXA-SDHCLK" ), + INIT_CLKREG(&clk_sdh3, "sdhci-pxav3.3", "PXA-SDHCLK"), };static int __init mmp2_init (void )
@@ -222,8 +222,8 @@ MMP2_DEVICE(twsi4, "pxa2xx-i2c", 3, TWSI4, 0xd4033000, 0x70);MMP2_DEVICE (twsi5,"pxa2xx-i2c" ,4 ,TWSI5 ,0xd4033800 ,0x70 );MMP2_DEVICE (twsi6,"pxa2xx-i2c" ,5 ,TWSI6 ,0xd4034000 ,0x70 );MMP2_DEVICE (nand,"pxa3xx-nand" ,-1 ,NAND ,0xd4283000 ,0x100 ,28 ,29 ); -MMP2_DEVICE (sdh0,"sdhci-pxa" ,0 ,MMC ,0xd4280000 ,0x120 ); -MMP2_DEVICE (sdh1,"sdhci-pxa" ,1 ,MMC2 ,0xd4280800 ,0x120 ); -MMP2_DEVICE (sdh2,"sdhci-pxa" ,2 ,MMC3 ,0xd4281000 ,0x120 ); -MMP2_DEVICE (sdh3,"sdhci-pxa" ,3 ,MMC4 ,0xd4281800 ,0x120 ); +MMP2_DEVICE (sdh0,"sdhci-pxav3" ,0 ,MMC ,0xd4280000 ,0x120 ); +MMP2_DEVICE (sdh1,"sdhci-pxav3" ,1 ,MMC2 ,0xd4280800 ,0x120 ); +MMP2_DEVICE (sdh2,"sdhci-pxav3" ,2 ,MMC3 ,0xd4281000 ,0x120 ); +MMP2_DEVICE (sdh3,"sdhci-pxav3" ,3 ,MMC4 ,0xd4281800 ,0x120 );
Signature · 1 line
1.7.0.4
PATCH v4 4/5 mmc: delete obsolete sdhci-pxa.c
In reply to Zhangfei Gao Delete obsolete sdhci-pxa.c, which is used to be shared among pxa serious. The method may not eady to track, since platfrom difference are put under arch/arm. Instead, use sdhci-pxav3.c for mmp2, and sdhci-pxav2.c for pxa9xx.
--- drivers/mmc/host/Kconfig | 12 -- drivers/mmc/host/Makefile | 1 - drivers/mmc/host/sdhci-pxa.c | 303 ------------------------------------------ 3 files changed, 0 insertions(+), 316 deletions(-) delete mode 100644 drivers/mmc/host/sdhci-pxa.c
drivers/mmc/host/Kconfig +0 -12
@@ -181,18 +181,6 @@ config MMC_SDHCI_S3C If unsure, say N. -config MMC_SDHCI_PXA - tristate "Marvell PXA168/PXA910/MMP2 SD Host Controller support" - depends on ARCH_PXA || ARCH_MMP - select MMC_SDHCI - select MMC_SDHCI_IO_ACCESSORS - help - This selects the Marvell(R) PXA168/PXA910/MMP2 SD Host Controller. - If you have a PXA168/PXA910/MMP2 platform with SD Host Controller - and a card slot, say Y or M here. - - If unsure, say N. - config MMC_SDHCI_PXAV3 tristate "Marvell MMP2 SD Host Controller support (PXAV3)" select MMC_SDHCI
drivers/mmc/host/Makefile +0 -1
@@ -9,7 +9,6 @@ obj-$(CONFIG_MMC_MXC) += mxcmmc.o obj-$(CONFIG_MMC_MXS) += mxs-mmc.o obj-$(CONFIG_MMC_SDHCI) += sdhci.o obj-$(CONFIG_MMC_SDHCI_PCI) += sdhci-pci.o -obj-$(CONFIG_MMC_SDHCI_PXA) += sdhci-pxa.o obj-$(CONFIG_MMC_SDHCI_PXAV3) += sdhci-pxav3.o obj-$(CONFIG_MMC_SDHCI_PXAV2) += sdhci-pxav2.o obj-$(CONFIG_MMC_SDHCI_S3C) += sdhci-s3c.o
drivers/mmc/host/sdhci-pxa.c deleted +0 -303
303 lines not on this page · raw message
Signature · 1 line
1.7.0.4
PATCH v4 5/5 ARM: mmp2: update mmp2_defconfig to support mmc
In reply to Zhangfei Gao 1. support brownstone
2. support mmc
3. support basic filesystem and language
4. remove dynamic_debug, since too many log during access sd
--- arch/arm/configs/mmp2_defconfig | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)
arch/arm/configs/mmp2_defconfig +8 -1
@@ -8,6 +8,7 @@ CONFIG_MODULE_UNLOAD=y CONFIG_MODULE_FORCE_UNLOAD=y # CONFIG_BLK_DEV_BSG is not set CONFIG_ARCH_MMP=y +CONFIG_MACH_BROWNSTONE=y CONFIG_MACH_FLINT=y CONFIG_MACH_MARVELL_JASPER=y CONFIG_HIGH_RES_TIMERS=y
@@ -63,10 +64,16 @@ CONFIG_BACKLIGHT_MAX8925=y # CONFIG_USB_SUPPORT is not set CONFIG_RTC_CLASS=y CONFIG_RTC_DRV_MAX8925=y +CONFIG_MMC=y # CONFIG_DNOTIFY is not set CONFIG_INOTIFY=y CONFIG_TMPFS=y CONFIG_TMPFS_POSIX_ACL=y +CONFIG_EXT2_FS=y +CONFIG_EXT3_FS=y +CONFIG_EXT4_FS=y +CONFIG_MSDOS_FS=y +CONFIG_FAT_DEFAULT_CODEPAGE=437 CONFIG_JFFS2_FS=y CONFIG_CRAMFS=y CONFIG_NFS_FS=y
@@ -81,7 +88,7 @@ CONFIG_DEBUG_KERNEL=y # CONFIG_DEBUG_PREEMPT is not set CONFIG_DEBUG_INFO=y # CONFIG_RCU_CPU_STALL_DETECTOR is not set -CONFIG_DYNAMIC_DEBUG=y +# CONFIG_DYNAMIC_DEBUG is not set CONFIG_DEBUG_USER=y CONFIG_DEBUG_ERRORS=y # CONFIG_CRYPTO_ANSI_CPRNG is not set
Signature · 1 line
1.7.0.4
PATCH v4 5/5 ARM: mmp2: update mmp2_defconfig to support mmc
Hello Folks,
Does anybody knows which kernel version will have the SD 4.0 (UHS-II) support?
Thanks,
Sachin.
-----Original Message-----
From: [email protected] [mailto:linux-mmc-owner at vger.kernel.org] On Behalf Of Zhangfei Gao
Sent: Wednesday, June 08, 2011 3:12 PM
To: Arnd Bergmann; Nicolas Pitre; Philip Rakity; Wolfram Sang; Chris Ball; linux-mmc at vger.kernel.org; Jun Nie; Raymond Wu; Haojian Zhuang; Qiming Wu; Eric Miao; linux-arm-kernel
Cc: Zhangfei Gao
Subject: [PATCH v4 5/5] ARM: mmp2: update mmp2_defconfig to support mmc
1. support brownstone
2. support mmc
3. support basic filesystem and language
4. remove dynamic_debug, since too many log during access sd
--- arch/arm/configs/mmp2_defconfig | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)
arch/arm/configs/mmp2_defconfig +8 -1
@@ -8,6 +8,7 @@ CONFIG_MODULE_UNLOAD=y CONFIG_MODULE_FORCE_UNLOAD=y # CONFIG_BLK_DEV_BSG is not set CONFIG_ARCH_MMP=y +CONFIG_MACH_BROWNSTONE=y CONFIG_MACH_FLINT=y CONFIG_MACH_MARVELL_JASPER=y CONFIG_HIGH_RES_TIMERS=y
@@ -63,10 +64,16 @@ CONFIG_BACKLIGHT_MAX8925=y # CONFIG_USB_SUPPORT is not set CONFIG_RTC_CLASS=y CONFIG_RTC_DRV_MAX8925=y +CONFIG_MMC=y # CONFIG_DNOTIFY is not set CONFIG_INOTIFY=y CONFIG_TMPFS=y CONFIG_TMPFS_POSIX_ACL=y +CONFIG_EXT2_FS=y +CONFIG_EXT3_FS=y +CONFIG_EXT4_FS=y +CONFIG_MSDOS_FS=y +CONFIG_FAT_DEFAULT_CODEPAGE=437 CONFIG_JFFS2_FS=y CONFIG_CRAMFS=y CONFIG_NFS_FS=y
@@ -81,7 +88,7 @@ CONFIG_DEBUG_KERNEL=y # CONFIG_DEBUG_PREEMPT is not set CONFIG_DEBUG_INFO=y # CONFIG_RCU_CPU_STALL_DETECTOR is not set -CONFIG_DYNAMIC_DEBUG=y +# CONFIG_DYNAMIC_DEBUG is not set CONFIG_DEBUG_USER=y CONFIG_DEBUG_ERRORS=y # CONFIG_CRYPTO_ANSI_CPRNG is not set
Signature · 6 lines
1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v4 5/5 ARM: mmp2: update mmp2_defconfig to support mmc
Quoted 2 lines · Sachin Nikam
Does anybody knows which kernel version will have the SD 4.0 (UHS-II) support?
The SD 4.0 standard is not yet available, so it cannot be implemented. I would assume that support will be in the kernel version following the release of the spec, or one release later if the timing is bad.
If you already have access to the spec, feel free to post patches so we can include it earlier.
Arnd
PATCH v4 5/5 ARM: mmp2: update mmp2_defconfig to support mmc
Thanks for the reply Arnd.
Sure I will start posting the patches.
Regards,
Sachin Nikam.
-----Original Message-----
From: [email protected] [mailto:linux-mmc-owner at vger.kernel.org] On Behalf Of Arnd Bergmann
Sent: Wednesday, June 08, 2011 8:31 PM
To: Sachin Nikam
Cc: 'Zhangfei Gao'; Nicolas Pitre; Philip Rakity; Wolfram Sang; Chris Ball; linux-mmc at vger.kernel.org; Jun Nie; Raymond Wu; Haojian Zhuang; Qiming Wu; Eric Miao; linux-arm-kernel
Subject: Re: [PATCH v4 5/5] ARM: mmp2: update mmp2_defconfig to support mmc
Quoted 2 lines · Sachin Nikam
Does anybody knows which kernel version will have the SD 4.0 (UHS-II) support?
The SD 4.0 standard is not yet available, so it cannot be implemented. I would assume that support will be in the kernel version following the release of the spec, or one release later if the timing is bad.
If you already have access to the spec, feel free to post patches so we can include it earlier.
Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Chris Ball
AppliedHi,
Quoted 5 lines · Zhangfei Gao
v3->v4
Update patch sequence andmmp2_defconfig
update driver/mmc/host/Kconfig
Removeget_ro
Quoted 7 lines
The patches to provide separate sdhci driver for mmp2 and pxa910 based on sdhci-platfm.
Rename tosdhci-pxav3.candsdhci-pxav2.c
Remove obsoletesdhci-pxa.c, which is used to share among pxa serious, since under this method, platform difference have to be put underarch/arm, which is not easy to track.
As a result, mmp2 mmc resource should be updated accordingly.
Merged to mmc-next for 3.1. Thanks, everyone!
- Chris.
Signature · 2 lines
Chris Ball <[email protected]> <http://printf.net/> One Laptop Per Child