blob: 83615df9bc7c0b358cd1e7bdb2efa34ed0e654c7 [file] [log] [blame]
Andrew Scull2d527c22018-11-27 14:21:08 +00001/*
2 * Copyright 2018 Google LLC
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * https://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include "hf/addr.h"
18
19paddr_t plat_get_fdt_addr(void)
20{
21 /* FDT is loaded at a known address. */
22 return pa_init(0x82000000);
23}
24
25void plat_get_initrd_range(paddr_t *begin, paddr_t *end)
26{
27 /* initrd is loaded at a known address but...
28 * TODO: the size is hardcoded */
29 *begin = pa_init(0x84000000);
30 *end = pa_add(*begin, 0x12EF200);
31}