blob: 18af38a5f6e91d60f65cfe4bfe6b81c41765a750 [file] [log] [blame]
wdenk874ac262003-07-24 23:38:38 +00001#include <common.h>
2#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>
wdenk874ac262003-07-24 23:38:38 +00006
Wolfgang Denk6405a152006-03-31 18:32:53 +02007DECLARE_GLOBAL_DATA_PTR;
8
Wolfgang Denkb5693612010-06-20 23:33:02 +02009__attribute__((unused)) static void dummy(void)
wdenk874ac262003-07-24 23:38:38 +000010{
11}
12
13unsigned long get_version(void)
14{
15 return XF_VERSION;
16}
17
Martin Dorwigcb2c2862015-01-26 15:22:54 -070018#define EXPORT_FUNC(f, a, x, ...) gd->jt->x = f;
Mike Frysinger9a14a5a2009-11-04 16:34:42 -050019
Prabhakar Kushwaha7b3a6bc2015-06-28 11:03:59 +053020#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
Mike Frysinger9a14a5a2009-11-04 16:34:42 -050027void jumptable_init(void)
28{
Martin Dorwigcb2c2862015-01-26 15:22:54 -070029 gd->jt = malloc(sizeof(struct jt_funcs));
Mike Frysinger9a14a5a2009-11-04 16:34:42 -050030#include <_exports.h>
wdenk874ac262003-07-24 23:38:38 +000031}