source: trunk/libs/newlib/src/libgloss/bfin/include/defBF506F.h @ 478

Last change on this file since 478 was 444, checked in by satin@…, 7 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 3.8 KB
Line 
1/*
2 * The authors hereby grant permission to use, copy, modify, distribute,
3 * and license this software and its documentation for any purpose, provided
4 * that existing copyright notices are retained in all copies and that this
5 * notice is included verbatim in any distributions. No written agreement,
6 * license, or royalty fee is required for any of the authorized uses.
7 * Modifications to this software may be copyrighted by their authors
8 * and need not follow the licensing terms described here, provided that
9 * the new terms are clearly indicated on the first page of each file where
10 * they apply.
11 */
12
13/*
14** This include file contains a list of macro "defines" to enable programs
15** to use symbolic names for register-access and bit-manipulation for the
16** ADSP-BF506F processor.
17**
18** Copyright (C) 2009 Analog Devices Inc., All Rights Reserved.
19*/
20
21#ifndef _DEF_BF506F_H
22#define _DEF_BF506F_H
23
24#ifdef _MISRA_RULES
25#pragma diag(push)
26#pragma diag(suppress:misra_rule_5_1:"ADI header disables rule 5.1 which bars use of long identifiers (>31 chars).")
27#endif /* _MISRA_RULES */
28
29/* Include all Core registers and bit definitions */
30#include <def_LPBlackfin.h>
31
32/* Include defBF50x_base.h for the set of #defines that are
33** common to all ADSP-BF50x processors
34*/
35#include <defBF50x_base.h>
36
37/*
38** Define the set of macros that are specific to the ADSP-BF506F processor
39*/
40
41/* Flash commands */
42#define FLASH_CMD_BLOCK_LOCK_CONFIRM     0x01
43#define FLASH_CMD_SET_CONFIG_CONFIRM     0x03
44#define FLASH_CMD_ALT_PROGRAM_SETUP      0x10
45#define FLASH_CMD_BLOCK_ERASE_SETUP      0x20
46#define FLASH_CMD_BLOCK_LOCKDOWN_CONFIRM 0x2F
47#define FLASH_CMD_ENH_FACT_PROG_SETUP    0x30
48#define FLASH_CMD_DOUBLE_WORD_PROG_SETUP 0x35
49#define FLASH_CMD_PROGRAM_SETUP          0x40
50#define FLASH_CMD_CLEAR_STATUS           0x50
51#define FLASH_CMD_QUAD_WORD_PROG_SETUP   0x56
52#define FLASH_CMD_BLOCK_LOCK_SETUP       0x60
53#define FLASH_CMD_BLOCK_UNLOCK_SETUP     0x60
54#define FLASH_CMD_BLOCK_LOCKDOWN_SETUP   0x60
55#define FLASH_CMD_SET_CONFIG_SETUP       0x60
56#define FLASH_CMD_READ_STATUS            0x70
57#define FLASH_CMD_QUAD_ENH_PROG_SETUP    0x75
58#define FLASH_CMD_READ_ELECTRONIC_SIG    0x90
59#define FLASH_CMD_READ_CFI_QUERY         0x98
60#define FLASH_CMD_PROGRAM_SUSPEND        0xB0
61#define FLASH_CMD_ERASE_SUSPEND          0xB0
62#define FLASH_CMD_PROTECTION_REG_PROGRAM 0xC0
63#define FLASH_CMD_PROGRAM_RESUME         0xD0
64#define FLASH_CMD_ERASE_RESUME           0xD0
65#define FLASH_CMD_BLOCK_ERASE_CONFIRM    0xD0
66#define FLASH_CMD_BLOCK_UNLOCK_CONFIRM   0xD0
67#define FLASH_CMD_ENH_FACT_PROG_CONFIRM  0xD0
68#define FLASH_CMD_READ_ARRAY             0xFF
69
70/* Bit definitions for Flash Configuration Register */
71#define FLASH_CR_ASYNC_READ            0x8000
72#define FLASH_CR_XLAT_5                0x2800
73#define FLASH_CR_XLAT_4                0x2000
74#define FLASH_CR_XLAT_3                0x1800
75#define FLASH_CR_XLAT_2                0x1000
76#define FLASH_CR_WAIT_HIGH             0x0400
77#define FLASH_CR_DATA_HOLD             0x0200
78#define FLASH_CR_WAIT_ONE              0x0100
79#define FLASH_CR_BURST_SEQ             0x0080
80#define FLASH_CR_CLK_RISE              0x0040
81#define FLASH_CR_WRAP_DIS              0x0008
82#define FLASH_CR_BURST_CONT            0x0007
83#define FLASH_CR_BURST_16              0x0003
84#define FLASH_CR_BURST_8               0x0002
85#define FLASH_CR_BURST_4               0x0001
86
87/* Bit definitions for Flash Status Register */
88#define FLASH_SR_PRG_ERASE_READY       0x0080
89#define FLASH_SR_ERASE_SUSPENDED       0x0040
90#define FLASH_SR_ERASE_ERROR           0x0020
91#define FLASH_SR_PRG_ERROR             0x0010
92#define FLASH_SR_VPP_INVALID_ABORT     0x0008
93#define FLASH_SR_PRG_SUSPENDED         0x0004
94#define FLASH_SR_BLK_PROT_ABORT        0x0002
95#define FLASH_SR_BNK_WRITE             0x0001
96
97
98#ifdef _MISRA_RULES
99#pragma diag(pop)
100#endif /* _MISRA_RULES */
101
102#endif /* _DEF_BF506F_H */
Note: See TracBrowser for help on using the repository browser.