1
2
3
4
5
6
7
8
9
10
11
12
13#include <common.h>
14#include <linux/types.h>
15#include <api_public.h>
16
17#include "glue.h"
18
19void putc(const char c)
20{
21 ub_putc(c);
22}
23
24void puts(const char *s)
25{
26 ub_puts(s);
27}
28
29void __udelay(unsigned long usec)
30{
31 ub_udelay(usec);
32}
33
34int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
35{
36 ub_reset();
37 return 0;
38}
39
40void *malloc (size_t len)
41{
42 return NULL;
43}
44
45void hang (void)
46{
47 while (1) ;
48}
49