Skip to content

Commit

Permalink
board:allwinner: add a10_mid_1gb
Browse files Browse the repository at this point in the history
  • Loading branch information
amery committed Dec 10, 2012
1 parent 15322ef commit f355d60
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 0 deletions.
50 changes: 50 additions & 0 deletions board/allwinner/a10_mid_1gb/Makefile
@@ -0,0 +1,50 @@
#
# (C) Copyright 2000-2003
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# See file CREDITS for list of people who contributed to this
# project.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#


include $(TOPDIR)/config.mk

LIB = $(obj)lib$(BOARD).o

COBJS := board.o dram.o

SRCS := $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS))

$(LIB): $(obj).depend $(OBJS)
$(call cmd_link_o_target, $(OBJS))

clean:
rm -f $(OBJS)

distclean: clean
rm -f $(LIB) core *.bak $(obj).depend

#########################################################################

# defines $(obj).depend target
include $(SRCTREE)/rules.mk

sinclude $(obj).depend

#########################################################################
35 changes: 35 additions & 0 deletions board/allwinner/a10_mid_1gb/board.c
@@ -0,0 +1,35 @@
/*
* (C) Copyright 2007-2011
* Allwinner Technology Co., Ltd. <www.allwinnertech.com>
* Tom Cubie <tangliang@allwinnertech.com>
*
* Some board init for the Allwinner A10-evb board.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*/

#include <common.h>

#ifdef CONFIG_DISPLAY_BOARDINFO
int checkboard(void) {

puts("Board: A10-MID-1GB\n");
return 0;
}
#endif
31 changes: 31 additions & 0 deletions board/allwinner/a10_mid_1gb/dram.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 = 360,
.type = 3,
.rank_num = 1,
.density = 4096,
.io_width = 16,
.bus_width = 32,
.cas = 6,
.zq = 123,
.odt_en = 0,
.size = 1024,
.tpr0 = 0x30926692,
.tpr1 = 0x1090,
.tpr2 = 0x1a0c8,
.tpr3 = 0,
.tpr4 = 0,
.tpr5 = 0,
.emr1 = 0,
.emr2 = 0,
.emr3 = 0,
};

int sunxi_dram_init(void)
{
return DRAMC_init(&dram_para);
}
1 change: 1 addition & 0 deletions boards.cfg
Expand Up @@ -287,6 +287,7 @@ mk802ii arm armv7 mk802ii allwinn
hyundai_a7hd arm armv7 hyundai_a7hd allwinner sunxi sun4i:SPL
cubieboard arm armv7 cubieboard allwinner sunxi sun4i:SPL
cubieboard_512 arm armv7 cubieboard_512 allwinner sunxi sun4i:SPL
a10_mid_1gb arm armv7 a10_mid_1gb allwinner sunxi sun4i:SPL
a13_olinuxino arm armv7 a13_olinuxino allwinner sunxi sun5i:SPL
a13_mid arm armv7 a13_mid allwinner sunxi sun5i:SPL
gooseberry_a721 arm armv7 gooseberry_a721 allwinner sunxi sun4i:SPL
Expand Down

0 comments on commit f355d60

Please sign in to comment.