Skip to content
Snippets Groups Projects
Commit 56cd2472 authored by Macpaul Lin's avatar Macpaul Lin Committed by Wolfgang Denk
Browse files

ftsmc020: un-nest the register structure in header


Un-nestted the register structure in ftsmc020.h

Signed-off-by: default avatarMacpaul Lin <macpaul@andestech.com>
parent f194f6ba
No related branches found
No related tags found
No related merge requests found
...@@ -25,11 +25,13 @@ ...@@ -25,11 +25,13 @@
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
struct ftsmc020_bank {
unsigned int cr;
unsigned int tpr;
};
struct ftsmc020 { struct ftsmc020 {
struct { struct ftsmc020_bank bank[4]; /* 0x00 - 0x1c */
unsigned int cr; /* 0x00, 0x08, 0x10, 0x18 */
unsigned int tpr; /* 0x04, 0x0c, 0x14, 0x1c */
} bank[4];
unsigned int pad[8]; /* 0x20 - 0x3c */ unsigned int pad[8]; /* 0x20 - 0x3c */
unsigned int ssr; /* 0x40 */ unsigned int ssr; /* 0x40 */
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment