drivers: lpc55s36: Remove deprecated CSS driver
CSS was deprecated from the mcu-sdk. Removing driver from lpc55s36 to clear build error. This is a temporary patch to remove the build error. Fixes #69961 Signed-off-by: David Leach <david.leach@nxp.com>
This commit is contained in:
parent
424ea9f5e4
commit
00b46686b1
|
@ -77,8 +77,6 @@ already supported, which can also be re-used on this lpcxpresso55s36 board:
|
|||
+-----------+------------+-------------------------------------+
|
||||
| PWM | on-chip | pwm |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| CSS | on-chip | entropy |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| USB FS | on-chip | USB Full Speed device |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| DAC | on-chip | dac |
|
||||
|
|
|
@ -20,8 +20,3 @@ supported:
|
|||
- pwm
|
||||
- dac
|
||||
vendor: nxp
|
||||
env: # Provisional hack to prevent tests being run in this board, as it fails in many test & samples
|
||||
- LPCXPRESSO55S36_TWISTER_ENABLE
|
||||
# Twister won't run tests in this board unless LPCXPRESSO55S36_TWISTER_ENABLE is set in the
|
||||
# environment, which it normally won't.
|
||||
# Once https://github.com/zephyrproject-rtos/zephyr/issues/69961 is fixed this should be removed
|
||||
|
|
|
@ -11,7 +11,6 @@ zephyr_library_sources_ifdef(CONFIG_ENTROPY_MCUX_RNG entropy_mcux_rng.
|
|||
zephyr_library_sources_ifdef(CONFIG_ENTROPY_MCUX_RNGA entropy_mcux_rnga.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_ENTROPY_MCUX_TRNG entropy_mcux_trng.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_ENTROPY_MCUX_CAAM entropy_mcux_caam.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_ENTROPY_MCUX_CSS entropy_mcux_css.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_ENTROPY_NRF5_RNG entropy_nrf5.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_ENTROPY_SAM_RNG entropy_sam.c)
|
||||
zephyr_library_sources_ifdef(CONFIG_ENTROPY_SMARTBOND_TRNG entropy_smartbond.c)
|
||||
|
|
|
@ -40,14 +40,6 @@ config ENTROPY_MCUX_CAAM
|
|||
This option enables the CAAM driver based on the MCUX
|
||||
CAAM driver.
|
||||
|
||||
config ENTROPY_MCUX_CSS
|
||||
bool "MCUX CSS RNG driver"
|
||||
default y
|
||||
depends on DT_HAS_NXP_CSS_V2_ENABLED
|
||||
select ENTROPY_HAS_DRIVER
|
||||
help
|
||||
This option enables the driver for random number generation using
|
||||
the CSS (Crypto Subsystem).
|
||||
#
|
||||
# Don't use use the MCUX TRNG as a random source as it is not designed
|
||||
# to supply a continuous random stream. Instead, it is used to provide
|
||||
|
|
|
@ -1,55 +0,0 @@
|
|||
/*
|
||||
* Copyright 2022 NXP
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#define DT_DRV_COMPAT nxp_css_v2
|
||||
|
||||
#include "mcuxClCss_Rng.h"
|
||||
|
||||
#include <zephyr/device.h>
|
||||
#include <zephyr/drivers/entropy.h>
|
||||
#include <zephyr/init.h>
|
||||
#include <zephyr/random/random.h>
|
||||
|
||||
static int entropy_mcux_css_get_entropy(const struct device *dev, uint8_t *buffer, uint16_t length)
|
||||
{
|
||||
ARG_UNUSED(dev);
|
||||
uint8_t status = 0;
|
||||
|
||||
MCUX_CSSL_FP_FUNCTION_CALL_BEGIN(result, token, mcuxClCss_Prng_GetRandom(buffer, length));
|
||||
if ((MCUX_CSSL_FP_FUNCTION_CALLED(mcuxClCss_Prng_GetRandom) != token) ||
|
||||
(result != MCUXCLCSS_STATUS_OK)) {
|
||||
status = -EAGAIN;
|
||||
}
|
||||
MCUX_CSSL_FP_FUNCTION_CALL_END();
|
||||
|
||||
__ASSERT_NO_MSG(!status);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
static const struct entropy_driver_api entropy_mcux_css_api_funcs = {
|
||||
.get_entropy = entropy_mcux_css_get_entropy
|
||||
};
|
||||
|
||||
static int entropy_mcux_css_init(const struct device *dev)
|
||||
{
|
||||
ARG_UNUSED(dev);
|
||||
uint8_t status = 0;
|
||||
|
||||
MCUX_CSSL_FP_FUNCTION_CALL_BEGIN(result, token, mcuxClCss_Enable_Async());
|
||||
if ((MCUX_CSSL_FP_FUNCTION_CALLED(mcuxClCss_Enable_Async) != token) ||
|
||||
(result != MCUXCLCSS_STATUS_OK_WAIT)) {
|
||||
status = -ENODEV;
|
||||
}
|
||||
MCUX_CSSL_FP_FUNCTION_CALL_END();
|
||||
|
||||
__ASSERT_NO_MSG(!status);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, entropy_mcux_css_init, NULL, NULL, NULL, PRE_KERNEL_1,
|
||||
CONFIG_ENTROPY_INIT_PRIORITY, &entropy_mcux_css_api_funcs);
|
|
@ -13,10 +13,6 @@
|
|||
#include <mem.h>
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zephyr,entropy = &css;
|
||||
};
|
||||
|
||||
cpus {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
@ -270,12 +266,6 @@
|
|||
#size-cells = <0>;
|
||||
};
|
||||
|
||||
css: css@4003000 {
|
||||
compatible = "nxp,css-v2";
|
||||
reg = <0x4003000 0x200>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
adc0: adc@A0000 {
|
||||
compatible = "nxp,lpc-lpadc";
|
||||
reg = <0xA0000 0x1000>;
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
# Copyright 2022 NXP
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: CSSv2 (Crypto Subsystem)
|
||||
|
||||
compatible: "nxp,css-v2"
|
||||
|
||||
include: base.yaml
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
Loading…
Reference in a new issue