Skip to content

Commit

Permalink
ftsmc020: add missing definitions
Browse files Browse the repository at this point in the history
Add missing definitions in header file according to datasheet.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
  • Loading branch information
Macpaul Lin authored and wdenx committed May 12, 2011
1 parent 56cd247 commit 10ba1d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/faraday/ftsmc020.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ void ftsmc020_init(void);

#define FTSMC020_BANK_WPROT (1 << 11)

#define FTSMC020_BANK_TYPE1 (1 << 10)
#define FTSMC020_BANK_TYPE2 (1 << 9)
#define FTSMC020_BANK_TYPE3 (1 << 8)

#define FTSMC020_BANK_SIZE_32K (0xb << 4)
#define FTSMC020_BANK_SIZE_64K (0xc << 4)
#define FTSMC020_BANK_SIZE_128K (0xd << 4)
Expand All @@ -59,6 +63,7 @@ void ftsmc020_init(void);
#define FTSMC020_BANK_SIZE_8M (0x3 << 4)
#define FTSMC020_BANK_SIZE_16M (0x4 << 4)
#define FTSMC020_BANK_SIZE_32M (0x5 << 4)
#define FTSMC020_BANK_SIZE_64M (0x6 << 4)

#define FTSMC020_BANK_MBW_8 (0x0 << 0)
#define FTSMC020_BANK_MBW_16 (0x1 << 0)
Expand Down

0 comments on commit 10ba1d3

Please sign in to comment.