[processor-sdk/pdk.git] / packages / ti / drv / icss_emac / firmware / icss_dualemac / config / icss_emacFwVersion.h
1 /*
2 * TEXAS INSTRUMENTS TEXT FILE LICENSE
3 *
4 * Copyright (c) 2017-2018 Texas Instruments Incorporated
5 *
6 * All rights reserved not granted herein.
7 *
8 * Limited License.
9 *
10 * Texas Instruments Incorporated grants a world-wide, royalty-free, non-exclusive
11 * license under copyrights and patents it now or hereafter owns or controls to
12 * make, have made, use, import, offer to sell and sell ("Utilize") this software
13 * subject to the terms herein. With respect to the foregoing patent license,
14 * such license is granted solely to the extent that any such patent is necessary
15 * to Utilize the software alone. The patent license shall not apply to any
16 * combinations which include this software, other than combinations with devices
17 * manufactured by or for TI (“TI Devices”). No hardware patent is licensed hereunder.
18 *
19 * Redistributions must preserve existing copyright notices and reproduce this license
20 * (including the above copyright notice and the disclaimer and (if applicable) source
21 * code license limitations below) in the documentation and/or other materials provided
22 * with the distribution.
23 *
24 * Redistribution and use in binary form, without modification, are permitted provided
25 * that the following conditions are met:
26 * No reverse engineering, decompilation, or disassembly of this software is
27 * permitted with respect to any software provided in binary form.
28 * Any redistribution and use are licensed by TI for use only with TI Devices.
29 * Nothing shall obligate TI to provide you with source code for the software
30 * licensed and provided to you in object code.
31 *
32 * If software source code is provided to you, modification and redistribution of the
33 * source code are permitted provided that the following conditions are met:
34 * Any redistribution and use of the source code, including any resulting derivative
35 * works, are licensed by TI for use only with TI Devices.
36 * Any redistribution and use of any object code compiled from the source code
37 * and any resulting derivative works, are licensed by TI for use only with TI Devices.
38 *
39 * Neither the name of Texas Instruments Incorporated nor the names of its suppliers
40 * may be used to endorse or promote products derived from this software without
41 * specific prior written permission.
42 *
43 * DISCLAIMER.
44 *
45 * THIS SOFTWARE IS PROVIDED BY TI AND TI’S LICENSORS "AS IS" AND ANY EXPRESS OR IMPLIED
46 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
47 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL TI AND TI’S
48 * LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
49 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
50 * GOODS OR SERVICES* LOSS OF USE, DATA, OR PROFITS* OR BUSINESS INTERRUPTION) HOWEVER
51 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
52 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
53 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 */
56 /*
57 * file: icss_emacFwVersion.h
58 *
59 * brief: Firmware versioning information
60 */
62 #ifndef ICSS_EMAC_FW_VERSION__H
63 #define ICSS_EMAC_FW_VERSION__H
65 #include <ti/drv/icss_emac/icss_emacDrv.h>
67 #ifdef __cplusplus
68 extern "C" {
69 #endif
71 /* FIRMWARE versioning information, must remain in sync with versioning of firmware release as specified in ti/drv/icss_emac/firmware/icss_dualemac/src/firmware_version.h */
72 #define FIRMWARE_DEVICE_ICSS_REV1 ((uint32_t)0U)
73 #define FIRMWARE_DEVICE_ICSS_REV2 ((uint32_t)1U)
75 #define FIRMWARE_PROTOCOL_TYPE_ETHERNET_MAC ((uint32_t)0x11)
76 #define FIRMWARE_VERSION_INTERNAL ((uint32_t)0U)
77 #define FIRMWARE_VERSION_RELEASE ((uint32_t)1U)
79 #define FIRMWARE_VERSION_MAJOR ((uint32_t)5U)
80 #define FIRMWARE_VERSION_MINOR ((uint32_t)2U)
81 #define FIRMWARE_VERSION_BUILD ((uint32_t)7U)
84 #if defined(icev2AM335x) || defined(idkAM437x) || defined(iceAMIC110)
85 #define ICSS_FIRMWARE_RELEASE_1 ((FIRMWARE_DEVICE_ICSS_REV1 << 8) | (FIRMWARE_PROTOCOL_TYPE_ETHERNET_MAC << 0))
86 #else
87 #define ICSS_FIRMWARE_RELEASE_1 ((FIRMWARE_DEVICE_ICSS_REV2 << 8) | (FIRMWARE_PROTOCOL_TYPE_ETHERNET_MAC << 0))
89 #endif
91 #define ICSS_FIRMWARE_RELEASE_2 ((FIRMWARE_VERSION_RELEASE << 31) | (FIRMWARE_VERSION_MAJOR << 24) | (FIRMWARE_VERSION_MINOR << 16) | (FIRMWARE_VERSION_BUILD << 0))
94 #ifdef __cplusplus
95 }
96 #endif
98 #endif /* ICSS_EMAC_FW_VERSION__H */