11
2- /* Common Flash Interface structures
2+ /* Common Flash Interface structures
33 * See http://support.intel.com/design/flash/technote/index.htm
4- * $Id: cfi.h,v 1.55 2005/08/06 04:40:42 nico Exp $
4+ * $Id: cfi.h,v 1.56 2005/11/07 11:14:54 gleixner Exp $
55 */
66
77#ifndef __MTD_CFI_H__
@@ -82,8 +82,8 @@ static inline int cfi_interleave_supported(int i)
8282}
8383
8484
85- /* NB: these values must represents the number of bytes needed to meet the
86- * device type (x8, x16, x32). Eg. a 32 bit device is 4 x 8 bytes.
85+ /* NB: these values must represents the number of bytes needed to meet the
86+ * device type (x8, x16, x32). Eg. a 32 bit device is 4 x 8 bytes.
8787 * These numbers are used in calculations.
8888 */
8989#define CFI_DEVICETYPE_X8 (8 / 8)
@@ -259,7 +259,7 @@ static inline uint32_t cfi_build_cmd_addr(uint32_t cmd_ofs, int interleave, int
259259/*
260260 * Transforms the CFI command for the given geometry (bus width & interleave).
261261 * It looks too long to be inline, but in the common case it should almost all
262- * get optimised away.
262+ * get optimised away.
263263 */
264264static inline map_word cfi_build_cmd (u_long cmd , struct map_info * map , struct cfi_private * cfi )
265265{
@@ -268,7 +268,7 @@ static inline map_word cfi_build_cmd(u_long cmd, struct map_info *map, struct cf
268268 unsigned long onecmd ;
269269 int i ;
270270
271- /* We do it this way to give the compiler a fighting chance
271+ /* We do it this way to give the compiler a fighting chance
272272 of optimising away all the crap for 'bankwidth' larger than
273273 an unsigned long, in the common case where that support is
274274 disabled */
@@ -279,7 +279,7 @@ static inline map_word cfi_build_cmd(u_long cmd, struct map_info *map, struct cf
279279 wordwidth = map_bankwidth (map );
280280 words_per_bus = 1 ;
281281 }
282-
282+
283283 chip_mode = map_bankwidth (map ) / cfi_interleave (cfi );
284284 chips_per_word = wordwidth * cfi_interleave (cfi ) / map_bankwidth (map );
285285
@@ -298,7 +298,7 @@ static inline map_word cfi_build_cmd(u_long cmd, struct map_info *map, struct cf
298298 break ;
299299 }
300300
301- /* Now replicate it across the size of an unsigned long, or
301+ /* Now replicate it across the size of an unsigned long, or
302302 just to the bus width as appropriate */
303303 switch (chips_per_word ) {
304304 default : BUG ();
@@ -314,7 +314,7 @@ static inline map_word cfi_build_cmd(u_long cmd, struct map_info *map, struct cf
314314 ;
315315 }
316316
317- /* And finally, for the multi-word case, replicate it
317+ /* And finally, for the multi-word case, replicate it
318318 in all words in the structure */
319319 for (i = 0 ; i < words_per_bus ; i ++ ) {
320320 val .x [i ] = onecmd ;
@@ -325,14 +325,14 @@ static inline map_word cfi_build_cmd(u_long cmd, struct map_info *map, struct cf
325325#define CMD (x ) cfi_build_cmd((x), map, cfi)
326326
327327
328- static inline unsigned long cfi_merge_status (map_word val , struct map_info * map ,
328+ static inline unsigned long cfi_merge_status (map_word val , struct map_info * map ,
329329 struct cfi_private * cfi )
330330{
331331 int wordwidth , words_per_bus , chip_mode , chips_per_word ;
332332 unsigned long onestat , res = 0 ;
333333 int i ;
334334
335- /* We do it this way to give the compiler a fighting chance
335+ /* We do it this way to give the compiler a fighting chance
336336 of optimising away all the crap for 'bankwidth' larger than
337337 an unsigned long, in the common case where that support is
338338 disabled */
@@ -343,7 +343,7 @@ static inline unsigned long cfi_merge_status(map_word val, struct map_info *map,
343343 wordwidth = map_bankwidth (map );
344344 words_per_bus = 1 ;
345345 }
346-
346+
347347 chip_mode = map_bankwidth (map ) / cfi_interleave (cfi );
348348 chips_per_word = wordwidth * cfi_interleave (cfi ) / map_bankwidth (map );
349349
0 commit comments