Lines Matching full:hdr

64 	struct nand_page_0_boot_header *hdr =  in vybridimage_verify_header()  local
68 if (hdr->fcb[1] != 0x46434220) in vybridimage_verify_header()
70 if (hdr->fcb[2] != 1) in vybridimage_verify_header()
72 if (hdr->fcb[7] != 64) in vybridimage_verify_header()
74 if (hdr->fcb[14] != 6) in vybridimage_verify_header()
76 if (hdr->fcb[30] != 0x0001ff00) in vybridimage_verify_header()
78 if (hdr->fcb[43] != 1) in vybridimage_verify_header()
80 if (hdr->fcb[54] != 0) in vybridimage_verify_header()
82 if (hdr->fcb[55] != 8) in vybridimage_verify_header()
86 for (idx = 0; idx < sizeof(hdr->fcb_bytes); idx++) { in vybridimage_verify_header()
87 uint8_t sw_ecc = vybridimage_sw_ecc(hdr->fcb_bytes[idx]); in vybridimage_verify_header()
88 if (sw_ecc != hdr->sw_ecc[idx]) in vybridimage_verify_header()
98 struct nand_page_0_boot_header *hdr = in vybridimage_set_header() local
103 memset(&hdr->fcb[0], 0x0, 56*sizeof(uint32_t)); in vybridimage_set_header()
104 memset(&hdr->fcb[56], 0xff, 72*sizeof(uint32_t)); in vybridimage_set_header()
106 memset(&hdr->sw_ecc[0], 0xff, sizeof(hdr->sw_ecc)); in vybridimage_set_header()
107 memset(&hdr->padding[0], 0xff, sizeof(hdr->padding)); in vybridimage_set_header()
109 memset(&hdr->ivt_prefix[0], 0x00, sizeof(hdr->ivt_prefix)); in vybridimage_set_header()
112 hdr->fcb[1] = 0x46434220; /* signature */ in vybridimage_set_header()
113 hdr->fcb[2] = 0x00000001; /* version */ in vybridimage_set_header()
114 hdr->fcb[5] = 2048; /* page size */ in vybridimage_set_header()
115 hdr->fcb[6] = (2048+64); /* page + OOB size */ in vybridimage_set_header()
116 hdr->fcb[7] = 64; /* pages per block */ in vybridimage_set_header()
117 hdr->fcb[14] = 6; /* ECC mode 6 */ in vybridimage_set_header()
118 hdr->fcb[26] = 128; /* fw address (0x40000) in 2K pages */ in vybridimage_set_header()
119 hdr->fcb[27] = 128; /* fw address (0x40000) in 2K pages */ in vybridimage_set_header()
120 hdr->fcb[30] = 0x0001ff00; /* DBBT search area start address */ in vybridimage_set_header()
121 hdr->fcb[33] = 2048; /* BB marker physical offset */ in vybridimage_set_header()
122 hdr->fcb[43] = 1; /* DISBBM */ in vybridimage_set_header()
123 hdr->fcb[54] = 0; /* DISBB_Search */ in vybridimage_set_header()
124 hdr->fcb[55] = 8; /* Bad block search limit */ in vybridimage_set_header()
127 for (idx = 0; idx < sizeof(hdr->fcb_bytes); idx++) in vybridimage_set_header()
128 hdr->sw_ecc[idx] = vybridimage_sw_ecc(hdr->fcb_bytes[idx]); in vybridimage_set_header()
131 static void vybridimage_print_hdr_field(struct nand_page_0_boot_header *hdr, in vybridimage_print_hdr_field() argument
134 printf("header.fcb[%d] = %08x\n", idx, hdr->fcb[idx]); in vybridimage_print_hdr_field()
139 struct nand_page_0_boot_header *hdr = in vybridimage_print_header() local
144 vybridimage_print_hdr_field(hdr, idx); in vybridimage_print_header()