Srinidhi Kasagar | aa44ef4 | 2009-11-28 08:17:18 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2009 ST-Ericsson. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | * |
| 8 | * These symbols are needed for board-specific files to call their |
| 9 | * own cpu-specific files |
| 10 | */ |
| 11 | #ifndef __ASM_ARCH_SETUP_H |
| 12 | #define __ASM_ARCH_SETUP_H |
| 13 | |
Fabio Baltieri | bd93ec5 | 2013-06-14 15:22:40 +0200 | [diff] [blame] | 14 | #include <asm/mach/arch.h> |
Srinidhi Kasagar | aa44ef4 | 2009-11-28 08:17:18 +0100 | [diff] [blame] | 15 | #include <asm/mach/time.h> |
| 16 | #include <linux/init.h> |
Lee Jones | 3a8e39c | 2012-07-06 12:46:23 +0200 | [diff] [blame] | 17 | #include <linux/mfd/abx500/ab8500.h> |
Srinidhi Kasagar | aa44ef4 | 2009-11-28 08:17:18 +0100 | [diff] [blame] | 18 | |
Fabio Baltieri | bd93ec5 | 2013-06-14 15:22:40 +0200 | [diff] [blame] | 19 | void ux500_restart(enum reboot_mode mode, const char *cmd); |
| 20 | |
Rabin Vincent | abf12d7 | 2010-12-08 11:07:59 +0530 | [diff] [blame] | 21 | void __init ux500_map_io(void); |
Rabin Vincent | d48fd00 | 2010-05-03 07:46:56 +0100 | [diff] [blame] | 22 | |
Rabin Vincent | 178980f | 2010-05-03 07:39:02 +0100 | [diff] [blame] | 23 | extern void __init ux500_init_irq(void); |
Per Forlin | bab263e | 2010-12-05 12:49:03 +0100 | [diff] [blame] | 24 | |
Lee Jones | eda413c | 2012-02-06 11:22:24 -0800 | [diff] [blame] | 25 | extern struct device *ux500_soc_device_init(const char *soc_id); |
Per Forlin | e8b1cc3 | 2010-12-05 13:35:12 +0100 | [diff] [blame] | 26 | |
Stephen Warren | 6bb27d7 | 2012-11-08 12:40:59 -0700 | [diff] [blame] | 27 | extern void ux500_timer_init(void); |
Rabin Vincent | cc2c133 | 2010-03-01 05:03:31 +0100 | [diff] [blame] | 28 | |
Rabin Vincent | 178980f | 2010-05-03 07:39:02 +0100 | [diff] [blame] | 29 | #define __IO_DEV_DESC(x, sz) { \ |
| 30 | .virtual = IO_ADDRESS(x), \ |
| 31 | .pfn = __phys_to_pfn(x), \ |
| 32 | .length = sz, \ |
| 33 | .type = MT_DEVICE, \ |
| 34 | } |
| 35 | |
Linus Walleij | f946738c | 2010-08-19 10:27:49 +0100 | [diff] [blame] | 36 | #define __MEM_DEV_DESC(x, sz) { \ |
| 37 | .virtual = IO_ADDRESS(x), \ |
| 38 | .pfn = __phys_to_pfn(x), \ |
| 39 | .length = sz, \ |
Russell King | 2e2c9de | 2013-10-24 10:26:40 +0100 | [diff] [blame] | 40 | .type = MT_MEMORY_RWX, \ |
Linus Walleij | f946738c | 2010-08-19 10:27:49 +0100 | [diff] [blame] | 41 | } |
| 42 | |
Marc Zyngier | 5ac21a9 | 2011-09-08 13:15:22 +0100 | [diff] [blame] | 43 | extern struct smp_operations ux500_smp_ops; |
| 44 | extern void ux500_cpu_die(unsigned int cpu); |
| 45 | |
Srinidhi Kasagar | aa44ef4 | 2009-11-28 08:17:18 +0100 | [diff] [blame] | 46 | #endif /* __ASM_ARCH_SETUP_H */ |