-
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
arch/arm64/imx9: Add trdc support #280
Conversation
* | ||
****************************************************************************/ | ||
|
||
static void imx9_ele_sendmsg(struct ele_msg *msg) |
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.
Olikos tää jo toisaalla? Tuo ele support?
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.
Ei oo, sitä ei varmaan välttämättä nyt oikeen muuten tarvikkaan tässä bootloaderissa.
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.
ok!
|
||
struct trdc_glbac_config trdc_w_mrc_glbac[] = | ||
{ | ||
{ 0, 0, SP(RWX) | SU(RWX) | NP(RWX) | NU(RWX) }, /* MRC0 */ |
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.
./nxstyle varmaa herjaa extra spaceista
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.
done
|
||
struct trdc_glbac_config trdc_n_mrc_glbac[] = | ||
{ | ||
{ 0, 0, SP(RWX) | SU(RWX) | NP(RWX) | NU(RWX) }, |
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.
Pari kolme spacea liikaa, nxstyle?
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.
done
|
||
struct trdc_glbac_config trdc_n_mrc_glbac[] = | ||
{ | ||
{ 0, 0, SP(RWX) | SU(RWX) | NP(RWX) | NU(RWX) }, |
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.
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[] = |
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.
Are the constants in the struct board specific? I.e. should be under board..? Also, if they are constants, should be const?
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 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
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.
#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
843dd9e
to
83e8050
Compare
|
||
int imx9_trdc_init(void); | ||
|
||
#endif /* __ARCH_ARM64_SRC_IMX9_IMX9_TRDC_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.
Add a linefeed
arch/arm64/src/imx9/imx9_trdc.c
Outdated
int ret; | ||
imx9_init_mu(); | ||
|
||
ret = imx9_release_rdc(0); |
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.
just pass the rdc_id directly, the switch-case in release_rdc burns my eyes
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.
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]>
Trdc is configured in EL3 bootloader
Clock pre-initialization is also executed there.
Summary
Impact
Testing