summaryrefslogtreecommitdiff
path: root/kernel/firmware/dt/device_tree.cpp
blob: 35f27fa3eaeb9e771faa4e3c0029736df32d3773 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// ============================================================================
// firmware/dt/device_tree.cpp - Device Tree management implementation
// ============================================================================

#include <kernel/firmware/dt.h>
#include <boot/boot_info.h>

//TODO: move it to constructor, when i will have heap
void DeviceTree::Init(const PhysAddr& addr) {
    fdt_address = addr;
}

PhysAddr DeviceTree::GetFdtAddress() const {
    return fdt_address;
}