Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344138
b: refs/heads/master
c: e83fc6b
h: refs/heads/master
v: v3
  • Loading branch information
Jayachandran C authored and John Crispin committed Nov 9, 2012
1 parent d329030 commit 30a151c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b47a4db1ea7fb7c99dc69335775d2b03d4872b0
refs/heads/master: e83fc6be612ae6642f330e4aff93f32593c25a04
27 changes: 14 additions & 13 deletions trunk/arch/mips/netlogic/xlp/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,23 @@ static void nlm_linux_exit(void)

void __init plat_mem_setup(void)
{
void *fdtp;

panic_timeout = 5;
_machine_restart = (void (*)(char *))nlm_linux_exit;
_machine_halt = nlm_linux_exit;
pm_power_off = nlm_linux_exit;

/*
* If no FDT pointer is passed in, use the built-in FDT.
* device_tree_init() does not handle CKSEG0 pointers in
* 64-bit, so convert pointer.
*/
fdtp = (void *)(long)fw_arg0;
if (!fdtp)
fdtp = __dtb_start;
fdtp = phys_to_virt(__pa(fdtp));
early_init_devtree(fdtp);
}

const char *get_system_type(void)
Expand All @@ -96,23 +109,11 @@ void xlp_mmu_init(void)

void __init prom_init(void)
{
void *fdtp;

xlp_mmu_init();
nlm_hal_init();

/*
* If no FDT pointer is passed in, use the built-in FDT.
* device_tree_init() does not handle CKSEG0 pointers in
* 64-bit, so convert pointer.
*/
fdtp = (void *)(long)fw_arg0;
if (!fdtp)
fdtp = __dtb_start;
fdtp = phys_to_virt(__pa(fdtp));
early_init_devtree(fdtp);

nlm_common_ebase = read_c0_ebase() & (~((1 << 12) - 1));

#ifdef CONFIG_SMP
nlm_wakeup_secondary_cpus(0xffffffff);

Expand Down

0 comments on commit 30a151c

Please sign in to comment.