public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Heiko Stuebner <heiko@sntech.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RESEND PATCH v3 15/20] rockchip: add rk3036 sdram driver
Date: Fri, 06 Nov 2015 16:47:25 +0100	[thread overview]
Message-ID: <1507506.cWtEovCSpj@phil> (raw)
In-Reply-To: <CAPnjgZ2jmWAVuZXkje+LRBumzN0YKCE1yotUPL+HUZUxnGPzNA@mail.gmail.com>

Hi Simon,

Am Freitag, 6. November 2015, 04:08:51 schrieb Simon Glass:
> Hi Lin,
> 
> On 6 November 2015 at 01:53, Lin Huang <hl@rock-chips.com> wrote:
> > add rk3036 sdram driver so we can set up sdram in SPL
> >
> > Signed-off-by: Lin Huang <hl@rock-chips.com>
> > ---
> > Changes in v1: None
> > Changes in v2: None
> > Changes in v3: fix some code style error
> >
> >  arch/arm/include/asm/arch-rockchip/sdram_rk3036.h | 336 ++++++++++
> >  arch/arm/mach-rockchip/rk3036/Makefile            |   2 +
> >  arch/arm/mach-rockchip/rk3036/sdram_rk3036.c      | 729 
++++++++++++++++++++++
> >  3 files changed, 1067 insertions(+)
> >  create mode 100644 arch/arm/include/asm/arch-rockchip/sdram_rk3036.h
> >  create mode 100644 arch/arm/mach-rockchip/rk3036/sdram_rk3036.c
> >
> 
> Does this driver have nothing in common with the rk3288 one? I thought
> someone mentioned that they had similar IP.

That would probably be me ;-) . pctl is the same (judging by PCTL_IPTR a 
Designware uPCTL), the ddr-phy is new.

But the devicetree-description of the ddr-controller you got from ChromeOS 
also doesn't follow dt conventions and the binding is very much implementation 
specific, so will change in the future anyway.

My current idea is to string components together using of-graph [0] on the 
kernel side. But that is still in its very early stages.

So personally I'd go for leaving that as is now and reworking after we have a 
plan of how the real end-result should look, instead of introducing another 
intermediate step :-) ?


Heiko


[0] https://github.com/mmind/linux-rockchip/blob/a65b13713575ae2acdd5d856495a3dac6478d92d/arch/arm/boot/dts/rk3288.dtsi#L534

  reply	other threads:[~2015-11-06 15:47 UTC|newest]

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

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=1507506.cWtEovCSpj@phil \
    --to=heiko@sntech.de \
    --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