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:
David Leach 2024-04-05 22:41:40 -05:00 committed by Anas Nashif
parent 424ea9f5e4
commit 00b46686b1
8 changed files with 1 additions and 94 deletions

View file

@ -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 |

View file

@ -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

View file

@ -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)

View file

@ -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

View file

@ -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);

View file

@ -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>;

View file

@ -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

View file

@ -193,7 +193,7 @@ manifest:
groups:
- hal
- name: hal_nxp
revision: 14160a1c14c06ce5a918cd550989555d832a636f
revision: 4ab0e7bc9c44840cbb22a6dd74c214713f239182
path: modules/hal/nxp
groups:
- hal