| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | [RFC 07/13] MIPS: JZ4750D: Add setup code |
| From: | Antony Pavlov <antonynpavlov@gmail.com> |
| Date: | Tue, 23 Oct 2012 21:43:55 +0400 |
| Cc: | Ralf Baechle <ralf@linux-mips.org>, Lars-Peter Clausen <lars@metafoo.de>, Maarten ter Huurne <maarten@treewalker.org>, Antony Pavlov <antonynpavlov@gmail.com> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=7fNihtDmco4Xy1RL3kDnFzVzPN5vC7OZompxmgn2v4I=; b=lP7tJKWX7qDIG4C8UFw74OvQqelpaLgJ1mvoISr8zTdpc8znS1R9RVbLhG0Hl+x+c1 DJSOIK2Ejrxq1qwCloXvxTrdqqTYHSpEXZI4/aG5L+qwIi2uyFlVDUWxQwBEJXg7L/mZ x2mup8PpVRb1tiC7RxnXQcRMLUAfAqG6f1ngow2nWV1UQoUHXeVNSkqwOEzZF6Z1ef6Z z4QadsqUUXwtsQNelaBJYQSMqR0ZVWv7VXPcP2f5qkln+yt0BWT26YYf3y+Z/0cGZPoX 6MBCaksOg5XCKZR4VzKX2FbB1DgP+Xym12bWGxHlLwYGgVqF5pEl1EdTV0/nU8zxIpaF 9kcw== |
| In-reply-to: | <1351014241-3207-1-git-send-email-antonynpavlov@gmail.com> |
| List-archive: | <http://www.linux-mips.org/archives/linux-mips/> |
| List-help: | <mailto:ecartis@linux-mips.org?Subject=help> |
| List-id: | linux-mips <linux-mips.eddie.linux-mips.org> |
| List-owner: | <mailto:ralf@linux-mips.org> |
| List-post: | <mailto:linux-mips@linux-mips.org> |
| List-software: | Ecartis version 1.0.0 |
| List-subscribe: | <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips> |
| List-unsubscribe: | <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips> |
| References: | <1351014241-3207-1-git-send-email-antonynpavlov@gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
Add get_system_type for JZ4750D SoCs. Fix memory size to 64M.
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
arch/mips/jz4750d/setup.c | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
create mode 100644 arch/mips/jz4750d/setup.c
diff --git a/arch/mips/jz4750d/setup.c b/arch/mips/jz4750d/setup.c
new file mode 100644
index 0000000..e36ed0a
--- /dev/null
+++ b/arch/mips/jz4750d/setup.c
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2012, Antony Pavlov <antonynpavlov@gmail.com>
+ * JZ4750D setup code
+ *
+ * based on JZ4740 setup code
+ * Copyright (C) 2009-2010, Lars-Peter Clausen <lars@metafoo.de>
+ * Copyright (C) 2011, Maarten ter Huurne <maarten@treewalker.org>
+ *
+ * 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.
+ *
+ */
+
+#include <linux/init.h>
+#include <linux/io.h>
+#include <linux/kernel.h>
+
+#include <asm/bootinfo.h>
+
+#include "reset.h"
+
+void __init plat_mem_setup(void)
+{
+ jz4750d_reset_init();
+
+ /* FIXME: the detection of the memory size is skipped */
+ add_memory_region(0, 0x04000000 /* 64 M */, BOOT_MEM_RAM);
+}
+
+const char *get_system_type(void)
+{
+ return "JZ4750D";
+}
--
1.7.10.4
|
| Previous by Date: | [RFC 06/13] MIPS: JZ4750D: Add system reset support, Antony Pavlov |
|---|---|
| Next by Date: | [RFC 08/13] MIPS: JZ4750D: Add serial support, Antony Pavlov |
| Previous by Thread: | [RFC 06/13] MIPS: JZ4750D: Add system reset support, Antony Pavlov |
| Next by Thread: | [RFC 08/13] MIPS: JZ4750D: Add serial support, Antony Pavlov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |