Skip to contentSkip to conversation

s5pc1xx: Add support for Samsung Goni board

U-Boot Minkyu Kang 1 participant 1 message May 28, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

This patch adds support for the Samsung Goni board (S5PC110 SoC)

---
 MAINTAINERS                        |    1 +
 MAKEALL                            |    1 +
 Makefile                           |    3 +
 board/samsung/goni/Makefile        |   54 ++++
 board/samsung/goni/config.mk       |   16 +
 board/samsung/goni/goni.c          |   60 ++++
 board/samsung/goni/lowlevel_init.S |  585 ++++++++++++++++++++++++++++++++++++
 board/samsung/goni/mem_setup.S     |  265 ++++++++++++++++
 board/samsung/goni/onenand.c       |   36 +++
 include/configs/s5p_goni.h         |  241 +++++++++++++++
 10 files changed, 1262 insertions(+), 0 deletions(-)
 create mode 100644 board/samsung/goni/Makefile
 create mode 100644 board/samsung/goni/config.mk
 create mode 100644 board/samsung/goni/goni.c
 create mode 100644 board/samsung/goni/lowlevel_init.S
 create mode 100644 board/samsung/goni/mem_setup.S
 create mode 100644 board/samsung/goni/onenand.c
 create mode 100644 include/configs/s5p_goni.h
MAINTAINERS +1 -0
index 7f688c3..d00756f 100644
@@ -628,6 +628,7 @@ Simon Kagstrom <[email protected]>
 Minkyu Kang <[email protected]>
 
 	SMDKC100	ARM CORTEX-A8 (S5PC100 SoC)
+	s5p_goni	ARM CORTEX-A8 (S5PC110 SoC)
 
 Nishant Kamat <[email protected]>
 
MAKEALL +1 -0
index 326bde0..f1eefb6 100755
@@ -649,6 +649,7 @@ LIST_ARM_CORTEX_A8="		\
 	omap3_zoom1		\
 	omap3_zoom2		\
 	smdkc100		\
+	s5p_goni		\
 "
 
 #########################################################################
Makefile +3 -0
index e49def3..ef37b99 100644
@@ -3179,6 +3179,9 @@ omap3_zoom2_config :	unconfig
 smdkc100_config:	unconfig
 	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 smdkc100 samsung s5pc1xx
 
+s5p_goni_config:	unconfig
+	@$(MKCONFIG) $(@:_config=) arm arm_cortexa8 goni samsung s5pc1xx
+
 #########################################################################
 ## XScale Systems
 #########################################################################
board/samsung/goni/Makefile new file +54 -0

54 lines not on this page · raw message

board/samsung/goni/config.mk new file +16 -0
new file mode 100644
index 0000000..2da9ca1
@@ -0,0 +1,16 @@
+#
+# Copyright (C) 2008 # Samsung Elecgtronics
+# Kyungmin Park <[email protected]>
+#
+
+# On S5PC100 we use the 128 MiB OneDRAM bank at
+#
+# 0x30000000 to 0x35000000 (80MiB)
+# 0x38000000 to 0x40000000 (128MiB)
+#
+# On S5PC110 we use the 128 MiB OneDRAM bank at
+#
+# 0x30000000 to 0x35000000 (80MiB)
+# 0x40000000 to 0x50000000 (256MiB)
+#
+TEXT_BASE = 0x34800000
board/samsung/goni/goni.c new file +60 -0

60 lines not on this page · raw message

board/samsung/goni/lowlevel_init.S new file +585 -0

585 lines not on this page · raw message

board/samsung/goni/mem_setup.S new file +265 -0

265 lines not on this page · raw message

board/samsung/goni/onenand.c new file +36 -0
new file mode 100644
index 0000000..8d3769b
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2008-2009 Samsung Electronics
+ * Kyungmin Park <[email protected]>
+ *
+ * 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>
+#include <linux/mtd/mtd.h>
+#include <linux/mtd/onenand.h>
+#include <linux/mtd/samsung_onenand.h>
+#include <onenand_uboot.h>
+
+void onenand_board_init(struct mtd_info *mtd)
+{
+	struct onenand_chip *this = mtd->priv;
+
+	this->base = (void *)CONFIG_SYS_ONENAND_BASE;
+	this->options |= ONENAND_RUNTIME_BADBLOCK_CHECK;
+}
include/configs/s5p_goni.h new file +241 -0

241 lines not on this page · raw message

Signature · 1 line
1.6.3.3