]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ftsmc020: un-nest the register structure in header
authorMacpaul Lin <macpaul@andestech.com>
Sun, 1 May 2011 22:17:30 +0000 (22:17 +0000)
committerWolfgang Denk <wd@denx.de>
Thu, 12 May 2011 21:43:33 +0000 (23:43 +0200)
Un-nestted the register structure in ftsmc020.h

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
include/faraday/ftsmc020.h

index 95d95003395b6e2ad2ad838e702c5c95d4008f2b..4e1d4493eb03d0753c3aff4c64bdedbe1162326d 100644 (file)
 
 #ifndef __ASSEMBLY__
 
+struct ftsmc020_bank {
+       unsigned int    cr;
+       unsigned int    tpr;
+};
+
 struct ftsmc020 {
-       struct {
-               unsigned int    cr;     /* 0x00, 0x08, 0x10, 0x18 */
-               unsigned int    tpr;    /* 0x04, 0x0c, 0x14, 0x1c */
-       } bank[4];
-       unsigned int    pad[8]; /* 0x20 - 0x3c */
-       unsigned int    ssr;    /* 0x40 */
+       struct ftsmc020_bank bank[4];   /* 0x00 - 0x1c */
+       unsigned int    pad[8];         /* 0x20 - 0x3c */
+       unsigned int    ssr;            /* 0x40 */
 };
 
 void ftsmc020_init(void);