Simon Glass | 0914011 | 2020-05-10 11:40:03 -0600 | [diff] [blame] | 1 | #include <command.h> |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 2 | #include <exports.h> |
Simon Glass | 1f6510c | 2020-02-03 07:35:59 -0700 | [diff] [blame] | 3 | #include <malloc.h> |
Simon Glass | 80729a5 | 2011-12-06 19:31:32 +0000 | [diff] [blame] | 4 | #include <spi.h> |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 5 | #include <i2c.h> |
Simon Glass | 401d1c4 | 2020-10-30 21:38:53 -0600 | [diff] [blame] | 6 | #include <asm/global_data.h> |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 7 | |
Wolfgang Denk | d87080b | 2006-03-31 18:32:53 +0200 | [diff] [blame] | 8 | DECLARE_GLOBAL_DATA_PTR; |
9 | |||||
Wolfgang Denk | c0c1537 | 2010-06-20 23:33:02 +0200 | [diff] [blame] | 10 | __attribute__((unused)) static void dummy(void) |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 11 | { |
12 | } | ||||
13 | |||||
14 | unsigned long get_version(void) | ||||
15 | { | ||||
16 | return XF_VERSION; | ||||
17 | } | ||||
18 | |||||
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 19 | #define EXPORT_FUNC(f, a, x, ...) gd->jt->x = f; |
Mike Frysinger | bf44f3f | 2009-11-04 16:34:42 -0500 | [diff] [blame] | 20 | |
Prabhakar Kushwaha | 9527931 | 2015-06-28 11:03:59 +0530 | [diff] [blame] | 21 | #ifndef CONFIG_PHY_AQUANTIA |
22 | # define mdio_get_current_dev dummy | ||||
23 | # define phy_find_by_mask dummy | ||||
24 | # define mdio_phydev_for_ethname dummy | ||||
25 | # define miiphy_set_current_dev dummy | ||||
26 | #endif | ||||
27 | |||||
Ovidiu Panait | 0154858 | 2020-11-28 10:43:15 +0200 | [diff] [blame] | 28 | int jumptable_init(void) |
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 29 | { |
Martin Dorwig | 49cad54 | 2015-01-26 15:22:54 -0700 | [diff] [blame] | 30 | gd->jt = malloc(sizeof(struct jt_funcs)); |
Mike Frysinger | bf44f3f | 2009-11-04 16:34:42 -0500 | [diff] [blame] | 31 | #include <_exports.h> |
Ovidiu Panait | 0154858 | 2020-11-28 10:43:15 +0200 | [diff] [blame] | 32 | |
33 | return 0; | ||||
wdenk | 27b207f | 2003-07-24 23:38:38 +0000 | [diff] [blame] | 34 | } |