2 #include <asm/arch/common.h>
6 #define panic(x...) do{}while(0)
7 #define printf(x...) do{}while(0)
11 //#ifdef CONFIG_NAND_SPL
12 #define dump_all_buffer(x...) do{}while(0)
14 void dump_all_buffer(unsigned char *buf, unsigned long len)
16 unsigned long row, col;
18 unsigned long total_row, remain_col;
19 unsigned long flag = 1;
22 remain_col = len - total_row * 16;
24 for (row = 0; row < total_row; row ++) {
26 printf("%08xh: ", offset);
27 for (col = 0; col < 16; col ++)
28 printf("%02x ", buf[offset + col]);
36 printf("%08xh: ", offset);
37 for (col = 0; col < remain_col; col ++)
38 printf("%02x ", buf[offset + col]);
48 int secureboot_enabled(void)
52 int harshVerify(uint8_t *data, uint32_t data_len, uint8_t *data_hash, uint8_t *data_key)
57 void secure_check(uint8_t *data, uint32_t data_len, uint8_t *data_hash, uint8_t *data_key)
62 #ifndef CONFIG_NAND_SPL
63 int cal_md5(void *data, uint32_t orig_len, void *harsh_data)