]> git.sur5r.net Git - u-boot/commitdiff
avr32: data_bits should reflect the actual number of data bits
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Sat, 30 Aug 2008 15:28:36 +0000 (17:28 +0200)
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Mon, 1 Sep 2008 11:41:58 +0000 (13:41 +0200)
Make the data_bits enum in struct sdram_config reflect the actual number
of data bits on the bus, i.e. 16 or 32. Having 0 mean 16 bits and 1 mean
32 bits is just too confusing.

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
include/asm-avr32/sdram.h

index 7bdefc1fd247b1e619d6615fb95fed54eea9f18a..762acfa078f78092d0fb2527563348c7d126aef0 100644 (file)
@@ -25,8 +25,8 @@
 struct sdram_config {
        /* Number of data bits. */
        enum {
-               SDRAM_DATA_16BIT,
-               SDRAM_DATA_32BIT,
+               SDRAM_DATA_16BIT = 16,
+               SDRAM_DATA_32BIT = 32,
        } data_bits;
 
        /* Number of address bits */