kernel: add missing symbol for 4.1
[openwrt/staging/chunkeey.git] / package / boot / uboot-sunxi / patches / 004-add-olimex-a13-som.diff
1 diff -ruN u-boot-2015.01.old/board/sunxi/dram_olimex_a13_som.c u-boot-2015.01/board/sunxi/dram_olimex_a13_som.c
2 --- u-boot-2015.01.old/board/sunxi/dram_olimex_a13_som.c 1970-01-01 01:00:00.000000000 +0100
3 +++ u-boot-2015.01/board/sunxi/dram_olimex_a13_som.c 2015-01-18 15:47:48.738831189 +0100
4 @@ -0,0 +1,31 @@
5 +/* this file is generated, don't edit it yourself */
6 +
7 +#include <common.h>
8 +#include <asm/arch/dram.h>
9 +
10 +static struct dram_para dram_para = {
11 + .clock = 408,
12 + .type = 3,
13 + .rank_num = 1,
14 + .density = 4096,
15 + .io_width = 16,
16 + .bus_width = 16,
17 + .cas = 9,
18 + .zq = 123,
19 + .odt_en = 0,
20 + .size = 512,
21 + .tpr0 = 0x42d899b7,
22 + .tpr1 = 0xa090,
23 + .tpr2 = 0x22a00,
24 + .tpr3 = 0,
25 + .tpr4 = 0,
26 + .tpr5 = 0,
27 + .emr1 = 0,
28 + .emr2 = 0x10,
29 + .emr3 = 0,
30 +};
31 +
32 +unsigned long sunxi_dram_init(void)
33 +{
34 + return dramc_init(&dram_para);
35 +}
36 diff -ruN u-boot-2015.01.old/board/sunxi/Kconfig u-boot-2015.01/board/sunxi/Kconfig
37 --- u-boot-2015.01.old/board/sunxi/Kconfig 2015-01-18 12:48:11.743510311 +0100
38 +++ u-boot-2015.01/board/sunxi/Kconfig 2015-01-18 15:48:36.594046646 +0100
39 @@ -130,6 +130,10 @@
40 bool "MINI_X"
41 depends on MACH_SUN4I
42
43 +config TARGET_OLIMEX_A13_SOM
44 + bool "OLIMEX_A13_SOM"
45 + depends on MACH_SUN5I
46 +
47 config TARGET_BA10_TV_BOX
48 bool "BA10_TV_BOX"
49 depends on MACH_SUN4I
50 diff -ruN u-boot-2015.01.old/board/sunxi/Makefile u-boot-2015.01/board/sunxi/Makefile
51 --- u-boot-2015.01.old/board/sunxi/Makefile 2015-01-18 12:48:11.747510246 +0100
52 +++ u-boot-2015.01/board/sunxi/Makefile 2015-01-18 15:48:04.894566330 +0100
53 @@ -32,6 +32,7 @@
54 obj-$(CONFIG_TARGET_MELE_M3) += dram_sun7i_384_1024_iow16.o
55 obj-$(CONFIG_TARGET_MINI_X) += dram_sun4i_360_512.o
56 obj-$(CONFIG_TARGET_MINI_X_1GB) += dram_sun4i_360_1024_iow16.o
57 +obj-$(CONFIG_TARGET_OLIMEX_A13_SOM) += dram_olimex_a13_som.o
58 obj-$(CONFIG_TARGET_PCDUINO) += dram_sun4i_408_1024_iow8.o
59 obj-$(CONFIG_TARGET_PCDUINO3) += dram_linksprite_pcduino3.o
60 obj-$(CONFIG_TARGET_QT840A) += dram_sun7i_384_512_busw16_iow16.o
61 diff -ruN u-boot-2015.01.old/configs/OLIMEX_A13_SOM_defconfig u-boot-2015.01/configs/OLIMEX_A13_SOM_defconfig
62 --- u-boot-2015.01.old/configs/OLIMEX_A13_SOM_defconfig 1970-01-01 01:00:00.000000000 +0100
63 +++ u-boot-2015.01/configs/OLIMEX_A13_SOM_defconfig 2015-01-18 16:25:11.908986082 +0100
64 @@ -0,0 +1,7 @@
65 +CONFIG_SPL=y
66 +CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=2,NO_AXP,USB_EHCI"
67 +CONFIG_FDTFILE="sun5i-a13-olinuxino.dtb"
68 ++S:CONFIG_ARM=y
69 ++S:CONFIG_ARCH_SUNXI=y
70 ++S:CONFIG_MACH_SUN5I=y
71 ++S:CONFIG_TARGET_OLIMEX_A13_SOM=y