Skip to contentSkip to conversation

STXXTC Nand support.

PATCH New Pantelis Antoniou 1 participant 1 message Dec 15, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 STXXTC Nand support.

Hi Wolfgang.

The following patch supports the NAND present
on the Silicon Turnkey's XTc board.

The patch is against the testing-NAND branch
of u-boot.

----------8< CHANGELOG 8<------------------

* Support NAND on STXXTC

----------8< patch 8<----------------------

board/stxxtc/Makefile +1 -1
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
 
 LIB	= lib$(BOARD).a
 
-OBJS	= $(BOARD).o oftree.o
+OBJS	= $(BOARD).o oftree.o nand.o
 
 $(LIB):	.depend $(OBJS)
 	$(AR) crv $@ $(OBJS)
board/stxxtc/nand.c new file +78 -0

78 lines not on this page · raw message

board/stxxtc/stxxtc.c +1 -17
@@ -1,6 +1,6 @@
 /*
  * (C) Copyright 2000-2004
- * Pantelis Antoniou, Intracom S.A., panto at intracom.gr
+ * Pantelis Antoniou, Intracom S.A., pantelis.antoniou at gmail.com
  * Wolfgang Denk, DENX Software Engineering, wd at denx.de.
  * (C) Copyright 2005
  * Dan Malek, Embedded Edge, LLC, dan at embeddededge.com
@@ -574,22 +574,6 @@ int board_early_init_f(void)
 	return 0;
 }
 
-#if (CONFIG_COMMANDS & CFG_CMD_NAND)
-
-#include <linux/mtd/nand.h>
-
-extern ulong nand_probe(ulong physadr);
-extern struct nand_chip nand_dev_desc[CFG_MAX_NAND_DEVICE];
-
-void nand_init(void)
-{
-	unsigned long totlen;
-
-	totlen = nand_probe(CFG_NAND_BASE);
-	printf ("%4lu MB\n", totlen >> 20);
-}
-#endif
-
 #ifdef CONFIG_HW_WATCHDOG
 
 void hw_watchdog_reset(void)
include/configs/stxxtc.h +4 -81

92 lines not on this page · raw message