diff options
author | Chris Zankel <czankel@tensilica.com> | 2005-06-24 01:01:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-24 03:05:22 -0400 |
commit | 7282bee78798294bb1f0211a842cdb9f4872db3d (patch) | |
tree | 7a659275aaa7f4c741bd24eeb9f827b2f0a926d5 /include/asm-xtensa | |
parent | e344b63eeec7850b5e900e10c8a6c61d083fd3a4 (diff) |
[PATCH] xtensa: Architecture support for Tensilica Xtensa Part 8
The attached patches provides part 8 of an architecture implementation
for the Tensilica Xtensa CPU series.
Signed-off-by: Chris Zankel <chris@zankel.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-xtensa')
-rw-r--r-- | include/asm-xtensa/platform-iss/hardware.h | 29 | ||||
-rw-r--r-- | include/asm-xtensa/platform.h | 92 |
2 files changed, 121 insertions, 0 deletions
diff --git a/include/asm-xtensa/platform-iss/hardware.h b/include/asm-xtensa/platform-iss/hardware.h new file mode 100644 index 000000000000..22240f001803 --- /dev/null +++ b/include/asm-xtensa/platform-iss/hardware.h | |||
@@ -0,0 +1,29 @@ | |||
1 | /* | ||
2 | * include/asm-xtensa/platform-iss/hardware.h | ||
3 | * | ||
4 | * This file is subject to the terms and conditions of the GNU General Public | ||
5 | * License. See the file "COPYING" in the main directory of this archive | ||
6 | * for more details. | ||
7 | * | ||
8 | * Copyright (C) 2001 Tensilica Inc. | ||
9 | */ | ||
10 | |||
11 | /* | ||
12 | * This file contains the default configuration of ISS. | ||
13 | */ | ||
14 | |||
15 | #ifndef __ASM_XTENSA_ISS_HARDWARE | ||
16 | #define __ASM_XTENSA_ISS_HARDWARE | ||
17 | |||
18 | /* | ||
19 | * Memory configuration. | ||
20 | */ | ||
21 | |||
22 | #define PLATFORM_DEFAULT_MEM_START XSHAL_RAM_PADDR | ||
23 | #define PLATFORM_DEFAULT_MEM_SIZE XSHAL_RAM_VSIZE | ||
24 | |||
25 | /* | ||
26 | * Interrupt configuration. | ||
27 | */ | ||
28 | |||
29 | #endif /* __ASM_XTENSA_ISS_HARDWARE */ | ||
diff --git a/include/asm-xtensa/platform.h b/include/asm-xtensa/platform.h new file mode 100644 index 000000000000..36163894bc20 --- /dev/null +++ b/include/asm-xtensa/platform.h | |||
@@ -0,0 +1,92 @@ | |||
1 | /* | ||
2 | * include/asm-xtensa/platform.h | ||
3 | * | ||
4 | * Platform specific functions | ||
5 | * | ||
6 | * This file is subject to the terms and conditions of the GNU General | ||
7 | * Public License. See the file "COPYING" in the main directory of | ||
8 | * this archive for more details. | ||
9 | * | ||
10 | * Copyright (C) 2001 - 2005 Tensilica Inc. | ||
11 | */ | ||
12 | |||
13 | #ifndef _XTENSA_PLATFORM_H | ||
14 | #define _XTENSA_PLATFORM_H | ||
15 | |||
16 | #include <linux/config.h> | ||
17 | #include <linux/types.h> | ||
18 | #include <linux/pci.h> | ||
19 | |||
20 | #include <asm/bootparam.h> | ||
21 | |||
22 | /* | ||
23 | * platform_init is called before the mmu is initialized to give the | ||
24 | * platform a early hook-up. bp_tag_t is a list of configuration tags | ||
25 | * passed from the boot-loader. | ||
26 | */ | ||
27 | extern void platform_init(bp_tag_t*); | ||
28 | |||
29 | /* | ||
30 | * platform_setup is called from setup_arch with a pointer to the command-line | ||
31 | * string. | ||
32 | */ | ||
33 | extern void platform_setup (char **); | ||
34 | |||
35 | /* | ||
36 | * platform_init_irq is called from init_IRQ. | ||
37 | */ | ||
38 | extern void platform_init_irq (void); | ||
39 | |||
40 | /* | ||
41 | * platform_restart is called to restart the system. | ||
42 | */ | ||
43 | extern void platform_restart (void); | ||
44 | |||
45 | /* | ||
46 | * platform_halt is called to stop the system and halt. | ||
47 | */ | ||
48 | extern void platform_halt (void); | ||
49 | |||
50 | /* | ||
51 | * platform_power_off is called to stop the system and power it off. | ||
52 | */ | ||
53 | extern void platform_power_off (void); | ||
54 | |||
55 | /* | ||
56 | * platform_idle is called from the idle function. | ||
57 | */ | ||
58 | extern void platform_idle (void); | ||
59 | |||
60 | /* | ||
61 | * platform_heartbeat is called every HZ | ||
62 | */ | ||
63 | extern void platform_heartbeat (void); | ||
64 | |||
65 | /* | ||
66 | * platform_pcibios_init is called to allow the platform to setup the pci bus. | ||
67 | */ | ||
68 | extern void platform_pcibios_init (void); | ||
69 | |||
70 | /* | ||
71 | * platform_pcibios_fixup allows to modify the PCI configuration. | ||
72 | */ | ||
73 | extern int platform_pcibios_fixup (void); | ||
74 | |||
75 | /* | ||
76 | * platform_calibrate_ccount calibrates cpu clock freq (CONFIG_XTENSA_CALIBRATE) | ||
77 | */ | ||
78 | extern void platform_calibrate_ccount (void); | ||
79 | |||
80 | /* | ||
81 | * platform_get_rtc_time returns RTC seconds (returns 0 for no error) | ||
82 | */ | ||
83 | extern int platform_get_rtc_time(time_t*); | ||
84 | |||
85 | /* | ||
86 | * platform_set_rtc_time set RTC seconds (returns 0 for no error) | ||
87 | */ | ||
88 | extern int platform_set_rtc_time(time_t); | ||
89 | |||
90 | |||
91 | #endif /* _XTENSA_PLATFORM_H */ | ||
92 | |||