summaryrefslogtreecommitdiffstats
path: root/bsps/bfin/include/libcpu/sportRegs.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2017-12-23 18:18:56 +1100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-01-25 08:45:26 +0100
commit2afb22b7e1ebcbe40373ff7e0efae7d207c655a9 (patch)
tree44759efe9374f13200a97e96d91bd9a2b7e5ce2a /bsps/bfin/include/libcpu/sportRegs.h
parentMAINTAINERS: Add myself to Write After Approval. (diff)
downloadrtems-2afb22b7e1ebcbe40373ff7e0efae7d207c655a9.tar.bz2
Remove make preinstall
A speciality of the RTEMS build system was the make preinstall step. It copied header files from arbitrary locations into the build tree. The header files were included via the -Bsome/build/tree/path GCC command line option. This has at least seven problems: * The make preinstall step itself needs time and disk space. * Errors in header files show up in the build tree copy. This makes it hard for editors to open the right file to fix the error. * There is no clear relationship between source and build tree header files. This makes an audit of the build process difficult. * The visibility of all header files in the build tree makes it difficult to enforce API barriers. For example it is discouraged to use BSP-specifics in the cpukit. * An introduction of a new build system is difficult. * Include paths specified by the -B option are system headers. This may suppress warnings. * The parallel build had sporadic failures on some hosts. This patch removes the make preinstall step. All installed header files are moved to dedicated include directories in the source tree. Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc, etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g. erc32, imx, qoriq, etc. The new cpukit include directories are: * cpukit/include * cpukit/score/cpu/@RTEMS_CPU@/include * cpukit/libnetworking The new BSP include directories are: * bsps/include * bsps/@RTEMS_CPU@/include * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include There are build tree include directories for generated files. The include directory order favours the most general header file, e.g. it is not possible to override general header files via the include path order. The "bootstrap -p" option was removed. The new "bootstrap -H" option should be used to regenerate the "headers.am" files. Update #3254.
Diffstat (limited to 'bsps/bfin/include/libcpu/sportRegs.h')
-rw-r--r--bsps/bfin/include/libcpu/sportRegs.h111
1 files changed, 111 insertions, 0 deletions
diff --git a/bsps/bfin/include/libcpu/sportRegs.h b/bsps/bfin/include/libcpu/sportRegs.h
new file mode 100644
index 0000000000..f9f263b024
--- /dev/null
+++ b/bsps/bfin/include/libcpu/sportRegs.h
@@ -0,0 +1,111 @@
+/* Blackfin SPORT Registers
+ *
+ * Copyright (c) 2008 Kallisti Labs, Los Gatos, CA, USA
+ * written by Allan Hessenflow <allanh@kallisti.com>
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#ifndef _sportRegs_h_
+#define _sportRegs_h_
+
+
+/* register addresses */
+
+#define SPORT_TCR1_OFFSET 0x0000
+#define SPORT_TCR2_OFFSET 0x0004
+#define SPORT_TCLKDIV_OFFSET 0x0008
+#define SPORT_TFSDIV_OFFSET 0x000c
+#define SPORT_TX_OFFSET 0x0010
+#define SPORT_RX_OFFSET 0x0018
+#define SPORT_RCR1_OFFSET 0x0020
+#define SPORT_RCR2_OFFSET 0x0024
+#define SPORT_RCLKDIV_OFFSET 0x0028
+#define SPORT_RFSDIV_OFFSET 0x002c
+#define SPORT_STAT_OFFSET 0x0030
+#define SPORT_CHNL_OFFSET 0x0034
+#define SPORT_MCMC1_OFFSET 0x0038
+#define SPORT_MCMC2_OFFSET 0x003c
+#define SPORT_MTCS0_OFFSET 0x0040
+#define SPORT_MTCS1_OFFSET 0x0044
+#define SPORT_MTCS2_OFFSET 0x0048
+#define SPORT_MTCS3_OFFSET 0x004c
+#define SPORT_MRCS0_OFFSET 0x0050
+#define SPORT_MRCS1_OFFSET 0x0054
+#define SPORT_MRCS2_OFFSET 0x0058
+#define SPORT_MRCS3_OFFSET 0x005c
+
+
+/* register fields */
+
+#define SPORT_TCR1_TCKFE 0x4000
+#define SPORT_TCR1_LATFS 0x2000
+#define SPORT_TCR1_LTFS 0x1000
+#define SPORT_TCR1_DITFS 0x0800
+#define SPORT_TCR1_TFSR 0x0400
+#define SPORT_TCR1_ITFS 0x0200
+#define SPORT_TCR1_TLSBIT 0x0010
+#define SPORT_TCR1_TDTYPE_MASK 0x000c
+#define SPORT_TCR1_TDTYPE_NORMAL 0x0000
+#define SPORT_TCR1_TDTYPE_ULAW 0x0008
+#define SPORT_TCR1_TDTYPE_ALAW 0x000c
+#define SPORT_TCR1_ITCLK 0x0002
+#define SPORT_TCR1_TSPEN 0x0001
+
+#define SPORT_TCR2_TRFST 0x0400
+#define SPORT_TCR2_TSFSE 0x0200
+#define SPORT_TCR2_TXSE 0x0100
+#define SPORT_TCR2_SLEN_MASK 0x001f
+#define SPORT_TCR2_SLEN_SHIFT 0
+
+#define SPORT_RCR1_RCKFE 0x4000
+#define SPORT_RCR1_LARFS 0x2000
+#define SPORT_RCR1_LRFS 0x1000
+#define SPORT_RCR1_RFSR 0x0400
+#define SPORT_RCR1_IRFS 0x0200
+#define SPORT_RCR1_RLSBIT 0x0010
+#define SPORT_RCR1_RDTYPE_MASK 0x000c
+#define SPORT_RCR1_RDTYPE_ZEROFILL 0x0000
+#define SPORT_RCR1_RDTYPE_SIGNEXTEND 0x0004
+#define SPORT_RCR1_RDTYPE_ULAW 0x0008
+#define SPORT_RCR1_RDTYPE_ALAW 0x000c
+#define SPORT_RCR1_IRCLK 0x0002
+#define SPORT_RCR1_RSPEN 0x0001
+
+#define SPORT_RCR2_RRFST 0x0400
+#define SPORT_RCR2_RSFSE 0x0200
+#define SPORT_RCR2_RXSE 0x0100
+#define SPORT_RCR2_SLEN_MASK 0x001f
+#define SPORT_RCR2_SLEN_SHIFT 0
+
+#define SPORT_STAT_TXHRE 0x0040
+#define SPORT_STAT_TOVF 0x0020
+#define SPORT_STAT_TUVF 0x0010
+#define SPORT_STAT_TXF 0x0008
+#define SPORT_STAT_ROVF 0x0004
+#define SPORT_STAT_RUVF 0x0002
+#define SPORT_STAT_RXNE 0x0001
+
+#define SPORT_CHNL_CHNL_MASK 0x03ff
+#define SPORT_CHNL_CHNL_SHIFT 0
+
+#define SPORT_MCMC1_WSIZE_MASK 0xf000
+#define SPORT_MCMC1_WSIZE_SHIFT 12
+#define SPORT_MCMC1_WOFF_MASK 0x03ff
+#define SPORT_MCMC1_WOFF_SHIFT 0
+
+#define SPORT_MCMC2_MFD_MASK 0xf000
+#define SPORT_MCMC2_MFD_SHIFT 12
+#define SPORT_MCMC2_FSDR 0x0080
+#define SPORT_MCMC2_MCMEN 0x0010
+#define SPORT_MCMC2_MCDRXPE 0x0008
+#define SPORT_MCMC2_MCDTXPE 0x0004
+#define SPORT_MCMC2_MCCRM_MASK 0x0003
+#define SPORT_MCMC2_MCCRM_BYPASS 0x0000
+#define SPORT_MCMC2_MCCRM_2_4 0x0002
+#define SPORT_MCMC2_MCCRM_8_16 0x0003
+
+
+#endif /* _sportRegs_h_ */