1 #ifndef _BBCONF_INFO_H_
2 #define _BBCONF_INFO_H_
4 #if 1 /* Provide FLASH start directly */
6 /*FIXME: should not be provided directly*/
7 #ifndef BBCONF_FLASH_START
8 #define BBCONF_FLASH_START 0x00000000
11 #else /* FLASH start taken from ldscript */
14 extern char __flash_base;
15 #define BBCONF_FLASH_START ((unsigned long)(&__flash_base))
16 #else /*__ASSEMBLY__*/
18 #define BBCONF_FLASH_START __flash_base
19 #endif /*__ASSEMBLY__*/
21 #endif /* decission about flash start */
23 #define BBCONF_MAGIC_VAL 0xd1ab46d6
25 #define BBCONF_MAGIC_ADDR (BBCONF_FLASH_START+0x40)
26 #define BBCONF_PTPTR_ADDR (BBCONF_FLASH_START+0x44)
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
35 #define BBCONF_PT_MAX_CNT 0x80
40 int bbconf_get_param(unsigned long tag, unsigned long *pval);
42 #endif /*__ASSEMBLY__*/
44 #endif /*_BBCONF_INFO_H_*/