Skip to content
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

arch/arm64/imx9: Add trdc support #280

Merged
merged 1 commit into from
Sep 19, 2024
Merged

arch/arm64/imx9: Add trdc support #280

merged 1 commit into from
Sep 19, 2024

Conversation

joukkone
Copy link

@joukkone joukkone commented Sep 6, 2024

Trdc is configured in EL3 bootloader
Clock pre-initialization is also executed there.

Summary

Impact

Testing

*
****************************************************************************/

static void imx9_ele_sendmsg(struct ele_msg *msg)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Olikos tää jo toisaalla? Tuo ele support?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ei oo, sitä ei varmaan välttämättä nyt oikeen muuten tarvikkaan tässä bootloaderissa.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok!


struct trdc_glbac_config trdc_w_mrc_glbac[] =
{
{ 0, 0, SP(RWX) | SU(RWX) | NP(RWX) | NU(RWX) }, /* MRC0 */
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

./nxstyle varmaa herjaa extra spaceista

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


struct trdc_glbac_config trdc_n_mrc_glbac[] =
{
{ 0, 0, SP(RWX) | SU(RWX) | NP(RWX) | NU(RWX) },
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pari kolme spacea liikaa, nxstyle?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


struct trdc_glbac_config trdc_n_mrc_glbac[] =
{
{ 0, 0, SP(RWX) | SU(RWX) | NP(RWX) | NU(RWX) },
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hiusten halkomista, mutta yllä lienee ylimääräinen space (ei mee nätisti alla olevan kanssa)


/* aonmix */

struct trdc_glbac_config trdc_a_mbc_glbac[] =
Copy link

@jlaitine jlaitine Sep 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the constants in the struct board specific? I.e. should be under board..? Also, if they are constants, should be const?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes they are kind of board specific, and changing structs to const means almost re-writing .c file, but it can be done of course. Maybe we can include imx9_trdc_config.h to board.h

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#include "imx9_trdc.h"
#include <arch/board/imx9_trdc_config.h> This seems to work, but then this patch need to be splitted so that _config.h goes to board git tree

@joukkone joukkone force-pushed the imx9_trdc branch 2 times, most recently from 843dd9e to 83e8050 Compare September 11, 2024 07:00

int imx9_trdc_init(void);

#endif /* __ARCH_ARM64_SRC_IMX9_IMX9_TRDC_H */

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a linefeed

int ret;
imx9_init_mu();

ret = imx9_release_rdc(0);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just pass the rdc_id directly, the switch-case in release_rdc burns my eyes

Copy link

@jlaitine jlaitine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a few minor comments, fix if you like. Otherwise lgtm

Trdc is configured in EL3 bootloader
Clock pre-initialization is also executed there.

Signed-off-by: Jouni Ukkonen <[email protected]>
@joukkone joukkone merged commit 7c4bf98 into master Sep 19, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants