blob: 2dea8b59d2220e1bacf274bdf7c75c010bbf8728 [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
Fabio Baltieribd93ec52013-06-14 15:22:40 +020014#include <asm/mach/arch.h>
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +010015#include <asm/mach/time.h>
16#include <linux/init.h>
Lee Jones3a8e39c2012-07-06 12:46:23 +020017#include <linux/mfd/abx500/ab8500.h>
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +010018
Fabio Baltieribd93ec52013-06-14 15:22:40 +020019void ux500_restart(enum reboot_mode mode, const char *cmd);
20
Rabin Vincentabf12d72010-12-08 11:07:59 +053021void __init ux500_map_io(void);
Rabin Vincentd48fd002010-05-03 07:46:56 +010022
Rabin Vincent178980f2010-05-03 07:39:02 +010023extern void __init ux500_init_irq(void);
Per Forlinbab263e2010-12-05 12:49:03 +010024
Lee Joneseda413c2012-02-06 11:22:24 -080025extern struct device *ux500_soc_device_init(const char *soc_id);
Per Forline8b1cc32010-12-05 13:35:12 +010026
Stephen Warren6bb27d72012-11-08 12:40:59 -070027extern void ux500_timer_init(void);
Rabin Vincentcc2c1332010-03-01 05:03:31 +010028
Rabin Vincent178980f2010-05-03 07:39:02 +010029#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 Walleijf9467382010-08-19 10:27:49 +010036#define __MEM_DEV_DESC(x, sz) { \
37 .virtual = IO_ADDRESS(x), \
38 .pfn = __phys_to_pfn(x), \
39 .length = sz, \
Russell King2e2c9de2013-10-24 10:26:40 +010040 .type = MT_MEMORY_RWX, \
Linus Walleijf9467382010-08-19 10:27:49 +010041}
42
Marc Zyngier5ac21a92011-09-08 13:15:22 +010043extern struct smp_operations ux500_smp_ops;
44extern void ux500_cpu_die(unsigned int cpu);
45
Srinidhi Kasagaraa44ef42009-11-28 08:17:18 +010046#endif /* __ASM_ARCH_SETUP_H */