2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 2008 Maxime Bizon <mbizon@freebox.fr>
9 #include <linux/init.h>
10 #include <linux/bootmem.h>
11 #include <asm/bootinfo.h>
12 #include <bcm63xx_board.h>
13 #include <bcm63xx_cpu.h>
14 #include <bcm63xx_io.h>
15 #include <bcm63xx_regs.h>
17 void __init
prom_init(void)
23 /* stop any running watchdog */
24 bcm_wdt_writel(WDT_STOP_1
, WDT_CTL_REG
);
25 bcm_wdt_writel(WDT_STOP_2
, WDT_CTL_REG
);
27 /* disable all hardware blocks clock for now */
29 mask
= CKCTL_6348_ALL_SAFE_EN
;
31 /* BCMCPU_IS_6358() */
32 mask
= CKCTL_6358_ALL_SAFE_EN
;
34 reg
= bcm_perf_readl(PERF_CKCTL_REG
);
36 bcm_perf_writel(reg
, PERF_CKCTL_REG
);
38 /* assign command line from kernel config */
39 strcpy(arcs_cmdline
, CONFIG_CMDLINE
);
41 /* do low level board init */
45 void __init
prom_free_prom_memory(void)
This page took 0.047009 seconds and 5 git commands to generate.