blob: 20d8b759bc25da2c583f360ce1fa8af973bda3c6 [file] [log] [blame]
wdenk27b207f2003-07-24 23:38:38 +00001#include <common.h>
Simon Glass09140112020-05-10 11:40:03 -06002#include <command.h>
wdenk27b207f2003-07-24 23:38:38 +00003#include <exports.h>
Simon Glass1f6510c2020-02-03 07:35:59 -07004#include <malloc.h>
Simon Glass80729a52011-12-06 19:31:32 +00005#include <spi.h>
Martin Dorwig49cad542015-01-26 15:22:54 -07006#include <i2c.h>
Simon Glass401d1c42020-10-30 21:38:53 -06007#include <asm/global_data.h>
wdenk27b207f2003-07-24 23:38:38 +00008
Wolfgang Denkd87080b2006-03-31 18:32:53 +02009DECLARE_GLOBAL_DATA_PTR;
10
Wolfgang Denkc0c15372010-06-20 23:33:02 +020011__attribute__((unused)) static void dummy(void)
wdenk27b207f2003-07-24 23:38:38 +000012{
13}
14
15unsigned long get_version(void)
16{
17 return XF_VERSION;
18}
19
Martin Dorwig49cad542015-01-26 15:22:54 -070020#define EXPORT_FUNC(f, a, x, ...) gd->jt->x = f;
Mike Frysingerbf44f3f2009-11-04 16:34:42 -050021
Prabhakar Kushwaha95279312015-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 Panait01548582020-11-28 10:43:15 +020029int jumptable_init(void)
wdenk27b207f2003-07-24 23:38:38 +000030{
Martin Dorwig49cad542015-01-26 15:22:54 -070031 gd->jt = malloc(sizeof(struct jt_funcs));
Mike Frysingerbf44f3f2009-11-04 16:34:42 -050032#include <_exports.h>
Ovidiu Panait01548582020-11-28 10:43:15 +020033
34 return 0;
wdenk27b207f2003-07-24 23:38:38 +000035}