Hi,

On 05/11/2014 03:52 PM, Zoltan HERPAI wrote:
> This patchset adds u-boot support for pcDuino3. The board
> has been stress-tested for clock=480 and FAST_MBUS, and
> has proven to be stable so far.
> 
> Signed-off-by: Zoltan HERPAI <wigy...@uid0.hu>
> ---
>  board/sunxi/Makefile        |    1 +
>  board/sunxi/dram_pcduino3.c |   31 +++++++++++++++++++++++++++++++
>  boards.cfg                  |    1 +
>  3 files changed, 33 insertions(+)
>  create mode 100644 board/sunxi/dram_pcduino3.c
> 
> diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile
> index 99445bf..763d305 100644
> --- a/board/sunxi/Makefile
> +++ b/board/sunxi/Makefile
> @@ -61,6 +61,7 @@ obj-$(CONFIG_MK802II)               += 
> dram_sun4i_408_1024_iow8.o
>  obj-$(CONFIG_MK802II_A20)    += dram_mk802ii_a20.o
>  obj-$(CONFIG_MK808C_A20)     += dram_sun7i_384_1024_iow16.o
>  obj-$(CONFIG_PCDUINO)                += dram_sun4i_408_1024_iow8.o
> +obj-$(CONFIG_PCDUINO3)               += dram_pcduino3.o
>  obj-$(CONFIG_PENGPOD700)     += dram_sun4i_384_1024_iow8.o
>  obj-$(CONFIG_PENGPOD1000)    += dram_sun4i_408_1024_iow16.o
>  obj-$(CONFIG_POV_PROTAB2)    += dram_pov_protab2.o
> diff --git a/board/sunxi/dram_pcduino3.c b/board/sunxi/dram_pcduino3.c
> new file mode 100644
> index 0000000..9cc6e19
> --- /dev/null
> +++ b/board/sunxi/dram_pcduino3.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 = 480,
> +     .type = 3,
> +     .rank_num = 1,
> +     .density = 4096,
> +     .io_width = 16,
> +     .bus_width = 32,
> +     .cas = 9,
> +     .zq = 0x7a,
> +     .odt_en = 0,
> +     .size = 1024,
> +     .tpr0 = 0x42d899b7,
> +     .tpr1 = 0xa090,
> +     .tpr2 = 0x22a00,
> +     .tpr3 = 0,
> +     .tpr4 = 0,
> +     .tpr5 = 0,
> +     .emr1 = 0x4,
> +     .emr2 = 0x10,
> +     .emr3 = 0x0,
> +};
> +
> +unsigned long sunxi_dram_init(void)
> +{
> +     return dramc_init(&dram_para);
> +}
> diff --git a/boards.cfg b/boards.cfg
> index d3a1e50..dbb72f0 100644
> --- a/boards.cfg
> +++ b/boards.cfg
> @@ -436,6 +436,7 @@ Active  arm         armv7          sunxi       -          
>      sunxi
>  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         
>       pcDuino3                             
> sun7i:PCDUINO3,SPL,SUNXI_EMAC,FAST_MBUS                                       
>                                                     -

Are you sure you want to use EMAC and not GMAC here?


>  Active  arm         armv7          sunxi       -               sunxi         
>       pengpod1000                          sun4i:PENGPOD1000,SPL              
>                                                                               
>                  -
>  Active  arm         armv7          sunxi       -               sunxi         
>       pengpod700                           sun4i:PENGPOD700,SPL               
>                                                                               
>                  -
>  Active  arm         armv7          sunxi       -               sunxi         
>       PoV_ProTab2_IPS9                     sun4i:POV_PROTAB2,SPL              
>                                                                               
>                  -
> 

Regards,

Hans

-- 
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 linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to