public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: hl <hl@rock-chips.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 13/20] rockchip: Add an rk3036 MMC driver
Date: Tue, 10 Nov 2015 09:02:13 +0800	[thread overview]
Message-ID: <56414215.4020703@rock-chips.com> (raw)
In-Reply-To: <CAPnjgZ3C2ksmp_SzoGrTXUfeNH-8kV07rU_XiMKsEHR41jDtzw@mail.gmail.com>

Hi Simon,

On 10/11/15 04:23, Simon Glass wrote:
> Hi Lin,
>
> On 9 November 2015 at 00:02, Lin Huang <hl@rock-chips.com> wrote:
>> rk3036 mmc driver is similar to dw_mmc, but use external dma,
>> this patch implment fifo mode, need to do dma mode in future.
> What is the plan to merge this driver with the dwmmc one? Also the
> other code seems very similar to rockchip_dw_mmc.c  - can we combine
> these?
     i have confirm with my colleague, they have tested that in uboot 
use external dma is
     not more efficient than fifo mode, so i think it not necessary to 
support external dma in future.

      And about the mmc driver, i think there is two way to combine:
     1. add fifo mode in dw_mmc.c(i don't know weather is it allow), 
combine the rockchip_dw_mmc.c and rockchip_3036_dw_mmc.c
     2. combine  the probe(), get_mmc_clk(), platdata() function, 
implement the 3036_dw_mmc.c use for 3036, and 3288 use dw_mmc.c
     which do you prefer?
>
>> Signed-off-by: Lin Huang <hl@rock-chips.com>
>> ---
>> Changes in v1:
>> - clean copyright announcement
>> Changes in v2:
>> - modify code suggest by Simon:
>> - use get_time() to do timeout
>> Changes in v3:
>> - extend read and write data timeout time
>> - fix write data read fifo length bug
>> Changes in v4: None
>>
>>   drivers/mmc/Kconfig                |   9 +
>>   drivers/mmc/Makefile               |   1 +
>>   drivers/mmc/rockchip_3036_dw_mmc.c | 485 +++++++++++++++++++++++++++++++++++++
>>   3 files changed, 495 insertions(+)
>>   create mode 100644 drivers/mmc/rockchip_3036_dw_mmc.c
> Regards,
> Simon
>
>
>

-- 
Lin Huang

  reply	other threads:[~2015-11-10  1:02 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-09  8:02 [U-Boot] [PATCH v4 00/20] Bring up rk3036 uboot Lin Huang
2015-11-09  8:02 ` [U-Boot] [PATCH v4 01/20] rockchip: add timer driver Lin Huang
2015-11-09  8:02 ` [U-Boot] [PATCH v4 02/20] rockchip: move SYS_MALLOC_F_LEN to rk3288 own Kconfig Lin Huang
2015-11-09 20:23   ` Simon Glass
2015-11-09  8:02 ` [U-Boot] [PATCH v4 03/20] rockchip: rename board-spl.c to rk3288-board-spl.c Lin Huang
2015-11-09 20:23   ` Simon Glass
2015-11-09  8:02 ` [U-Boot] [PATCH v4 04/20] rockchip: add config decide whether to build common.c Lin Huang
2015-11-09 20:24   ` Simon Glass
2015-11-09  8:02 ` [U-Boot] [PATCH v4 05/20] dm: core: Add SPL Kconfig for REGMAP and SYSCON Lin Huang
2015-11-09 20:23   ` Simon Glass
2015-11-09  8:02 ` [U-Boot] [PATCH v4 06/20] rockchip: serial driver support rk3036 Lin Huang
2015-11-09 20:23   ` Simon Glass
2015-11-09  8:02 ` [U-Boot] [PATCH v4 07/20] rockchip: Bring in RK3036 device tree file includes and bindings Lin Huang
2015-11-09 20:23   ` Simon Glass
2015-11-09  8:02 ` [U-Boot] [PATCH v4 08/20] rockchip: rk3036: Add clock driver Lin Huang
2015-11-09 20:23   ` Simon Glass
2015-11-09  8:02 ` [U-Boot] [PATCH v4 09/20] rockchip: rk3036: Add header files for GRF Lin Huang
2015-11-09 20:23   ` Simon Glass
2015-11-09  8:02 ` [U-Boot] [PATCH v4 10/20] rockchip: rk3036: Add Soc reset driver Lin Huang
2015-11-09 20:23   ` Simon Glass
2015-11-09  8:02 ` [U-Boot] [PATCH v4 11/20] rockchip: rk3036: Add a simple syscon driver Lin Huang
2015-11-09 20:23   ` Simon Glass
2015-11-09  8:02 ` [U-Boot] [PATCH v4 12/20] rockchip: rk3036: Add pinctrl driver Lin Huang
2015-11-09 20:23   ` Simon Glass
2015-11-09  8:02 ` [U-Boot] [PATCH v4 13/20] rockchip: Add an rk3036 MMC driver Lin Huang
2015-11-09 20:23   ` Simon Glass
2015-11-10  1:02     ` hl [this message]
2015-11-09  8:02 ` [U-Boot] [PATCH v4 14/20] rockchip: add early uart driver Lin Huang
2015-11-09 20:24   ` Simon Glass
2015-11-10  0:44     ` hl
2015-11-09  8:02 ` [U-Boot] [PATCH v4 15/20] rockchip: add rk3036 sdram driver Lin Huang
2015-11-09 20:24   ` Simon Glass
2015-11-09  8:02 ` [U-Boot] [PATCH v4 16/20] rockchip: rk3036: Add core Soc start-up code Lin Huang
2015-11-09 20:24   ` Simon Glass
2015-11-09  8:02 ` [U-Boot] [PATCH v4 17/20] rockchip: Add basic support for evb-rk3036 board Lin Huang
2015-11-09 20:24   ` Simon Glass
2015-11-09  8:02 ` [U-Boot] [PATCH v4 18/20] rockchip: Add max init size & chip tag configs Lin Huang
2015-11-09 20:24   ` Simon Glass
2015-11-09  8:02 ` [U-Boot] [PATCH v4 19/20] rockchip: Add support for rk's second level loader Lin Huang
2015-11-09 20:24   ` Simon Glass
2015-11-09  8:02 ` [U-Boot] [PATCH v4 20/20] rockchip: doc: show packet rk3036 uboot image Lin Huang
2015-11-09 20:24   ` Simon Glass
2015-11-10  0:36     ` hl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56414215.4020703@rock-chips.com \
    --to=hl@rock-chips.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox