]> git.ipfire.org Git - thirdparty/u-boot.git/blame - include/phys2bus.h
colibri_vf: set fdtfile for distroboot
[thirdparty/u-boot.git] / include / phys2bus.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
927c1fa2
SW
2/*
3 * Copyright 2015 Stephen Warren
927c1fa2
SW
4 */
5
6#ifndef _BUS_ADDR_H
7#define _BUS_ADDR_H
8
9#ifdef CONFIG_PHYS_TO_BUS
10unsigned long phys_to_bus(unsigned long phys);
11unsigned long bus_to_phys(unsigned long bus);
12#else
13static inline unsigned long phys_to_bus(unsigned long phys)
14{
15 return phys;
16}
17
18static inline unsigned long bus_to_phys(unsigned long bus)
19{
20 return bus;
21}
22#endif
23
24#endif