mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-27 07:15:20 +00:00

This fixes shift overflow errors, when compiled with CONSOLE_DEBUG support: plat/imx/common/include/imx8_iomux.h:11:35: error: result of ‘1 << 31’ requires 33 bits to represent, but ‘int’ only has 32 bits [-Werror=shift-overflow=] Signed-off-by: Igor Opaniuk <igor.opaniuk@gmail.com> Change-Id: I0488e22c30314ba27caabc5c767164baa1e8004c
25 lines
876 B
C
25 lines
876 B
C
/*
|
|
* Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef IMX8_IOMUX_H
|
|
#define IMX8_IOMUX_H
|
|
|
|
#define PADRING_IFMUX_EN_SHIFT U(31)
|
|
#define PADRING_IFMUX_EN_MASK (U(0x1) << PADRING_IFMUX_EN_SHIFT)
|
|
#define PADRING_GP_EN_SHIFT U(30)
|
|
#define PADRING_GP_EN_MASK (U(0x1) << PADRING_GP_EN_SHIFT)
|
|
#define PADRING_IFMUX_SHIFT U(27)
|
|
#define PADRING_IFMUX_MASK (U(0x7) << PADRING_IFMUX_SHIFT)
|
|
#define PADRING_CONFIG_SHIFT U(25)
|
|
#define PADRING_CONFIG_MASK (U(0x3) << PADRING_CONFIG_SHIFT)
|
|
#define PADRING_LPCONFIG_SHIFT U(23)
|
|
#define PADRING_LPCONFIG_MASK (U(0x3) << PADRING_LPCONFIG_SHIFT)
|
|
#define PADRING_PULL_SHIFT U(5)
|
|
#define PADRING_PULL_MASK (U(0x3) << PADRING_PULL_SHIFT)
|
|
#define PADRING_DSE_SHIFT U(0)
|
|
#define PADRING_DSE_MASK (U(0x7) << PADRING_DSE_SHIFT)
|
|
|
|
#endif /* IMX8_IOMUX_H */
|