This source file includes following definitions.
- lpddr_build_cmd
1
2 #ifndef __LINUX_MTD_QINFO_H
3 #define __LINUX_MTD_QINFO_H
4
5 #include <linux/mtd/map.h>
6 #include <linux/wait.h>
7 #include <linux/spinlock.h>
8 #include <linux/delay.h>
9 #include <linux/mtd/mtd.h>
10 #include <linux/mtd/flashchip.h>
11 #include <linux/mtd/partitions.h>
12
13
14
15
16
17
18
19
20
21 struct lpddr_private {
22 uint16_t ManufactId;
23 uint16_t DevId;
24 struct qinfo_chip *qinfo;
25 int numchips;
26 unsigned long chipshift;
27 struct flchip chips[0];
28 };
29
30
31
32
33
34
35
36
37 struct qinfo_query_info {
38 uint8_t major;
39 uint8_t minor;
40 char *id_str;
41 char *desc;
42 };
43
44
45
46
47
48
49
50
51
52
53
54
55
56 struct qinfo_chip {
57
58 uint16_t DevSizeShift;
59 uint16_t BufSizeShift;
60
61 uint16_t TotalBlocksNum;
62 uint16_t UniformBlockSizeShift;
63
64 uint16_t HWPartsNum;
65
66 uint16_t SuspEraseSupp;
67
68 uint16_t SingleWordProgTime;
69 uint16_t ProgBufferTime;
70 uint16_t BlockEraseTime;
71 };
72
73
74 #define LPDDR_MFR_ANY 0xffff
75 #define LPDDR_ID_ANY 0xffff
76 #define NUMONYX_MFGR_ID 0x0089
77 #define R18_DEVICE_ID_1G 0x893c
78
79 static inline map_word lpddr_build_cmd(u_long cmd, struct map_info *map)
80 {
81 map_word val = { {0} };
82 val.x[0] = cmd;
83 return val;
84 }
85
86 #define CMD(x) lpddr_build_cmd(x, map)
87 #define CMDVAL(cmd) cmd.x[0]
88
89 struct mtd_info *lpddr_cmdset(struct map_info *);
90
91 #endif
92