2003-07-25 07:38:38 +08:00
|
|
|
#include <common.h>
|
2020-05-11 01:40:03 +08:00
|
|
|
#include <command.h>
|
2003-07-25 07:38:38 +08:00
|
|
|
#include <exports.h>
|
2020-02-03 22:35:59 +08:00
|
|
|
#include <malloc.h>
|
2011-12-07 03:31:32 +08:00
|
|
|
#include <spi.h>
|
2015-01-27 06:22:54 +08:00
|
|
|
#include <i2c.h>
|
2020-10-31 11:38:53 +08:00
|
|
|
#include <asm/global_data.h>
|
2003-07-25 07:38:38 +08:00
|
|
|
|
2006-04-01 00:32:53 +08:00
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
|
|
|
2010-06-21 05:33:02 +08:00
|
|
|
__attribute__((unused)) static void dummy(void)
|
2003-07-25 07:38:38 +08:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned long get_version(void)
|
|
|
|
{
|
|
|
|
return XF_VERSION;
|
|
|
|
}
|
|
|
|
|
2015-01-27 06:22:54 +08:00
|
|
|
#define EXPORT_FUNC(f, a, x, ...) gd->jt->x = f;
|
2009-11-05 05:34:42 +08:00
|
|
|
|
2015-06-28 13:33:59 +08:00
|
|
|
#ifndef CONFIG_PHY_AQUANTIA
|
|
|
|
# define mdio_get_current_dev dummy
|
|
|
|
# define phy_find_by_mask dummy
|
|
|
|
# define mdio_phydev_for_ethname dummy
|
|
|
|
# define miiphy_set_current_dev dummy
|
|
|
|
#endif
|
|
|
|
|
2020-11-28 16:43:15 +08:00
|
|
|
int jumptable_init(void)
|
2009-11-05 05:34:42 +08:00
|
|
|
{
|
2015-01-27 06:22:54 +08:00
|
|
|
gd->jt = malloc(sizeof(struct jt_funcs));
|
2009-11-05 05:34:42 +08:00
|
|
|
#include <_exports.h>
|
2020-11-28 16:43:15 +08:00
|
|
|
|
|
|
|
return 0;
|
2003-07-25 07:38:38 +08:00
|
|
|
}
|