zephyr/soc/nxp/rw/soc.h
Yassine El Aissaoui 63791f2817 soc: rw61x: Add BLE support for rw61x
- Add SMU regions
- Add HCI definition
- Add config when BT is enabled

Signed-off-by: Yassine El Aissaoui <yassine.elaissaoui@nxp.com>
2024-05-25 11:23:04 +03:00

34 lines
714 B
C

/*
* Copyright 2022-2023 NXP
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _SOC__H_
#define _SOC__H_
#ifndef _ASMLANGUAGE
#include <zephyr/sys/util.h>
#include <fsl_common.h>
#include "fsl_power.h"
/* Add include for DTS generated information */
#include <zephyr/devicetree.h>
#endif /* !_ASMLANGUAGE */
#define ble_hci_handler BLE_MCI_WAKEUP0_DriverIRQHandler
#define ble_wakeup_done_handler BLE_MCI_WAKEUP_DONE0_DriverIRQHandler
/* Wrapper Function to deal with SDK differences in power API */
static inline void EnableDeepSleepIRQ(IRQn_Type irq)
{
POWER_EnableWakeup(irq);
}
#ifdef CONFIG_MEMC
int flexspi_clock_set_freq(uint32_t clock_name, uint32_t rate);
#endif
#endif /* _SOC__H_ */