blob: cad3ca86c540f7eb67c454ce44f0317b80312ad3 [file] [log] [blame]
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +01001/*
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
14#include <asm/mach/time.h>
15#include <linux/init.h>
Lee Jones3a8e39c2012-07-06 12:46:23 +020016#include <linux/mfd/abx500/ab8500.h>
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +010017
Rabin Vincentabf12d72010-12-08 11:07:59 +053018void __init ux500_map_io(void);
Rabin Vincent178980f2010-05-03 07:39:02 +010019extern void __init u8500_map_io(void);
20
Lee Jones3210c052013-05-08 14:29:01 +010021extern struct device * __init u8500_init_devices(void);
Rabin Vincentd48fd002010-05-03 07:46:56 +010022
Rabin Vincent178980f2010-05-03 07:39:02 +010023extern void __init ux500_init_irq(void);
Shawn Guoa010bc22012-05-02 17:10:07 +080024extern void __init ux500_init_late(void);
Per Forlinbab263e2010-12-05 12:49:03 +010025
Lee Joneseda413c2012-02-06 11:22:24 -080026extern struct device *ux500_soc_device_init(const char *soc_id);
Per Forline8b1cc32010-12-05 13:35:12 +010027
Rabin Vincentfbf1eadf2010-09-29 19:46:32 +053028struct amba_device;
Rabin Vincentd48fd002010-05-03 07:46:56 +010029extern void __init amba_add_devices(struct amba_device *devs[], int num);
30
Stephen Warren6bb27d72012-11-08 12:40:59 -070031extern void ux500_timer_init(void);
Rabin Vincentcc2c1332010-03-01 05:03:31 +010032
Rabin Vincent178980f2010-05-03 07:39:02 +010033#define __IO_DEV_DESC(x, sz) { \
34 .virtual = IO_ADDRESS(x), \
35 .pfn = __phys_to_pfn(x), \
36 .length = sz, \
37 .type = MT_DEVICE, \
38}
39
Linus Walleijf9467382010-08-19 10:27:49 +010040#define __MEM_DEV_DESC(x, sz) { \
41 .virtual = IO_ADDRESS(x), \
42 .pfn = __phys_to_pfn(x), \
43 .length = sz, \
44 .type = MT_MEMORY, \
45}
46
Marc Zyngier5ac21a92011-09-08 13:15:22 +010047extern struct smp_operations ux500_smp_ops;
48extern void ux500_cpu_die(unsigned int cpu);
49
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +010050#endif /* __ASM_ARCH_SETUP_H */