summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMacpaul Lin <macpaul@andestech.com>2011-05-01 22:17:30 +0000
committerWolfgang Denk <wd@denx.de>2011-05-12 23:43:33 +0200
commit56cd247232b455d80eb1b9a7009e8c043682b379 (patch)
treea639d4a08d80329db1c2028dd26a752a7c699c00
parentf194f6ba5bebb13d2f3f90513d224b95c86ddc5f (diff)
downloadu-boot-imx-56cd247232b455d80eb1b9a7009e8c043682b379.zip
u-boot-imx-56cd247232b455d80eb1b9a7009e8c043682b379.tar.gz
u-boot-imx-56cd247232b455d80eb1b9a7009e8c043682b379.tar.bz2
ftsmc020: un-nest the register structure in header
Un-nestted the register structure in ftsmc020.h Signed-off-by: Macpaul Lin <macpaul@andestech.com>
-rw-r--r--include/faraday/ftsmc020.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/faraday/ftsmc020.h b/include/faraday/ftsmc020.h
index 95d9500..4e1d449 100644
--- a/include/faraday/ftsmc020.h
+++ b/include/faraday/ftsmc020.h
@@ -25,13 +25,15 @@
#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);