[U-Boot] [PATCH 6/8] rockchip: dmc: rk3368: update rank number for evb-px5
Andy Yan
andyshrk at gmail.com
Mon Apr 29 09:25:41 UTC 2019
Kever Yang <kever.yang at rock-chips.com> 于2019年3月29日周五 下午10:53写道:
> evb-px5 has only 1 CS, update for it.
>
> Signed-off-by: Kever Yang <kever.yang at rock-chips.com>
> ---
>
> drivers/ram/rockchip/dmc-rk3368.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
>
Tested-by: Andy Yan <andy.yan at rock-chips.com>
> diff --git a/drivers/ram/rockchip/dmc-rk3368.c
> b/drivers/ram/rockchip/dmc-rk3368.c
> index 92f584fadc..e52fc3baad 100644
> --- a/drivers/ram/rockchip/dmc-rk3368.c
> +++ b/drivers/ram/rockchip/dmc-rk3368.c
> @@ -842,7 +842,11 @@ static int setup_sdram(struct udevice *dev)
> move_to_access_state(pctl);
>
> /* TODO(prt): could detect rank in training... */
> +#ifdef CONFIG_TARGET_EVB_PX5
> + params->chan.rank = 1;
> +#else
> params->chan.rank = 2;
> +#endif
> /* TODO(prt): bus width is not auto-detected (yet)... */
> params->chan.bw = 2; /* 32bit wide bus */
> params->chan.dbw = params->chan.dbw; /* 32bit wide bus */
> --
> 2.20.1
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot
>
More information about the U-Boot
mailing list