Michal Simek | ec9f910 | 2009-03-27 14:25:24 +0100 | [diff] [blame] | 1 | /* |
Michal Simek | a43acfb | 2009-05-26 16:30:10 +0200 | [diff] [blame] | 2 | * Copyright (C) 2007-2009 Michal Simek <monstr@monstr.eu> |
| 3 | * Copyright (C) 2007-2009 PetaLogix |
Michal Simek | ec9f910 | 2009-03-27 14:25:24 +0100 | [diff] [blame] | 4 | * Copyright (C) 2006 Atmark Techno, Inc. |
| 5 | * |
| 6 | * This file is subject to the terms and conditions of the GNU General Public |
| 7 | * License. See the file "COPYING" in the main directory of this archive |
| 8 | * for more details. |
| 9 | */ |
| 10 | |
| 11 | #ifndef _ASM_MICROBLAZE_SETUP_H |
| 12 | #define _ASM_MICROBLAZE_SETUP_H |
| 13 | |
| 14 | #define COMMAND_LINE_SIZE 256 |
| 15 | |
| 16 | # ifndef __ASSEMBLY__ |
| 17 | |
| 18 | # ifdef __KERNEL__ |
| 19 | extern unsigned int boot_cpuid; /* move to smp.h */ |
| 20 | |
| 21 | extern char cmd_line[COMMAND_LINE_SIZE]; |
Michal Simek | ec9f910 | 2009-03-27 14:25:24 +0100 | [diff] [blame] | 22 | |
| 23 | void early_printk(const char *fmt, ...); |
| 24 | |
| 25 | int setup_early_printk(char *opt); |
Michal Simek | e721a45 | 2011-04-04 15:45:06 +0200 | [diff] [blame] | 26 | void remap_early_printk(void); |
Michal Simek | ec9f910 | 2009-03-27 14:25:24 +0100 | [diff] [blame] | 27 | void disable_early_printk(void); |
| 28 | |
Michal Simek | 96a5ff4 | 2010-09-28 16:27:49 +1000 | [diff] [blame] | 29 | #if defined(CONFIG_EARLY_PRINTK) |
Michal Simek | 6971760 | 2010-08-06 14:13:13 +0200 | [diff] [blame] | 30 | #define eprintk early_printk |
| 31 | #else |
| 32 | #define eprintk printk |
| 33 | #endif |
| 34 | |
Michal Simek | ec9f910 | 2009-03-27 14:25:24 +0100 | [diff] [blame] | 35 | void heartbeat(void); |
| 36 | void setup_heartbeat(void); |
| 37 | |
Michal Simek | a43acfb | 2009-05-26 16:30:10 +0200 | [diff] [blame] | 38 | # ifdef CONFIG_MMU |
| 39 | extern void mmu_reset(void); |
| 40 | extern void early_console_reg_tlb_alloc(unsigned int addr); |
| 41 | # endif /* CONFIG_MMU */ |
| 42 | |
Michal Simek | 42a2478 | 2009-10-02 12:48:47 +0200 | [diff] [blame] | 43 | extern void of_platform_reset_gpio_probe(void); |
| 44 | |
Michal Simek | ec9f910 | 2009-03-27 14:25:24 +0100 | [diff] [blame] | 45 | void time_init(void); |
| 46 | void init_IRQ(void); |
| 47 | void machine_early_init(const char *cmdline, unsigned int ram, |
Michal Simek | 2622434 | 2009-07-30 14:31:23 +0200 | [diff] [blame] | 48 | unsigned int fdt, unsigned int msr); |
Michal Simek | ec9f910 | 2009-03-27 14:25:24 +0100 | [diff] [blame] | 49 | |
| 50 | void machine_restart(char *cmd); |
| 51 | void machine_shutdown(void); |
| 52 | void machine_halt(void); |
| 53 | void machine_power_off(void); |
| 54 | |
Michal Simek | a43acfb | 2009-05-26 16:30:10 +0200 | [diff] [blame] | 55 | # endif/* __KERNEL__ */ |
Michal Simek | ec9f910 | 2009-03-27 14:25:24 +0100 | [diff] [blame] | 56 | # endif /* __ASSEMBLY__ */ |
| 57 | #endif /* _ASM_MICROBLAZE_SETUP_H */ |