[RFC 07/13] MIPS: JZ4750D: Add setup code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add get_system_type for JZ4750D SoCs. Fix memory size to 64M.

Signed-off-by: Antony Pavlov <antonynpavlov@xxxxxxxxx>
---
 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@xxxxxxxxx>
+ *  JZ4750D setup code
+ *
+ *  based on JZ4740 setup code
+ *  Copyright (C) 2009-2010, Lars-Peter Clausen <lars@xxxxxxxxxx>
+ *  Copyright (C) 2011, Maarten ter Huurne <maarten@xxxxxxxxxxxxxx>
+ *
+ *  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




[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux