]>
Commit | Line | Data |
---|---|---|
1 | #include <common.h> | |
2 | #include <command.h> | |
3 | #include <exports.h> | |
4 | #include <malloc.h> | |
5 | #include <spi.h> | |
6 | #include <i2c.h> | |
7 | #include <asm/global_data.h> | |
8 | ||
9 | DECLARE_GLOBAL_DATA_PTR; | |
10 | ||
11 | __attribute__((unused)) static void dummy(void) | |
12 | { | |
13 | } | |
14 | ||
15 | unsigned long get_version(void) | |
16 | { | |
17 | return XF_VERSION; | |
18 | } | |
19 | ||
20 | #define EXPORT_FUNC(f, a, x, ...) gd->jt->x = f; | |
21 | ||
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 | ||
29 | int jumptable_init(void) | |
30 | { | |
31 | gd->jt = malloc(sizeof(struct jt_funcs)); | |
32 | #include <_exports.h> | |
33 | ||
34 | return 0; | |
35 | } |