Commit 9619b02f authored by Mahesh Mahadevan's avatar Mahesh Mahadevan
Browse files

soc: nxp: Add define needed by the SDK USB driver



1. Add USB_STACK_USE_DEDICATED_RAM=1 define that is
   used by the SDK USB driver
2. Delete unused "config USB_DEDICATED_MEMORY"

Signed-off-by: default avatarMahesh Mahadevan <mahesh.mahadevan@nxp.com>
parent 99661815
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6,6 +6,8 @@

zephyr_compile_definitions(FSL_SDK_DRIVER_QUICK_ACCESS_ENABLE)

zephyr_compile_definitions_ifdef(CONFIG_USB_DEVICE_DRIVER USB_STACK_USE_DEDICATED_RAM=1)

zephyr_sources(
  soc.c
  flash_clock_setup.c
+0 −4
Original line number Diff line number Diff line
@@ -30,7 +30,6 @@ config SOC_MIMXRT595S_CM33
	select HAS_MCUX_USDHC1
	select HAS_MCUX_USDHC2
	select HAS_MCUX_USB_LPCIP3511
	select USB_DEDICATED_MEMORY if USB_DEVICE_DRIVER
	select HAS_MCUX_CTIMER
endchoice

@@ -68,9 +67,6 @@ config SOC_PART_NUMBER_IMX_RT5XX
	  option that you should not set directly. The part number selection
	  choice defines the default value for this string.

config USB_DEDICATED_MEMORY
	bool "Dedicated memory for USB transfer buffer and controller operation buffers"

menuconfig NXP_IMX_RT5XX_BOOT_HEADER
	bool "The boot header"
	depends on !BOOTLOADER_MCUBOOT
+2 −0
Original line number Diff line number Diff line
@@ -17,6 +17,8 @@ zephyr_library_include_directories(
  ${ZEPHYR_BASE}/arch/${ARCH}/include
  )

zephyr_compile_definitions_ifdef(CONFIG_USB_DEVICE_DRIVER USB_STACK_USE_DEDICATED_RAM=1)

zephyr_linker_sources_ifdef(CONFIG_NXP_IMX_RT6XX_BOOT_HEADER
  ROM_START SORT_KEY 0 boot_header.ld)

+0 −4
Original line number Diff line number Diff line
@@ -30,7 +30,6 @@ config SOC_MIMXRT685S_CM33
	select HAS_MCUX_USDHC2
	select INIT_SYS_PLL
	select HAS_MCUX_USB_LPCIP3511
	select USB_DEDICATED_MEMORY if USB_DEVICE_DRIVER
	select HAS_MCUX_CTIMER
endchoice

@@ -62,9 +61,6 @@ config INIT_SYS_PLL
config INIT_AUDIO_PLL
	bool "Initialize Audio PLL"

config USB_DEDICATED_MEMORY
	bool "Dedicated memory for USB transfer buffer and controller operation buffers"

config XTAL_SYS_CLK_HZ
	int "External oscillator frequency"
	help
+2 −0
Original line number Diff line number Diff line
@@ -15,6 +15,8 @@ zephyr_library_include_directories(
zephyr_linker_sources_ifdef(CONFIG_USB_DEVICE_DRIVER
  SECTIONS usb.ld)

zephyr_compile_definitions_ifdef(CONFIG_USB_DEVICE_DRIVER USB_STACK_USE_DEDICATED_RAM=1)

if (CONFIG_SECOND_CORE_MCUX)
  set(gen_dir ${ZEPHYR_BINARY_DIR}/include/generated/)
  string(CONFIGURE ${CONFIG_SECOND_IMAGE_MCUX} second_core_image)
Loading