hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/include/linux/mtd/pfow.h
....@@ -19,7 +19,7 @@
1919 /* Identification info for LPDDR chip */
2020 #define PFOW_MANUFACTURER_ID 0x0020
2121 #define PFOW_DEVICE_ID 0x0022
22
-/* Address in PFOW where prog buffer can can be found */
22
+/* Address in PFOW where prog buffer can be found */
2323 #define PFOW_PROGRAM_BUFFER_OFFSET 0x0040
2424 /* Size of program buffer in words */
2525 #define PFOW_PROGRAM_BUFFER_SIZE 0x0042
....@@ -120,38 +120,5 @@
120120 /* Command execution start */
121121 map_write(map, CMD(LPDDR_START_EXECUTION),
122122 map->pfow_base + PFOW_COMMAND_EXECUTE);
123
-}
124
-
125
-static inline void print_drs_error(unsigned dsr)
126
-{
127
- int prog_status = (dsr & DSR_RPS) >> 8;
128
-
129
- if (!(dsr & DSR_AVAILABLE))
130
- printk(KERN_NOTICE"DSR.15: (0) Device not Available\n");
131
- if ((prog_status & 0x03) == 0x03)
132
- printk(KERN_NOTICE"DSR.9,8: (11) Attempt to program invalid "
133
- "half with 41h command\n");
134
- else if (prog_status & 0x02)
135
- printk(KERN_NOTICE"DSR.9,8: (10) Object Mode Program attempt "
136
- "in region with Control Mode data\n");
137
- else if (prog_status & 0x01)
138
- printk(KERN_NOTICE"DSR.9,8: (01) Program attempt in region "
139
- "with Object Mode data\n");
140
- if (!(dsr & DSR_READY_STATUS))
141
- printk(KERN_NOTICE"DSR.7: (0) Device is Busy\n");
142
- if (dsr & DSR_ESS)
143
- printk(KERN_NOTICE"DSR.6: (1) Erase Suspended\n");
144
- if (dsr & DSR_ERASE_STATUS)
145
- printk(KERN_NOTICE"DSR.5: (1) Erase/Blank check error\n");
146
- if (dsr & DSR_PROGRAM_STATUS)
147
- printk(KERN_NOTICE"DSR.4: (1) Program Error\n");
148
- if (dsr & DSR_VPPS)
149
- printk(KERN_NOTICE"DSR.3: (1) Vpp low detect, operation "
150
- "aborted\n");
151
- if (dsr & DSR_PSS)
152
- printk(KERN_NOTICE"DSR.2: (1) Program suspended\n");
153
- if (dsr & DSR_DPS)
154
- printk(KERN_NOTICE"DSR.1: (1) Aborted Erase/Program attempt "
155
- "on locked block\n");
156123 }
157124 #endif /* __LINUX_MTD_PFOW_H */