summaryrefslogtreecommitdiff
path: root/board/ads5121/ads5121.c
diff options
context:
space:
mode:
authorJohn Rigby <jrigby@freescale.com>2008-07-11 14:44:09 -0600
committerJohn Rigby <jrigby@freescale.com>2008-07-12 13:33:59 -0600
commitb60b8573875e650e4c69be667bfc88d3ed474a7c (patch)
treef71108c301eb2a252b64dacf193ea7ad962ed01f /board/ads5121/ads5121.c
parentbde63587622c4b830a27d1ddf7265843de9e994f (diff)
downloadu-boot-imx-b60b8573875e650e4c69be667bfc88d3ed474a7c.zip
u-boot-imx-b60b8573875e650e4c69be667bfc88d3ed474a7c.tar.gz
u-boot-imx-b60b8573875e650e4c69be667bfc88d3ed474a7c.tar.bz2
ADS5121 cleanup compile warnings
board/ads5121/iopin.c Replace bit fields in struct iopin_t with a single field and intialize it via plain old macros. This fixes the type pun warnings and makes the code more readable. board/ads5121/ads5121.c Add include iopin.h to ads5121.c for the iopin_initialize prototype. Add an extern void ads5121_diu_init(void) Signed-off-by: John Rigby <jrigby@freescale.com>
Diffstat (limited to 'board/ads5121/ads5121.c')
-rw-r--r--board/ads5121/ads5121.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/ads5121/ads5121.c b/board/ads5121/ads5121.c
index d5cee64..2332912 100644
--- a/board/ads5121/ads5121.c
+++ b/board/ads5121/ads5121.c
@@ -23,6 +23,7 @@
#include <common.h>
#include <mpc512x.h>
+#include "iopin.h"
#include <asm/bitops.h>
#include <command.h>
#include <fdt_support.h>
@@ -49,6 +50,8 @@
#define CSAW_START(start) ((start) & 0xFFFF0000)
#define CSAW_STOP(start, size) (((start) + (size) - 1) >> 16)
+extern void ads5121_diu_init(void);
+
long int fixed_sdram(void);
int board_early_init_f (void)