]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - common/exports.c
gpio: remove gpiolib.c and define remaining functions as static inline in asm/gpio.h
[karo-tx-uboot.git] / common / exports.c
1 #include <common.h>
2 #include <exports.h>
3 #include <spi.h>
4 #include <i2c.h>
5
6 DECLARE_GLOBAL_DATA_PTR;
7
8 __attribute__((unused)) static void dummy(void)
9 {
10 }
11
12 unsigned long get_version(void)
13 {
14         return XF_VERSION;
15 }
16
17 #define EXPORT_FUNC(f, a, x, ...)  gd->jt->x = f;
18
19 void jumptable_init(void)
20 {
21         gd->jt = malloc(sizeof(struct jt_funcs));
22 #include <_exports.h>
23 }