blob: 333107c74c3c68f9244eea3cdbd44a6f0c1c2802 [file] [log] [blame]
wdenk27b207f2003-07-24 23:38:38 +00001#include <common.h>
2#include <exports.h>
Simon Glass80729a52011-12-06 19:31:32 +00003#include <spi.h>
Martin Dorwig49cad542015-01-26 15:22:54 -07004#include <i2c.h>
wdenk27b207f2003-07-24 23:38:38 +00005
Wolfgang Denkd87080b2006-03-31 18:32:53 +02006DECLARE_GLOBAL_DATA_PTR;
7
Wolfgang Denkc0c15372010-06-20 23:33:02 +02008__attribute__((unused)) static void dummy(void)
wdenk27b207f2003-07-24 23:38:38 +00009{
10}
11
12unsigned long get_version(void)
13{
14 return XF_VERSION;
15}
16
Martin Dorwig49cad542015-01-26 15:22:54 -070017#define EXPORT_FUNC(f, a, x, ...) gd->jt->x = f;
Mike Frysingerbf44f3f2009-11-04 16:34:42 -050018
19void jumptable_init(void)
wdenk27b207f2003-07-24 23:38:38 +000020{
Martin Dorwig49cad542015-01-26 15:22:54 -070021 gd->jt = malloc(sizeof(struct jt_funcs));
Mike Frysingerbf44f3f2009-11-04 16:34:42 -050022#include <_exports.h>
wdenk27b207f2003-07-24 23:38:38 +000023}