blob: 48b084c3861377b5cdd9ed5232863e45f078f6eb [file] [log] [blame]
Simon Glassed38aef2020-05-10 11:40:03 -06001#include <command.h>
wdenk874ac262003-07-24 23:38:38 +00002#include <exports.h>
Simon Glass2bd64712020-02-03 07:35:59 -07003#include <malloc.h>
Simon Glass0bc17242011-12-06 19:31:32 +00004#include <spi.h>
Martin Dorwigcb2c2862015-01-26 15:22:54 -07005#include <i2c.h>
Simon Glass3ba929a2020-10-30 21:38:53 -06006#include <asm/global_data.h>
wdenk874ac262003-07-24 23:38:38 +00007
Wolfgang Denk6405a152006-03-31 18:32:53 +02008DECLARE_GLOBAL_DATA_PTR;
9
Wolfgang Denkb5693612010-06-20 23:33:02 +020010__attribute__((unused)) static void dummy(void)
wdenk874ac262003-07-24 23:38:38 +000011{
12}
13
14unsigned long get_version(void)
15{
16 return XF_VERSION;
17}
18
Martin Dorwigcb2c2862015-01-26 15:22:54 -070019#define EXPORT_FUNC(f, a, x, ...) gd->jt->x = f;
Mike Frysinger9a14a5a2009-11-04 16:34:42 -050020
Prabhakar Kushwaha7b3a6bc2015-06-28 11:03:59 +053021#ifndef CONFIG_PHY_AQUANTIA
22# define mdio_get_current_dev dummy
23# define phy_find_by_mask dummy
24# define mdio_phydev_for_ethname dummy
25# define miiphy_set_current_dev dummy
26#endif
27
Ovidiu Panait036f0f12020-11-28 10:43:15 +020028int jumptable_init(void)
Mike Frysinger9a14a5a2009-11-04 16:34:42 -050029{
Martin Dorwigcb2c2862015-01-26 15:22:54 -070030 gd->jt = malloc(sizeof(struct jt_funcs));
Mike Frysinger9a14a5a2009-11-04 16:34:42 -050031#include <_exports.h>
Ovidiu Panait036f0f12020-11-28 10:43:15 +020032
33 return 0;
wdenk874ac262003-07-24 23:38:38 +000034}