Merge https://gitlab.denx.de/u-boot/custodians/u-boot-fsl-qoriq
[oweals/u-boot.git] / common / exports.c
1 #include <common.h>
2 #include <exports.h>
3 #include <malloc.h>
4 #include <spi.h>
5 #include <i2c.h>
6
7 DECLARE_GLOBAL_DATA_PTR;
8
9 __attribute__((unused)) static void dummy(void)
10 {
11 }
12
13 unsigned long get_version(void)
14 {
15         return XF_VERSION;
16 }
17
18 #define EXPORT_FUNC(f, a, x, ...)  gd->jt->x = f;
19
20 #ifndef CONFIG_PHY_AQUANTIA
21 # define mdio_get_current_dev           dummy
22 # define phy_find_by_mask               dummy
23 # define mdio_phydev_for_ethname        dummy
24 # define miiphy_set_current_dev         dummy
25 #endif
26
27 void jumptable_init(void)
28 {
29         gd->jt = malloc(sizeof(struct jt_funcs));
30 #include <_exports.h>
31 }