mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
DeviceTree updates for 3.13. This is a bit larger pull request than
usual for this cycle with lots of clean-up.
- Cross arch clean-up and consolidation of early DT scanning code.
- Clean-up and removal of arch prom.h headers. Makes arch specific
prom.h optional on all but Sparc.
- Addition of interrupts-extended property for devices connected to
multiple interrupt controllers.
- Refactoring of DT interrupt parsing code in preparation for deferred
probe of interrupts.
- ARM cpu and cpu topology bindings documentation.
- Various DT vendor binding documentation updates.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQEcBAABAgAGBQJSgPQ4AAoJEMhvYp4jgsXif28H/1WkrXq5+lCFQZF8nbYdE2h0
R8PsfiJJmAl6/wFgQTsRel+ScMk2hiP08uTyqf2RLnB1v87gCF7MKVaLOdONfUDi
huXbcQGWCmZv0tbBIklxJe3+X3FIJch4gnyUvPudD1m8a0R0LxWXH/NhdTSFyB20
PNjhN/IzoN40X1PSAhfB5ndWnoxXBoehV/IVHVDU42vkPVbVTyGAw5qJzHW8CLyN
2oGTOalOO4ffQ7dIkBEQfj0mrgGcODToPdDvUQyyGZjYK2FY2sGrjyquir6SDcNa
Q4gwatHTu0ygXpyphjtQf5tc3ZCejJ/F0s3olOAS1ahKGfe01fehtwPRROQnCK8=
=GCbY
-----END PGP SIGNATURE-----
Merge tag 'devicetree-for-3.13' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
Pull devicetree updates from Rob Herring:
"DeviceTree updates for 3.13. This is a bit larger pull request than
usual for this cycle with lots of clean-up.
- Cross arch clean-up and consolidation of early DT scanning code.
- Clean-up and removal of arch prom.h headers. Makes arch specific
prom.h optional on all but Sparc.
- Addition of interrupts-extended property for devices connected to
multiple interrupt controllers.
- Refactoring of DT interrupt parsing code in preparation for
deferred probe of interrupts.
- ARM cpu and cpu topology bindings documentation.
- Various DT vendor binding documentation updates"
* tag 'devicetree-for-3.13' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (82 commits)
powerpc: add missing explicit OF includes for ppc
dt/irq: add empty of_irq_count for !OF_IRQ
dt: disable self-tests for !OF_IRQ
of: irq: Fix interrupt-map entry matching
MIPS: Netlogic: replace early_init_devtree() call
of: Add Panasonic Corporation vendor prefix
of: Add Chunghwa Picture Tubes Ltd. vendor prefix
of: Add AU Optronics Corporation vendor prefix
of/irq: Fix potential buffer overflow
of/irq: Fix bug in interrupt parsing refactor.
of: set dma_mask to point to coherent_dma_mask
of: add vendor prefix for PHYTEC Messtechnik GmbH
DT: sort vendor-prefixes.txt
of: Add vendor prefix for Cadence
of: Add empty for_each_available_child_of_node() macro definition
arm/versatile: Fix versatile irq specifications.
of/irq: create interrupts-extended property
microblaze/pci: Drop PowerPC-ism from irq parsing
of/irq: Create of_irq_parse_and_map_pci() to consolidate arch code.
of/irq: Use irq_of_parse_and_map()
...
This commit is contained in:
commit
10d0c9705e
212 changed files with 1919 additions and 1249 deletions
|
|
@ -1 +0,0 @@
|
|||
/* dummy prom.h; here to make linux/of.h's #includes happy */
|
||||
|
|
@ -14,8 +14,6 @@
|
|||
#include <uapi/asm/setup.h>
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
extern char c6x_command_line[COMMAND_LINE_SIZE];
|
||||
|
||||
extern int c6x_add_memory(phys_addr_t start, unsigned long size);
|
||||
|
||||
extern unsigned long ram_start;
|
||||
|
|
|
|||
|
|
@ -10,37 +10,8 @@
|
|||
*
|
||||
*/
|
||||
#include <linux/init.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/of_fdt.h>
|
||||
#include <linux/initrd.h>
|
||||
#include <linux/memblock.h>
|
||||
|
||||
void __init early_init_devtree(void *params)
|
||||
{
|
||||
/* Setup flat device-tree pointer */
|
||||
initial_boot_params = params;
|
||||
|
||||
/* Retrieve various informations from the /chosen node of the
|
||||
* device-tree, including the platform type, initrd location and
|
||||
* size and more ...
|
||||
*/
|
||||
of_scan_flat_dt(early_init_dt_scan_chosen, c6x_command_line);
|
||||
|
||||
/* Scan memory nodes and rebuild MEMBLOCKs */
|
||||
of_scan_flat_dt(early_init_dt_scan_root, NULL);
|
||||
of_scan_flat_dt(early_init_dt_scan_memory, NULL);
|
||||
}
|
||||
|
||||
|
||||
#ifdef CONFIG_BLK_DEV_INITRD
|
||||
void __init early_init_dt_setup_initrd_arch(u64 start, u64 end)
|
||||
{
|
||||
initrd_start = (unsigned long)__va(start);
|
||||
initrd_end = (unsigned long)__va(end);
|
||||
initrd_below_start_ok = 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
void __init early_init_dt_add_memory_arch(u64 base, u64 size)
|
||||
{
|
||||
c6x_add_memory(base, size);
|
||||
|
|
|
|||
|
|
@ -68,13 +68,6 @@ unsigned long ram_end;
|
|||
static unsigned long dma_start __initdata;
|
||||
static unsigned long dma_size __initdata;
|
||||
|
||||
char c6x_command_line[COMMAND_LINE_SIZE];
|
||||
|
||||
#if defined(CONFIG_CMDLINE_BOOL)
|
||||
static const char default_command_line[COMMAND_LINE_SIZE] __section(.cmdline) =
|
||||
CONFIG_CMDLINE;
|
||||
#endif
|
||||
|
||||
struct cpuinfo_c6x {
|
||||
const char *cpu_name;
|
||||
const char *cpu_voltage;
|
||||
|
|
@ -294,10 +287,8 @@ notrace void __init machine_init(unsigned long dt_ptr)
|
|||
fdt = dtb;
|
||||
|
||||
/* Do some early initialization based on the flat device tree */
|
||||
early_init_devtree(fdt);
|
||||
early_init_dt_scan(fdt);
|
||||
|
||||
/* parse_early_param needs a boot_command_line */
|
||||
strlcpy(boot_command_line, c6x_command_line, COMMAND_LINE_SIZE);
|
||||
parse_early_param();
|
||||
}
|
||||
|
||||
|
|
@ -309,7 +300,7 @@ void __init setup_arch(char **cmdline_p)
|
|||
printk(KERN_INFO "Initializing kernel\n");
|
||||
|
||||
/* Initialize command line */
|
||||
*cmdline_p = c6x_command_line;
|
||||
*cmdline_p = boot_command_line;
|
||||
|
||||
memory_end = ram_end;
|
||||
memory_end &= ~(PAGE_SIZE - 1);
|
||||
|
|
|
|||
|
|
@ -37,12 +37,6 @@ SECTIONS
|
|||
_vectors_end = .;
|
||||
}
|
||||
|
||||
. = ALIGN(0x1000);
|
||||
.cmdline :
|
||||
{
|
||||
*(.cmdline)
|
||||
}
|
||||
|
||||
/*
|
||||
* This section contains data which may be shared with other
|
||||
* cores. It needs to be a fixed offset from PAGE_OFFSET
|
||||
|
|
|
|||
Loading…
Reference in a new issue