Tom Rini | abb9a04 | 2024-05-18 20:20:43 -0600 | [diff] [blame^] | 1 | #include <common.h> |
Simon Glass | ed38aef | 2020-05-10 11:40:03 -0600 | [diff] [blame] | 2 | #include <command.h> |
wdenk | 874ac26 | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 3 | #include <exports.h> |
Simon Glass | 2bd6471 | 2020-02-03 07:35:59 -0700 | [diff] [blame] | 4 | #include <malloc.h> |
Simon Glass | 0bc1724 | 2011-12-06 19:31:32 +0000 | [diff] [blame] | 5 | #include <spi.h> |
Martin Dorwig | cb2c286 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 6 | #include <i2c.h> |
Simon Glass | 3ba929a | 2020-10-30 21:38:53 -0600 | [diff] [blame] | 7 | #include <asm/global_data.h> |
wdenk | 874ac26 | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 8 | |
Wolfgang Denk | 6405a15 | 2006-03-31 18:32:53 +0200 | [diff] [blame] | 9 | DECLARE_GLOBAL_DATA_PTR; |
10 | |||||
Wolfgang Denk | b569361 | 2010-06-20 23:33:02 +0200 | [diff] [blame] | 11 | __attribute__((unused)) static void dummy(void) |
wdenk | 874ac26 | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 12 | { |
13 | } | ||||
14 | |||||
15 | unsigned long get_version(void) | ||||
16 | { | ||||
17 | return XF_VERSION; | ||||
18 | } | ||||
19 | |||||
Martin Dorwig | cb2c286 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 20 | #define EXPORT_FUNC(f, a, x, ...) gd->jt->x = f; |
Mike Frysinger | 9a14a5a | 2009-11-04 16:34:42 -0500 | [diff] [blame] | 21 | |
Prabhakar Kushwaha | 7b3a6bc | 2015-06-28 11:03:59 +0530 | [diff] [blame] | 22 | #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 Panait | 036f0f1 | 2020-11-28 10:43:15 +0200 | [diff] [blame] | 29 | int jumptable_init(void) |
Mike Frysinger | 9a14a5a | 2009-11-04 16:34:42 -0500 | [diff] [blame] | 30 | { |
Martin Dorwig | cb2c286 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 31 | gd->jt = malloc(sizeof(struct jt_funcs)); |
Mike Frysinger | 9a14a5a | 2009-11-04 16:34:42 -0500 | [diff] [blame] | 32 | #include <_exports.h> |
Ovidiu Panait | 036f0f1 | 2020-11-28 10:43:15 +0200 | [diff] [blame] | 33 | |
34 | return 0; | ||||
wdenk | 874ac26 | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 35 | } |