]> rtime.felk.cvut.cz Git - lincan.git/blob - embedded/arch/arm/generic/defines/bbconf_info.h
Update of system-less architecture and board support code to actual uLAN.sf.net version.
[lincan.git] / embedded / arch / arm / generic / defines / bbconf_info.h
1 #ifndef _BBCONF_INFO_H_
2 #define _BBCONF_INFO_H_
3
4 #if 1 /* Provide FLASH start directly */
5
6 /*FIXME: should not be provided directly*/
7 #ifndef BBCONF_FLASH_START
8 #define BBCONF_FLASH_START 0x00000000
9 #endif
10
11 #else /* FLASH start taken from ldscript */
12
13 #ifndef __ASSEMBLY__
14 extern char __flash_base;
15 #define BBCONF_FLASH_START ((unsigned long)(&__flash_base))
16 #else /*__ASSEMBLY__*/
17 .global __flash_base
18 #define BBCONF_FLASH_START __flash_base
19 #endif /*__ASSEMBLY__*/
20
21 #endif /* decission about flash start */
22
23 #define BBCONF_MAGIC_VAL  0xd1ab46d6
24
25 #define BBCONF_MAGIC_ADDR (BBCONF_FLASH_START+0x40)
26 #define BBCONF_PTPTR_ADDR (BBCONF_FLASH_START+0x44)
27
28 #define BBCONF_PTTAG_END          0x00
29 #define BBCONF_PTTAG_BBVER        0x01
30 #define BBCONF_PTTAG_KVPB_START   0x12
31 #define BBCONF_PTTAG_KVPB_BYCFI   0x13
32 #define BBCONF_PTTAG_KVPB_SIZE    0x14
33 #define BBCONF_PTTAG_WITH_BATPACK 0x15
34
35 #define BBCONF_PT_MAX_CNT         0x80
36
37
38 #ifndef __ASSEMBLY__
39
40 int bbconf_get_param(unsigned long tag, unsigned long *pval);
41
42 #endif /*__ASSEMBLY__*/
43
44 #endif /*_BBCONF_INFO_H_*/