Hi,

Thanks I've added this to the u-boot-sunxi git repo, note
I've dropped the dram file as we already have an identical dram
config for other boards.

Regards,

Hans



On 03/25/2014 04:48 PM, [email protected] wrote:
> From: Marcus Cooper <[email protected]>
> 
> Signed-off-by: Marcus Cooper <[email protected]>
> ---
>  board/sunxi/Makefile          |  1 +
>  board/sunxi/dram_mk808c_a20.c | 31 +++++++++++++++++++++++++++++++
>  boards.cfg                    |  1 +
>  3 files changed, 33 insertions(+)
>  create mode 100644 board/sunxi/dram_mk808c_a20.c
> 
> diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile
> index f613ffd..51cac02 100644
> --- a/board/sunxi/Makefile
> +++ b/board/sunxi/Makefile
> @@ -58,6 +58,7 @@ obj-$(CONFIG_MK802_1GB)     += dram_sun4i_360_1024_iow16.o
>  obj-$(CONFIG_MK802_A10S)     += dram_mk802_a10s.o
>  obj-$(CONFIG_MK802II)                += dram_sun4i_408_1024_iow8.o
>  obj-$(CONFIG_MK802II_A20)            += dram_mk802ii_a20.o
> +obj-$(CONFIG_MK808C_A20)     += dram_mk808c_a20.o
>  obj-$(CONFIG_PCDUINO)                += dram_sun4i_408_1024_iow8.o
>  obj-$(CONFIG_PENGPOD700)     += dram_sun4i_384_1024_iow8.o
>  obj-$(CONFIG_PENGPOD1000)    += dram_sun4i_408_1024_iow16.o
> diff --git a/board/sunxi/dram_mk808c_a20.c b/board/sunxi/dram_mk808c_a20.c
> new file mode 100644
> index 0000000..04e4b1e
> --- /dev/null
> +++ b/board/sunxi/dram_mk808c_a20.c
> @@ -0,0 +1,31 @@
> +/* this file is generated, don't edit it yourself */
> +
> +#include "common.h"
> +#include <asm/arch/dram.h>
> +
> +static struct dram_para dram_para = {
> +     .clock = 384,
> +     .type = 3,
> +     .rank_num = 1,
> +     .density = 4096,
> +     .io_width = 16,
> +     .bus_width = 32,
> +     .cas = 9,
> +     .zq = 0x7f,
> +     .odt_en = 0,
> +     .size = 1024,
> +     .tpr0 = 0x42d899b7,
> +     .tpr1 = 0xa090,
> +     .tpr2 = 0x22a00,
> +     .tpr3 = 0,
> +     .tpr4 = 0,
> +     .tpr5 = 0,
> +     .emr1 = 0x4,
> +     .emr2 = 0x10,
> +     .emr3 = 0,
> +};
> +
> +unsigned long sunxi_dram_init(void)
> +{
> +     return dramc_init(&dram_para);
> +}
> diff --git a/boards.cfg b/boards.cfg
> index 0debbee..527afb3 100644
> --- a/boards.cfg
> +++ b/boards.cfg
> @@ -414,6 +414,7 @@ Active  arm         armv7          sunxi       -          
>      sunxi
>  Active  arm         armv7          sunxi       -               sunxi         
>       mk802_a10s                           
> sun5i:MK802_A10S,SPL,AXP152_POWER,STATUSLED=34                                
>                                                     -
>  Active  arm         armv7          sunxi       -               sunxi         
>       mk802ii_A20                              sun7i:MK802II_A20,SPL          
>                                                                               
>                          -
>  Active  arm         armv7          sunxi       -               sunxi         
>       mk802ii                              sun4i:MK802II,SPL                  
>                                                                               
>                  -
> +Active  arm         armv7          sunxi       -               sunxi         
>       mk808c_A20                           sun7i:MK808C_A20,SPL               
>                                                                               
>                     -
>  Active  arm         armv7          sunxi       -               sunxi         
>       pcDuino                              sun4i:PCDUINO,SPL,SUNXI_EMAC       
>                                                                               
>                  -
>  Active  arm         armv7          sunxi       -               sunxi         
>       pengpod1000                          sun4i:PENGPOD1000,SPL              
>                                                                               
>                  -
>  Active  arm         armv7          sunxi       -               sunxi         
>       pengpod700                           sun4i:PENGPOD700,SPL               
>                                                                               
>                  -
> 

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to