-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zephyr opanamp rsc dev 1 #1
base: main
Are you sure you want to change the base?
Changes from 3 commits
5297cc8
2975b02
8a4fdee
3c385fb
46903cd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,6 +95,12 @@ | |
clocks = <&ccm IMX_CCM_LPUART2_CLK 0x6c 24>; | ||
status = "disabled"; | ||
}; | ||
|
||
mu1: mu1@44220000 { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be |
||
compatible = "nxp,imx-mu"; | ||
reg = <0x44220000 DT_SIZE_K(64)>; | ||
interrupts = <21 0>; | ||
}; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be moved in the same patch with the one adding overlays for imx93 M33 core as it is a change related to DTS. |
||
}; | ||
}; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CONFIG_LOG_PRINTK=n | ||
CONFIG_IPM_IMX_MAX_DATA_SIZE_16=n | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since 8mp support doesn't depend on other patches lets send this as a separate Pull request. Commit message should look like this:
|
||
CONFIG_IPM_IMX_MAX_DATA_SIZE_4=y | ||
CONFIG_OPENAMP_WITH_DCACHE=y | ||
CONFIG_IPM_IMX_FW_READY_REPLY=y | ||
CONFIG_LOG=y | ||
CONFIG_LOG_BACKEND_UART=y | ||
CONFIG_LOG_DEFAULT_LEVEL=0 | ||
CONFIG_LOG_MODE_MINIMAL=y |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
chosen { | ||
/* | ||
* shared memory reserved for the inter-processor communication | ||
*/ | ||
zephyr,ipc_shm = &shram; | ||
zephyr,ipc = &mailbox0; | ||
}; | ||
|
||
shram: memory@55000000 { | ||
compatible = "mmio-sram"; | ||
reg = <0x55000000 0x500000>; | ||
}; | ||
}; | ||
|
||
&mailbox0 { | ||
status = "okay"; | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CONFIG_LOG_PRINTK=n | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Commit message here should be similiar with the one from 8mp_evk |
||
CONFIG_IPM_IMX_MAX_DATA_SIZE_16=n | ||
CONFIG_IPM_IMX_MAX_DATA_SIZE_4=y | ||
CONFIG_OPENAMP_WITH_DCACHE=y | ||
CONFIG_IPM_IMX_FW_READY_REPLY=y | ||
CONFIG_LOG=y | ||
CONFIG_LOG_BACKEND_UART=y | ||
CONFIG_LOG_DEFAULT_LEVEL=0 | ||
CONFIG_LOG_MODE_MINIMAL=y | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add a newline here |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
chosen { | ||
/* | ||
* shared memory reserved for the inter-processor communication | ||
*/ | ||
zephyr,ipc_shm = &shram; | ||
zephyr,ipc = &mu1; | ||
}; | ||
|
||
shram: memory@A4000000 { | ||
compatible = "mmio-sram"; | ||
reg = <0xA4000000 0x120000>; | ||
}; | ||
|
||
mu1{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add a space between mu1 and { |
||
status = "okay"; | ||
}; | ||
|
||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be a standalone patch explaining that MU register layout has changed or imx93 and we need to reverse the bits in order to work.
This would be the most problematic change to get in. but lets sending it like this and hope for the best.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alxlastur is it possible to do this change in NXP hal - in fsl_mu.c?
When taking the
status_reg
this should be already shifted for i.mx93.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iuliana-prodan , as far as I see I don't think so. The isr is defined in ipx_imx.c:
I see no ISR in fsl_mu.c or fsl_mu.h
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking to get the status register from
fsl_mu
by writing a function that does what you have above.Here, like we have the
MU_GetStatusFlags()
, something likeMU_GetStatusRegister()
.I have to take a look on imx93 MU :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. In this case it needs a MU_GetStatusRegister() that works for for all platforms. So MU_GetStatusRegister() should work for imx93 and imx8mp.