1 /* all about esmt factory */
2
3 #include <string.h>
4 #include <stdlib.h>
5 #include <time.h>
6 #include <pthread.h>
7 #include <errno.h>
8 #include <unistd.h>
9 #include <hal_timer.h>
10
11 #include "inter.h"
12
13 static struct nor_info idt_esmt[] =
14 {
15 {
16 .model = "en25qh128",
17 .id = {0x1c, 0x70, 0x18},
18 .total_size = SZ_16M,
19 .flag = SUPPORT_GENERAL,
20 },
21 };
22
23 static struct nor_factory nor_esmt = {
24 .factory = FACTORY_ESMT,
25 .idt = idt_esmt,
26 .idt_cnt = sizeof(idt_esmt),
27
28 .init = NULL,
29 .deinit = NULL,
30 .init_lock = NULL,
31 .deinit_lock = NULL,
32 .lock = NULL,
33 .unlock = NULL,
34 .islock = NULL,
35 .set_quad_mode = NULL,
36 .set_4bytes_addr = NULL,
37 };
38
nor_register_factory_esmt(void)39 int nor_register_factory_esmt(void)
40 {
41 return nor_register_factory(&nor_esmt);
42 }
43