blob: 20d8b759bc25da2c583f360ce1fa8af973bda3c6 [file] [log] [blame]
wdenk874ac262003-07-24 23:38:38 +00001#include <common.h>
Simon Glassed38aef2020-05-10 11:40:03 -06002#include <command.h>
wdenk874ac262003-07-24 23:38:38 +00003#include <exports.h>
Simon Glass2bd64712020-02-03 07:35:59 -07004#include <malloc.h>
Simon Glass0bc17242011-12-06 19:31:32 +00005#include <spi.h>
Martin Dorwigcb2c2862015-01-26 15:22:54 -07006#include <i2c.h>
Simon Glass3ba929a2020-10-30 21:38:53 -06007#include <asm/global_data.h>
wdenk874ac262003-07-24 23:38:38 +00008
Wolfgang Denk6405a152006-03-31 18:32:53 +02009DECLARE_GLOBAL_DATA_PTR;
10
Wolfgang Denkb5693612010-06-20 23:33:02 +020011__attribute__((unused)) static void dummy(void)
wdenk874ac262003-07-24 23:38:38 +000012{
13}
14
15unsigned long get_version(void)
16{
17 return XF_VERSION;
18}
19
Martin Dorwigcb2c2862015-01-26 15:22:54 -070020#define EXPORT_FUNC(f, a, x, ...) gd->jt->x = f;
Mike Frysinger9a14a5a2009-11-04 16:34:42 -050021
Prabhakar Kushwaha7b3a6bc2015-06-28 11:03:59 +053022#ifndef CONFIG_PHY_AQUANTIA
23# define mdio_get_current_dev dummy
24# define phy_find_by_mask dummy
25# define mdio_phydev_for_ethname dummy
26# define miiphy_set_current_dev dummy
27#endif
28
Ovidiu Panait036f0f12020-11-28 10:43:15 +020029int jumptable_init(void)
Mike Frysinger9a14a5a2009-11-04 16:34:42 -050030{
Martin Dorwigcb2c2862015-01-26 15:22:54 -070031 gd->jt = malloc(sizeof(struct jt_funcs));
Mike Frysinger9a14a5a2009-11-04 16:34:42 -050032#include <_exports.h>
Ovidiu Panait036f0f12020-11-28 10:43:15 +020033
34 return 0;
wdenk874ac262003-07-24 23:38:38 +000035}