Changeset 3749
- Timestamp:
- 12/28/07 08:16:20 (5 years ago)
- Location:
- trunk/src/target/u-boot/patches
- Files:
-
- 1 deleted
- 3 edited
-
bbt-scan-second.patch (deleted)
-
neo1973-gsmver.patch (modified) (3 diffs)
-
uboot-gta02.patch (modified) (4 diffs)
-
uboot-s3c2410-nand.patch (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/u-boot/patches/neo1973-gsmver.patch
r3184 r3749 11 11 --- u-boot.orig/board/neo1973/common/cmd_neo1973.c 12 12 +++ u-boot/board/neo1973/common/cmd_neo1973.c 13 @@ - 77,8 +77,10 @@13 @@ -85,8 +85,10 @@ 14 14 goto out_help; 15 15 if (!strcmp(argv[2], "on")) … … 23 23 if (argc < 3) 24 24 goto out_help; 25 @@ -121,7 +123,7 @@ 26 "neo1973 charger off - disable charging\n" 25 @@ -130,7 +132,7 @@ 27 26 "neo1973 backlight (on|off) - switch backlight on or off\n" 27 "neo1973 led num (on|off) - switch LED number 'num' on or off\n" 28 28 "neo1973 vibrator (on|off) - switch vibrator on or off\n" 29 29 - "neo1973 gsm (on|off) - switch GSM Modem on or off\n" … … 134 134 --- u-boot.orig/board/neo1973/gta02/Makefile 135 135 +++ u-boot/board/neo1973/gta02/Makefile 136 @@ -25,7 +25,7 @@ 137 136 @@ -26,6 +26,7 @@ 138 137 LIB = lib$(BOARD).a 139 138 140 -OBJS := gta02.o pcf50633.o ../common/cmd_neo1973.o ../common/jbt6k74.o ../common/udc.o ../common/bootmenu.o 141 +OBJS := gta02.o pcf50633.o ../common/cmd_neo1973.o ../common/gsmver.o ../common/jbt6k74.o ../common/udc.o ../common/bootmenu.o 139 OBJS := gta02.o pcf50633.o nand.o ../common/cmd_neo1973.o \ 140 + ../common/gsmver.o \ 141 ../common/jbt6k74.o ../common/udc.o ../common/bootmenu.o 142 142 SOBJS := ../common/lowlevel_init.o 143 143 144 .PHONY: all -
trunk/src/target/u-boot/patches/uboot-gta02.patch
r3648 r3749 5 5 --- u-boot.orig/Makefile 6 6 +++ u-boot/Makefile 7 @@ -225 0,6 +2250,13 @@7 @@ -2253,6 +2253,13 @@ 8 8 sbc2410x_config: unconfig 9 9 @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0 … … 23 23 --- /dev/null 24 24 +++ u-boot/board/neo1973/gta02/Makefile 25 @@ -0,0 +1,6 4@@25 @@ -0,0 +1,65 @@ 26 26 +# 27 27 +# (C) Copyright 2000, 2001, 2002 … … 51 51 +LIB = lib$(BOARD).a 52 52 + 53 +OBJS := gta02.o pcf50633.o ../common/cmd_neo1973.o ../common/jbt6k74.o ../common/udc.o ../common/bootmenu.o 53 +OBJS := gta02.o pcf50633.o nand.o ../common/cmd_neo1973.o \ 54 + ../common/jbt6k74.o ../common/udc.o ../common/bootmenu.o 54 55 +SOBJS := ../common/lowlevel_init.o 55 56 + … … 2346 2347 + 2347 2348 +#endif /* _GLAMO_REGS_H */ 2349 Index: u-boot/board/neo1973/gta02/nand.c 2350 =================================================================== 2351 --- /dev/null 2352 +++ u-boot/board/neo1973/gta02/nand.c 2353 @@ -0,0 +1,47 @@ 2354 +/* 2355 + * nand.c - Board-specific NAND setup 2356 + * 2357 + * Copyright (C) 2007 by OpenMoko, Inc. 2358 + * Written by Werner Almesberger <werner@openmoko.org> 2359 + * All Rights Reserved 2360 + * 2361 + * This program is free software; you can redistribute it and/or 2362 + * modify it under the terms of the GNU General Public License as 2363 + * published by the Free Software Foundation; either version 2 of 2364 + * the License, or (at your option) any later version. 2365 + * 2366 + * This program is distributed in the hope that it will be useful, 2367 + * but WITHOUT ANY WARRANTY; without even the implied warranty of 2368 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2369 + * GNU General Public License for more details. 2370 + * 2371 + * You should have received a copy of the GNU General Public License 2372 + * along with this program; if not, write to the Free Software 2373 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 2374 + * MA 02111-1307 USA 2375 + */ 2376 + 2377 + 2378 +#include "config.h" /* nand.h needs NAND_MAX_CHIPS */ 2379 +#include "linux/mtd/mtd.h" 2380 +#include "linux/mtd/nand.h" 2381 +#include "s3c2440.h" 2382 + 2383 + 2384 +/* Derived from drivers/nand/nand_bbt.c:largepage_flashbased */ 2385 + 2386 +static uint8_t scan_ff_pattern[] = { 0xff, 0xff }; 2387 + 2388 +static struct nand_bbt_descr badblock_pattern = { 2389 + .options = NAND_BBT_SCAN2NDPAGE, 2390 + .offs = 0, 2391 + .len = 1, 2392 + .pattern = scan_ff_pattern 2393 +}; 2394 + 2395 + 2396 +int board_nand_init(struct nand_chip *nand) 2397 +{ 2398 + nand->badblock_pattern = &badblock_pattern; 2399 + return __board_nand_init(nand); 2400 +} -
trunk/src/target/u-boot/patches/uboot-s3c2410-nand.patch
r3692 r3749 20 20 --- /dev/null 21 21 +++ u-boot/cpu/arm920t/s3c24x0/nand.c 22 @@ -0,0 +1,1 79@@22 @@ -0,0 +1,183 @@ 23 23 +/* 24 24 + * (C) Copyright 2006 OpenMoko, Inc. … … 114 114 + 115 115 +#ifdef CONFIG_S3C2410_NAND_HWECC 116 + void s3c2410_nand_enable_hwecc(struct mtd_info *mtd, int mode)116 +static void s3c2410_nand_enable_hwecc(struct mtd_info *mtd, int mode) 117 117 +{ 118 118 + DEBUGN("s3c2410_nand_enable_hwecc(%p, %d)\n", mtd ,mode); … … 145 145 +#endif 146 146 + 147 +int board_nand_init(struct nand_chip *nand) 147 + 148 +int board_nand_init(void) __attribute__((weak, alias("__board_nand_init"))); 149 + 150 + 151 +int __board_nand_init(struct nand_chip *nand) 148 152 +{ 149 153 + u_int32_t cfg; … … 200 204 +#endif 201 205 +#endif 206 Index: u-boot/include/s3c24x0.h 207 =================================================================== 208 --- u-boot.orig/include/s3c24x0.h 209 +++ u-boot/include/s3c24x0.h 210 @@ -1132,4 +1132,6 @@ 211 212 #endif 213 214 +int __board_nand_init(struct nand_chip *nand); 215 + 216 #endif /*__S3C24X0_H__*/
Note: See TracChangeset
for help on using the changeset viewer.
