Commit Graph

3509 Commits

Author SHA1 Message Date
lintao
218243389f mmc: Hynix 4.41 iNAND no trim quirk patch from mediatek 2014-10-22 14:59:32 +08:00
lintao
775d7173a0 mmc: v2: fix wrong mszs calculation for edmac.
Change log v2: update logical operation for FIFOTH
2014-10-22 08:15:26 +08:00
lintao
82c75e15b3 mmc: fix wrong mszs calculation for edmac.
Internal dmac set mszs from 0 ~ 7, means {1, 4, 8, 16,
32, 64, 128, 256} respectively. But mszs is difference from another
if it's edmac been used indeed.External dmac limit it from 0 ~ 16
, and we select mszs from FIFOTH calculated before to lookup table
in order to find mszs fitable for edmac.

Signed-off-by: lintao <lintao@rock-chips.com>
Tested-and-acked-by: lw <lw@rock-chips.com>
2014-10-21 15:14:13 +08:00
lintao
fd9bcea1b3 Revert "mmc: lookup mszs for edmac, diff M base from idmac"
This reverts commit 006e7b478d.
2014-10-21 14:56:50 +08:00
lintao
006e7b478d mmc: lookup mszs for edmac, diff M base from idmac 2014-10-21 13:01:55 +08:00
lintao
47f217c4ea mmc: Support sdmmc/uart_dbg auto switch
Add pinctrl-names "udbg" in sdmmc blob, and drivers auto
switch io useage by card-detect tasklet routine. Only audi series need
it indeed now and ever.

Signed-off-by: lintao <lintao@rock-chips.com>
Acked-by: lw <lw@rock-chips.com>
Cc: phc <phc@rock-chips.com>
2014-10-10 09:56:24 +08:00
lintao
27dc823ee9 mmc: only ctrl_all_reset if slot state really changed 2014-10-09 16:57:06 +08:00
lintao
baf64b4e46 mmc: merge dpm patch from my-mmc-next 2014-10-08 17:32:08 +08:00
lintao
709bdba41b fix pio complie warning 2014-10-08 08:22:02 +08:00
lintao
6b919533a0 mmc: fixup edma stop when data err occur, cause edma halt
Fast insert and remove sd card make edma equeue, dequeue
frequently. And with unstable fifo data err, if we stop edma, it
terminate all data will been sent later and flush that desc. However,
MHSC hardware fifo byte counter in fault state  because avaliable data
isn't enough, and remain data been teminated by stop edma. So edma req
signal in fault state event we restart edma. We just let edma sent remain
data, and reset fifo to drop these unused data.

<6>[ 1137.707403] mmc0: new SD card at address 1234
<6>[ 1137.708095] mmcblk0: mmc0:1234 SA02G 1.83 GiB
<3>[ 1141.654157] dwmmc_rockchip 10214000.rksdmmc: data_over interrupt timeout!

