diff mbox

[U-Boot,v3,3/3] ftsmc020: add missing definitions

Message ID 1304324251-15293-3-git-send-email-macpaul@andestech.com
State Accepted
Commit 10ba1d3cff7d32e4c2ef4301baf5e2e44530176a
Headers show

Commit Message

Macpaul Lin May 2, 2011, 8:17 a.m. UTC
Add missing definitions in header file according to datasheet.

Signed-off-by: Macpaul Lin <macpaul@andestech.com>
---
Changes for v2:
  - Remove assembly register offsets for support lowlevel_init.S.
  - The nested structure of register offsets has been rewrote.
  - Fix relocation related declaration.
Changes for v3:
  - Split this patch into 3 different patches according to Wolfgang's suggestion
   - Fix gloable declarations to avoid problem in relocation.
   - Un-nested the register structure.
   - Add missing definitions in header according to datasheet.

 include/faraday/ftsmc020.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Comments

Wolfgang Denk May 12, 2011, 9:44 p.m. UTC | #1
Dear Macpaul Lin,

In message <1304324251-15293-3-git-send-email-macpaul@andestech.com> you wrote:
> Add missing definitions in header file according to datasheet.
> 
> Signed-off-by: Macpaul Lin <macpaul@andestech.com>
> ---
> Changes for v2:
>   - Remove assembly register offsets for support lowlevel_init.S.
>   - The nested structure of register offsets has been rewrote.
>   - Fix relocation related declaration.
> Changes for v3:
>   - Split this patch into 3 different patches according to Wolfgang's suggestion
>    - Fix gloable declarations to avoid problem in relocation.
>    - Un-nested the register structure.
>    - Add missing definitions in header according to datasheet.
> 
>  include/faraday/ftsmc020.h |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk
diff mbox

Patch

diff --git a/include/faraday/ftsmc020.h b/include/faraday/ftsmc020.h
index 0a3d5a2..d381938 100644
--- a/include/faraday/ftsmc020.h
+++ b/include/faraday/ftsmc020.h
@@ -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)
@@ -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)