diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2013-01-22 06:30:52 -0500 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2013-02-15 12:45:55 -0500 |
commit | 999159a5381bff3bd6f688c5d20fbec9d8789e53 (patch) | |
tree | d54af343e2fa905b3d97d9dd87d763a43b256067 /arch/arc/mm | |
parent | ee36d1722112f33725ec1a7fc02f6c46e630fd27 (diff) |
ARC: [DeviceTree] Basic support
This is minimal infrastructure needed for devicetree work.
It uses an a sample "skeleton" devicetree - embedded in kernel image -
to print the board, manufacturer by parsing the top-level "compatible"
string.
As of now we don't need any additional "board" specific "machine_desc".
TODO: support interpreting the command line as boot-loader passed dtb
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: devicetree-discuss@lists.ozlabs.org
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: James Hogan <james.hogan@imgtec.com>
Reviewed-by: Rob Herring <rob.herring@calxeda.com>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Diffstat (limited to 'arch/arc/mm')
-rw-r--r-- | arch/arc/mm/init.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arc/mm/init.c b/arch/arc/mm/init.c index 63da3478521f..682cf5740483 100644 --- a/arch/arc/mm/init.c +++ b/arch/arc/mm/init.c | |||
@@ -39,6 +39,11 @@ static int __init setup_mem_sz(char *str) | |||
39 | } | 39 | } |
40 | early_param("mem", setup_mem_sz); | 40 | early_param("mem", setup_mem_sz); |
41 | 41 | ||
42 | void __init early_init_dt_add_memory_arch(u64 base, u64 size) | ||
43 | { | ||
44 | pr_err("%s(%llx, %llx)\n", __func__, base, size); | ||
45 | } | ||
46 | |||
42 | /* | 47 | /* |
43 | * First memory setup routine called from setup_arch() | 48 | * First memory setup routine called from setup_arch() |
44 | * 1. setup swapper's mm @init_mm | 49 | * 1. setup swapper's mm @init_mm |
@@ -169,3 +174,11 @@ void __init free_initrd_mem(unsigned long start, unsigned long end) | |||
169 | free_init_pages("initrd memory", start, end); | 174 | free_init_pages("initrd memory", start, end); |
170 | } | 175 | } |
171 | #endif | 176 | #endif |
177 | |||
178 | #ifdef CONFIG_OF_FLATTREE | ||
179 | void __init early_init_dt_setup_initrd_arch(unsigned long start, | ||
180 | unsigned long end) | ||
181 | { | ||
182 | pr_err("%s(%lx, %lx)\n", __func__, start, end); | ||
183 | } | ||
184 | #endif /* CONFIG_OF_FLATTREE */ | ||