mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-01 04:43:50 +00:00
CTZ - Count Trailing Zero - is not implemented in hardware on cortex0 or nds32. Used in ST sensor drivers. BUG=none BRANCH=none TEST=compile Change-Id: I2d62fd60f05169189b24ba2a3308bec69ed9de9c Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/767609 Commit-Ready: Ely Vazquez <nadia198877@gmail.com> Reviewed-by: Shawn N <shawnn@chromium.org>
19 lines
546 B
C
19 lines
546 B
C
/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef __CROS_EC_CONFIG_CORE_H
|
|
#define __CROS_EC_CONFIG_CORE_H
|
|
|
|
/* Linker binary architecture and format */
|
|
#define BFD_ARCH arm
|
|
#define BFD_FORMAT "elf32-littlearm"
|
|
|
|
/* Emulate the CLZ/CTZ instructions since the CPU core is lacking support */
|
|
#define CONFIG_SOFTWARE_CLZ
|
|
#define CONFIG_SOFTWARE_CTZ
|
|
#define CONFIG_SOFTWARE_PANIC
|
|
|
|
#endif /* __CROS_EC_CONFIG_CORE_H */
|