blob: 0c5a85062b153bf6cc0bbe71f7f42750d216f755 [file] [log] [blame]
Travis Geiselbrecht1d0df692008-09-01 02:26:09 -07001/*
2 * Copyright (c) 2008 Travis Geiselbrecht
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files
6 * (the "Software"), to deal in the Software without restriction,
7 * including without limitation the rights to use, copy, modify, merge,
8 * publish, distribute, sublicense, and/or sell copies of the Software,
9 * and to permit persons to whom the Software is furnished to do so,
10 * subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be
13 * included in all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */
23#include <err.h>
24#include <debug.h>
25#include <platform.h>
Amol Jadi02ca2ee2013-03-15 16:06:34 -070026#include <boot_stats.h>
Travis Geiselbrecht1d0df692008-09-01 02:26:09 -070027
Amol Jadi4421e652011-06-16 15:00:48 -070028/*
Travis Geiselbrecht1d0df692008-09-01 02:26:09 -070029 * default implementations of these routines, if the platform code
30 * chooses not to implement.
31 */
Deepa Dinamani20cb9e52012-10-18 12:20:47 -070032__WEAK int platform_use_identity_mmu_mappings(void)
33{
34 return 1;
35}
Travis Geiselbrecht1d0df692008-09-01 02:26:09 -070036
37__WEAK void platform_init_mmu_mappings(void)
38{
39}
40
Deepa Dinamani20cb9e52012-10-18 12:20:47 -070041__WEAK addr_t platform_get_virt_to_phys_mapping(addr_t virt_addr)
42{
43 ASSERT(platform_use_identity_mmu_mappings());
44
45 return virt_addr;
46}
47
48__WEAK addr_t platform_get_phys_to_virt_mapping(addr_t phys_addr)
49{
50 ASSERT(platform_use_identity_mmu_mappings());
51
52 return phys_addr;
53}
54
Travis Geiselbrecht1d0df692008-09-01 02:26:09 -070055__WEAK void platform_early_init(void)
56{
57}
58
59__WEAK void platform_init(void)
60{
61}
62
Chandan Uddaraju24120502009-12-12 19:17:04 -080063__WEAK void display_init(void)
64{
65}
Shashank Mittal23b8f422010-04-16 19:27:21 -070066
Shashank Mittalc648e712010-10-06 18:37:42 -070067__WEAK void display_shutdown(void)
68{
69}
70
Chandan Uddaraju14e57eb2010-06-28 12:11:06 -070071__WEAK void platform_config_interleaved_mode_gpios(void)
72{
73}
Shashank Mittaled177732011-05-06 19:12:59 -070074
75__WEAK void uart_clock_init(void)
76{
77}
78
Amol Jadi4421e652011-06-16 15:00:48 -070079__WEAK void platform_uninit(void)
80{
81}
Shashank Mittalcd98d472011-08-02 14:29:24 -070082
83__WEAK int image_verify(unsigned char * image_ptr,
84 unsigned char * signature_ptr,
85 unsigned int image_size,
86 unsigned hash_type)
87{
88 return 0;
89}
Deepa Dinamani5e5c21a2012-02-16 18:59:57 -080090
91__WEAK ce_clock_init(void)
92{
93}
Amol Jadi02ca2ee2013-03-15 16:06:34 -070094
95__WEAK void bs_set_timestamp(enum bs_entry bs_id)
96{
97}