| Deepa Dinamani | 645e9b1 | 2012-12-21 14:23:40 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. | 
|  | 2 | * | 
|  | 3 | * Redistribution and use in source and binary forms, with or without | 
|  | 4 | * modification, are permitted provided that the following conditions are | 
|  | 5 | * met: | 
|  | 6 | *     * Redistributions of source code must retain the above copyright | 
|  | 7 | *       notice, this list of conditions and the following disclaimer. | 
|  | 8 | *     * Redistributions in binary form must reproduce the above | 
|  | 9 | *       copyright notice, this list of conditions and the following | 
|  | 10 | *       disclaimer in the documentation and/or other materials provided | 
|  | 11 | *       with the distribution. | 
|  | 12 | *     * Neither the name of The Linux Foundation nor the names of its | 
|  | 13 | *       contributors may be used to endorse or promote products derived | 
|  | 14 | *       from this software without specific prior written permission. | 
|  | 15 | * | 
|  | 16 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | 
|  | 17 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 
|  | 18 | * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | 
|  | 19 | * NON-INFRINGEMENT ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR | 
|  | 20 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | 
|  | 21 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | 
|  | 22 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; | 
|  | 23 | * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | 
|  | 24 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | 
|  | 25 | * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | 
|  | 26 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 
|  | 27 | */ | 
|  | 28 |  | 
|  | 29 | #include <debug.h> | 
|  | 30 | #include <reg.h> | 
|  | 31 | #include <platform/iomap.h> | 
| Deepa Dinamani | eb18237 | 2013-02-04 15:53:58 -0800 | [diff] [blame^] | 32 | #include <platform/clock.h> | 
| Deepa Dinamani | 645e9b1 | 2012-12-21 14:23:40 -0800 | [diff] [blame] | 33 | #include <qgic.h> | 
|  | 34 | #include <qtimer.h> | 
|  | 35 |  | 
|  | 36 | void platform_early_init(void) | 
|  | 37 | { | 
| Deepa Dinamani | eb18237 | 2013-02-04 15:53:58 -0800 | [diff] [blame^] | 38 | platform_clock_init(); | 
| Deepa Dinamani | 645e9b1 | 2012-12-21 14:23:40 -0800 | [diff] [blame] | 39 | qgic_init(); | 
|  | 40 | qtimer_init(); | 
|  | 41 | } | 
|  | 42 |  | 
|  | 43 | void platform_init(void) | 
|  | 44 | { | 
|  | 45 | dprintf(INFO, "platform_init()\n"); | 
|  | 46 | } | 
|  | 47 |  | 
|  | 48 | void platform_uninit(void) | 
|  | 49 | { | 
|  | 50 | qtimer_uninit(); | 
|  | 51 | } |