1
0
mirror of https://git.code.sf.net/p/openocd/code synced 2024-11-22 09:36:27 +00:00
openocd/tcl/chip/atmel/at91/at91sam9_smc.cfg
Antonio Borneo 573a39b36c tcl: add SPDX tag
For historical reasons, no license information was added to the
tcl files. This makes trivial adding the SPDX tag through script:
	fgrep -rL SPDX tcl | while read a;do \
	sed -i '1{i# SPDX-License-Identifier: GPL-2.0-or-later\n
	}' $a;done

With no specific license information from the author, let's extend
the OpenOCD project license GPL-2.0-or-later to the files.

Change-Id: Ief3da306a6e1978de7dfb8f552f9ff23151f9944
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7030
Tested-by: jenkins
2022-06-24 21:54:12 +00:00

23 lines
1010 B
INI

# SPDX-License-Identifier: GPL-2.0-or-later
set AT91_SMC_READMODE [expr {1 << 0}] ;# Read Mode
set AT91_SMC_WRITEMODE [expr {1 << 1}] ;# Write Mode
set AT91_SMC_EXNWMODE [expr {3 << 4}] ;# NWAIT Mode
set AT91_SMC_EXNWMODE_DISABLE [expr {0 << 4}]
set AT91_SMC_EXNWMODE_FROZEN [expr {2 << 4}]
set AT91_SMC_EXNWMODE_READY [expr {3 << 4}]
set AT91_SMC_BAT [expr {1 << 8}] ;# Byte Access Type
set AT91_SMC_BAT_SELECT [expr {0 << 8}]
set AT91_SMC_BAT_WRITE [expr {1 << 8}]
set AT91_SMC_DBW [expr {3 << 12}] ;# Data Bus Width */
set AT91_SMC_DBW_8 [expr {0 << 12}]
set AT91_SMC_DBW_16 [expr {1 << 12}]
set AT91_SMC_DBW_32 [expr {2 << 12}]
set AT91_SMC_TDFMODE [expr {1 << 20}] ;# TDF Optimization - Enabled
set AT91_SMC_PMEN [expr {1 << 24}] ;# Page Mode Enabled
set AT91_SMC_PS [expr {3 << 28}] ;# Page Size
set AT91_SMC_PS_4 [expr {0 << 28}]
set AT91_SMC_PS_8 [expr {1 << 28}]
set AT91_SMC_PS_16 [expr {2 << 28}]
set AT91_SMC_PS_32 [expr {3 << 28}]