summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/arm/tms570/hwinit/tms570_selftest.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 /c/src/lib/libbsp/arm/tms570/hwinit/tms570_selftest.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 'c/src/lib/libbsp/arm/tms570/hwinit/tms570_selftest.h')
-rw-r--r--c/src/lib/libbsp/arm/tms570/hwinit/tms570_selftest.h214
1 files changed, 0 insertions, 214 deletions
diff --git a/c/src/lib/libbsp/arm/tms570/hwinit/tms570_selftest.h b/c/src/lib/libbsp/arm/tms570/hwinit/tms570_selftest.h
deleted file mode 100644
index bbec8c2adf..0000000000
--- a/c/src/lib/libbsp/arm/tms570/hwinit/tms570_selftest.h
+++ /dev/null
@@ -1,214 +0,0 @@
-/**
- * @file tms570_selftest.h
- *
- * @ingroup tms570
- *
- * @brief Definition of TMS570 selftest error codes, addresses and functions.
- */
-/*
- * Copyright (c) 2016 Pavel Pisa <pisa@cmp.felk.cvut.cz>
- *
- * Czech Technical University in Prague
- * Zikova 1903/4
- * 166 36 Praha 6
- * Czech Republic
- *
- * 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.
- *
- * Algorithms are based on Ti manuals and Ti HalCoGen generated
- * code available under following copyright.
- */
-/*
- * Copyright (C) 2009-2015 Texas Instruments Incorporated - www.ti.com
- *
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of Texas Instruments Incorporated nor the names of
- * its contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- */
-
-#ifndef LIBBSP_ARM_TMS570_SELFTEST_H
-#define LIBBSP_ARM_TMS570_SELFTEST_H
-
-#include <stdint.h>
-#include <stdbool.h>
-
-#define CCMSELFCHECK_FAIL1 1U
-#define CCMSELFCHECK_FAIL2 2U
-#define CCMSELFCHECK_FAIL3 3U
-#define CCMSELFCHECK_FAIL4 4U
-#define PBISTSELFCHECK_FAIL1 5U
-#define EFCCHECK_FAIL1 6U
-#define EFCCHECK_FAIL2 7U
-#define FMCECCCHECK_FAIL1 8U
-#define CHECKB0RAMECC_FAIL1 9U
-#define CHECKB1RAMECC_FAIL1 10U
-#define CHECKFLASHECC_FAIL1 11U
-#define VIMPARITYCHECK_FAIL1 12U
-#define DMAPARITYCHECK_FAIL1 13U
-#define HET1PARITYCHECK_FAIL1 14U
-#define HTU1PARITYCHECK_FAIL1 15U
-#define HET2PARITYCHECK_FAIL1 16U
-#define HTU2PARITYCHECK_FAIL1 17U
-#define ADC1PARITYCHECK_FAIL1 18U
-#define ADC2PARITYCHECK_FAIL1 19U
-#define CAN1PARITYCHECK_FAIL1 20U
-#define CAN2PARITYCHECK_FAIL1 21U
-#define CAN3PARITYCHECK_FAIL1 22U
-#define MIBSPI1PARITYCHECK_FAIL1 23U
-#define MIBSPI3PARITYCHECK_FAIL1 24U
-#define MIBSPI5PARITYCHECK_FAIL1 25U
-#define CHECKRAMECC_FAIL1 26U
-#define CHECKRAMECC_FAIL2 27U
-#define CHECKCLOCKMONITOR_FAIL1 28U
-#define CHECKFLASHEEPROMECC_FAIL1 29U
-#define CHECKFLASHEEPROMECC_FAIL2 31U
-#define CHECKFLASHEEPROMECC_FAIL3 32U
-#define CHECKFLASHEEPROMECC_FAIL4 33U
-#define CHECKPLL1SLIP_FAIL1 34U
-#define CHECKRAMADDRPARITY_FAIL1 35U
-#define CHECKRAMADDRPARITY_FAIL2 36U
-#define CHECKRAMUERRTEST_FAIL1 37U
-#define CHECKRAMUERRTEST_FAIL2 38U
-#define FMCBUS1PARITYCHECK_FAIL1 39U
-#define FMCBUS1PARITYCHECK_FAIL2 40U
-#define PBISTSELFCHECK_FAIL2 41U
-#define PBISTSELFCHECK_FAIL3 42U
-
-/* PBIST and STC ROM - PBIST RAM GROUPING */
-#define PBIST_ROM_PBIST_RAM_GROUP 1U
-#define STC_ROM_PBIST_RAM_GROUP 2U
-
-#define VIMRAMLOC (*(volatile uint32_t *)0xFFF82000U)
-#define VIMRAMPARLOC (*(volatile uint32_t *)0xFFF82400U)
-
-#define NHET1RAMPARLOC (*(volatile uint32_t *)0xFF462000U)
-#define NHET2RAMPARLOC (*(volatile uint32_t *)0xFF442000U)
-#define adcPARRAM1 (*(volatile uint32_t *)(0xFF3E0000U + 0x1000U))
-#define adcPARRAM2 (*(volatile uint32_t *)(0xFF3A0000U + 0x1000U))
-#define canPARRAM1 (*(volatile uint32_t *)(0xFF1E0000U + 0x10U))
-#define canPARRAM2 (*(volatile uint32_t *)(0xFF1C0000U + 0x10U))
-#define canPARRAM3 (*(volatile uint32_t *)(0xFF1A0000U + 0x10U))
-#define HTU1PARLOC (*(volatile uint32_t *)0xFF4E0200U)
-#define HTU2PARLOC (*(volatile uint32_t *)0xFF4C0200U)
-
-#define NHET1RAMLOC (*(volatile uint32_t *)0xFF460000U)
-#define NHET2RAMLOC (*(volatile uint32_t *)0xFF440000U)
-#define HTU1RAMLOC (*(volatile uint32_t *)0xFF4E0000U)
-#define HTU2RAMLOC (*(volatile uint32_t *)0xFF4C0000U)
-
-#define adcRAM1 (*(volatile uint32_t *)0xFF3E0000U)
-#define adcRAM2 (*(volatile uint32_t *)0xFF3A0000U)
-#define canRAM1 (*(volatile uint32_t *)0xFF1E0000U)
-#define canRAM2 (*(volatile uint32_t *)0xFF1C0000U)
-#define canRAM3 (*(volatile uint32_t *)0xFF1A0000U)
-
-#define DMARAMPARLOC (*(volatile uint32_t *)(0xFFF80A00U))
-#define DMARAMLOC (*(volatile uint32_t *)(0xFFF80000U))
-
-#define MIBSPI1RAMLOC (*(volatile uint32_t *)(0xFF0E0000U))
-#define MIBSPI3RAMLOC (*(volatile uint32_t *)(0xFF0C0000U))
-#define MIBSPI5RAMLOC (*(volatile uint32_t *)(0xFF0A0000U))
-
-#define mibspiPARRAM1 (*(volatile uint32_t *)(0xFF0E0000U + 0x00000400U))
-#define mibspiPARRAM3 (*(volatile uint32_t *)(0xFF0C0000U + 0x00000400U))
-#define mibspiPARRAM5 (*(volatile uint32_t *)(0xFF0A0000U + 0x00000400U))
-
-/** @enum pbistPort
- * @brief Alias names for pbist Port number
- *
- * This enumeration is used to provide alias names for the pbist Port number
- * - PBIST_PORT0
- * - PBIST_PORT1
- *
- * @Note Check the datasheet for the port avaiability
- */
-enum pbistPort {
- PBIST_PORT0 = 0U, /**< Alias for PBIST Port 0 */
- PBIST_PORT1 = 1U /**< Alias for PBIST Port 1 < Check datasheet for Port 1 availability > */
-};
-
-enum {
- PBIST_TripleReadSlow = 0x00000001U, /**<TRIPLE_READ_SLOW_READ for PBIST and STC ROM*/
- PBIST_TripleReadFast = 0x00000002U, /**<TRIPLE_READ_SLOW_READ for PBIST and STC ROM*/
- PBIST_March13N_DP = 0x00000004U, /**< March13 N Algo for 2 Port mem */
-};
-
-uint32_t tms570_efc_check( void );
-
-bool tms570_efc_check_self_test( void );
-
-void bsp_selftest_fail_notification( uint32_t flag );
-
-void tms570_memory_port0_fail_notification(
- uint32_t groupSelect,
- uint32_t dataSelect,
- uint32_t address,
- uint32_t data
-);
-
-void tms570_esm_channel_sr_clear(
- unsigned grp,
- unsigned chan
-);
-
-int tms570_esm_channel_sr_get(
- unsigned grp,
- unsigned chan
-);
-
-void tms570_pbist_self_check( void );
-
-void tms570_pbist_run(
- uint32_t raminfoL,
- uint32_t algomask
-);
-
-bool tms570_pbist_is_test_completed( void );
-
-bool tms570_pbist_is_test_passed( void );
-
-void tms570_pbist_fail( void );
-
-void tms570_pbist_stop( void );
-
-void tms570_enable_parity( void );
-
-void tms570_disable_parity( void );
-
-bool tms570_efc_stuck_zero( void );
-
-void tms570_efc_self_test( void );
-
-bool tms570_pbist_port_test_status( uint32_t port );
-
-void tms570_check_tcram_ecc( void );
-
-#endif /*LIBBSP_ARM_TMS570_SELFTEST_H*/