cns3xxx: fix uImage build issue
[openwrt.git] / package / boot / uboot-sunxi / patches / 004-a10-lime-fixup.patch
1 From eccc92de2d133957fe2c126f18a5a5faef0bb93b Mon Sep 17 00:00:00 2001
2 From: Hans de Goede <hdegoede@redhat.com>
3 Date: Thu, 9 Jan 2014 23:26:05 +0100
4 Subject: [PATCH] sunxi: A10-OLinuXino-Lime support fixup
5
6 Fix:
7 -code indentation
8 -dram timings, the used cas and tpr0 - tpr2 were typical sun5i / sun7i
9  settings, while they should be sun4i settings
10 -Properly sort boards.cfg entry
11 -Add status led support
12
13 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
14 ---
15  board/sunxi/dram_a10_olinuxino_l.c | 40 +++++++++++++++++++-------------------
16  boards.cfg                         |  2 +-
17  2 files changed, 21 insertions(+), 21 deletions(-)
18
19 diff --git a/board/sunxi/dram_a10_olinuxino_l.c b/board/sunxi/dram_a10_olinuxino_l.c
20 index 31b6542..24a1bd9 100644
21 --- a/board/sunxi/dram_a10_olinuxino_l.c
22 +++ b/board/sunxi/dram_a10_olinuxino_l.c
23 @@ -4,28 +4,28 @@
24  #include <asm/arch/dram.h>
25  
26  static struct dram_para dram_para = {
27 -       .clock = 480,
28 -       .type = 3,
29 -       .rank_num = 1,
30 -       .density = 4096,
31 -       .io_width = 16,
32 -       .bus_width = 16,
33 -       .cas = 9,
34 -       .zq = 123,
35 -       .odt_en = 0,
36 -       .size = 512,
37 -       .tpr0 = 0x42d899b7,
38 -       .tpr1 = 0xa090,
39 -       .tpr2 = 0x22a00,
40 -       .tpr3 = 0,
41 -       .tpr4 = 0,
42 -       .tpr5 = 0,
43 -       .emr1 = 0x4,
44 -       .emr2 = 0x10,
45 -       .emr3 = 0,
46 +       .clock = 480,
47 +       .type = 3,
48 +       .rank_num = 1,
49 +       .density = 4096,
50 +       .io_width = 16,
51 +       .bus_width = 16,
52 +       .cas = 6,
53 +       .zq = 123,
54 +       .odt_en = 0,
55 +       .size = 512,
56 +       .tpr0 = 0x30926692,
57 +       .tpr1 = 0x1090,
58 +       .tpr2 = 0x1a0c8,
59 +       .tpr3 = 0,
60 +       .tpr4 = 0,
61 +       .tpr5 = 0,
62 +       .emr1 = 0x4,
63 +       .emr2 = 0,
64 +       .emr3 = 0,
65  };
66  
67  unsigned long sunxi_dram_init(void)
68  {
69 -       return dramc_init(&dram_para);
70 +       return dramc_init(&dram_para);
71  }
72 diff --git a/boards.cfg b/boards.cfg
73 index eda05de..dfeb07a 100644
74 --- a/boards.cfg
75 +++ b/boards.cfg
76 @@ -345,6 +345,7 @@ Active  arm         armv7          s5pc1xx     samsung         goni
77  Active  arm         armv7          s5pc1xx     samsung         smdkc100            smdkc100                             -                                                                                                                                 Minkyu Kang <mk7.kang@samsung.com>
78  Active  arm         armv7          socfpga     altera          socfpga             socfpga_cyclone5                     -                                                                                                                                 -
79  Active  arm         armv7          sunxi       -               sunxi               A10_MID_1GB                          sun4i:A10_MID_1GB,SPL                                                                                                             -
80 +Active  arm         armv7          sunxi       -               sunxi               A10-OLinuXino-Lime                   sun4i:A10_OLINUXINO_L,STATUSLED=226,SPL,SUNXI_EMAC                                                                                -
81  Active  arm         armv7          sunxi       -               sunxi               A10s-OLinuXino-M                     sun5i:A10S_OLINUXINO_M,STATUSLED=131,AXP152_POWER,CONS_INDEX=1,SPL,SUNXI_EMAC                                                     -
82  Active  arm         armv7          sunxi       -               sunxi               A10s-OLinuXino-M_FEL                 sun5i:A10S_OLINUXINO_M,STATUSLED=131,AXP152_POWER,CONS_INDEX=1,SPL_FEL,SUNXI_EMAC                                                 -
83  Active  arm         armv7          sunxi       -               sunxi               A13-OLinuXino                        sun5i:A13_OLINUXINO,SPL,STATUSLED=201,CONS_INDEX=2                                                                                -
84 @@ -415,7 +416,6 @@ Active  arm         armv7          sunxi       -               sunxi
85  Active  arm         armv7          sunxi       -               sunxi               uhost_u1a                            sun4i:UHOST_U1A,SPL,STATUSLED=34                                                                                                  -
86  Active  arm         armv7          sunxi       -               sunxi               wobo-i5                              sun5i:WOBO_I5,SPL,STATUSLED=34                                                                                                    -
87  Active  arm         armv7          sunxi       -               sunxi               xzpad700                             sun5i:XZPAD700,SPL                                                                                                                -
88 -Active  arm         armv7          sunxi       -               sunxi               A10-OLinuXino-Lime                   sun4i:A10_OLINUXINO_L,SPL,SUNXI_EMAC                                                                                             -
89  Active  arm         armv7          u8500       st-ericsson     snowball            snowball                             -                                                                                                                                 Mathieu Poirier <mathieu.poirier@linaro.org>
90  Active  arm         armv7          u8500       st-ericsson     u8500               u8500_href                           -                                                                                                                                 -
91  Active  arm         armv7          vf610       freescale       vf610twr            vf610twr                             vf610twr:IMX_CONFIG=board/freescale/vf610twr/imximage.cfg                                                                         Alison Wang <b18965@freescale.com>
92 -- 
93 1.8.5.1
94