Signed-off-by: lintao <lintao@rock-chips.com>
2014-09-30 17:55:40 +08:00
lintao
f63d3ba001 mmc: no need re-setup bus when dto 2014-09-29 17:48:48 +08:00
lintao
3c1b504f20 wifi: tmp workaround 8089 pm for sdk release, will be reverted later 2014-09-29 14:41:03 +08:00
lintao
8c58cb2ba0 mmc: remove useless rescan for io function 2014-09-26 12:38:35 +08:00
lintao
67decff741 mmc: fix low-end gpio-debounce detection failed dpm suspend 2014-09-22 15:10:08 +08:00
lintao
1c912e0e91 mmc: add atomic operation for register 2014-09-22 10:17:20 +08:00
lintao
d9a820a163 mmc: schedule out rescan flow for confilicting with ehci reset
Signed-off-by: lintao <lintao@rock-chips.com>
2014-09-20 16:59:44 +08:00
lintao
c901d947ae mmc: cd-gpio: wakeup system wheter debounce or not
Signed-off-by: lintao <lintao@rock-chips.com>
2014-09-20 15:39:02 +08:00
lintao
e4ad383ea8 mmc: unnecessary to dynamic request and release slave chn. 2014-09-19 14:23:51 +08:00
lintao
40b8aabbae mmc: edmac: reinit pll30 slave channel when resume
Signed-off-by: lintao <lintao@rock-chips.com>
2014-09-19 10:20:18 +08:00
lintao
550a29f0cf mmc: rk3126: add wakeup event for SD insert/remove in deep sleep
Signed-off-by: lintao <lintao@rock-chips.com>
2014-09-18 19:59:31 +08:00
黄涛
ac48b4bb1e mmc: fix compilation warning caused by commit 7b9586b50c 2014-09-17 17:50:13 +08:00
lintao
33f9000669 fix compile error 2014-09-16 11:31:51 +08:00
lintao
a5981d0749 mmc: guarantee enough time-gap between any two sequential tuning cmd
Signed-off-by: lintao <lintao@rock-chips.com>
2014-09-16 10:05:01 +08:00
lintao
d7b65047d4 mmc: move cap with hs200 to caps
Signed-off-by: lintao <lintao@rock-chips.com>
2014-09-12 18:07:07 +08:00
lintao
d30cd017d3 mmc: workaround DDR mmc devices internal divider bug
Signed-off-by: lintao <lintao@rock-chips.com>
2014-09-11 15:04:02 +08:00
lintao
762bc65ff0 mmc: continue 5dce427f17 2014-09-10 16:24:21 +08:00
lintao
5dce427f17 mmc: fix spinlock bf in irq env 2014-09-10 15:21:15 +08:00
lintao
007547889d mmc: guarantee atomic access INTMASK register for sdio_irq_thread 2014-09-09 17:41:54 +08:00
lintao
8ae438b680 mmc: fix resume kpanic if no dms been allocated when init 2014-09-09 14:44:19 +08:00
lintao
cf748bf2cc mmc: fix eco setting for uhs tune 2014-09-05 16:41:07 +08:00
lintao
2d3973be0f mmc: fix dms descriptor realloc bug when resume from deep idle 2014-09-05 16:14:32 +08:00
lintao
3936e240c2 mmc: Support tSD or SD booting OS.
In case of tSD board or SD booting project, BSP engineers could
only add "supports-tSD" into emmc_of_node claim. Refer to arch/arm/boot/dts/rk3288-tb.dts
2014-09-04 16:11:05 +08:00
lintao
4d75e4f0a1 mmc: remove unused muti calc 2014-09-04 11:48:17 +08:00
lintao
0f80424a2a mmc: update rto for cmd to CMD_FUNC 2014-09-01 12:10:37 +08:00
lintao
45d41680fe mmc: change mmc_rescan_host usage for Rockchip turnkey customer :((
Before this patch we identify oob-wifi or sdio-irq-wifi by DTS.
However wifi engineers argue that our customer is lazy to modify it event
we had moentioned in release wifi configure document before and claim it
again and agin.

Cc: hwg <hwg@rock-chips.com>
Cc: gwl <gwl@rock-chips.com>
Signed-off-by: Shawn Lin <lintao@rock-chips.com>
2014-08-15 17:00:06 +08:00
lintao
3af1f3eae4 mmc: fix err handle for release cd_irq 2014-08-12 18:02:21 +08:00
黄涛
68fe6924d3 Merge remote-tracking branch 'origin/develop-3.10-next' into develop-3.10
Conflicts:
	arch/arm/mach-rockchip/vcodec_service.c
	drivers/iommu/rockchip-iommu.c
	drivers/iommu/rockchip-iovmm.c
	drivers/net/ethernet/rockchip/gmac/stmmac_platform.c
	include/linux/rockchip/sysmmu.h
2014-08-12 17:39:16 +08:00
lintao
276d773ca5 mmc: dump tuning result as BOOT info 2014-08-11 15:02:52 +08:00
lintao
02d3046a9f mmc: fix dts cd-gpio setting 2014-08-11 10:48:10 +08:00
黄涛
c7412991e9 Merge remote-tracking branch 'origin/develop-3.10' into develop-3.10-next
Conflicts:
	arch/arm/mach-rockchip/vcodec_service.c
	drivers/input/Makefile
2014-08-08 10:21:50 +08:00
黄涛
fcef60e36f Merge tag 'lsk-v3.10-android-14.07' into develop-3.10
LSK v3.10 Android 14.07 release

Conflicts:
	drivers/clocksource/arm_arch_timer.c
	lib/Makefile
2014-08-06 15:34:14 +08:00
lintao
18579bd625 mmc: disable force_jtag when card been inserted
3126 had no controller-cd pin for auto jtag/sdmmc selection
2014-08-06 10:58:56 +08:00
lintao
bcec492cc1 mmc: fix rk3126 support
(1) Add cd_gpio support
	(2) defconf IDMAC
2014-08-05 12:32:46 +08:00
lintao
a73af9e69b mmc: rk_sdmmc: increase max_blk_count for edmac 2014-08-01 17:02:51 +08:00
黄涛
b5d61451d6 Merge remote-tracking branch 'origin/develop-3.10' into develop-3.10-next 2014-07-28 16:09:07 +08:00
lintao
6914a2387b mmc: rk_sdmmc: disable force_jtag in dw_mci_resume 2014-07-21 11:13:36 +08:00
lintao
38db72fe23 mmc: rk_sdmmc: compatible with rk312x 2014-07-21 10:53:43 +08:00
lintao
0fb06128f9 mmc: rk_sdmmc: fix calculation of erase unbusy timeout 2014-07-16 18:00:16 +08:00
lintao
0e21a6d15e mmc: rk_sdmmc:
(1) auto select edma/idma by Soc chip id
	(2) enable rk3036-sdk sd & sdio
2014-07-15 17:27:01 +08:00
Mark Brown
e503fc621f Merge branch 'linux-linaro-lsk' into linux-linaro-lsk-android 2014-07-14 10:46:05 +01:00