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

Support dcc console #701

Open
vabbarap opened this issue Dec 2, 2019 · 1 comment
Open

Support dcc console #701

vabbarap opened this issue Dec 2, 2019 · 1 comment

Comments

@vabbarap
Copy link

vabbarap commented Dec 2, 2019

I added the dcc console in the ATF code in the below path
"drivers/arm/dcc/dcc_console.c"
static inline uint32_t __dcc_getstatus(void)
{
uint32_t ret;
asm volatile("mrs %0, mdccsr_el0" : "=r" (ret));
return ret;
}
int32_t console_core_putc(int32_t ch, unsigned long base_addr)
{
while (__dcc_getstatus() & DCC_STATUS_TX)
;
__dcc_putchar(ch);
return ch;
}
int32_t console_core_getc(unsigned long base_addr)
{
while (!(__dcc_getstatus() & DCC_STATUS_RX))
;
return __dcc_getchar();
}
static inline void __dcc_putchar(char c)
{
/*

  • The typecast is to make absolutely certain that 'c' is
  • zero-extended.
    */
    asm volatile("msr dbgdtrtx_el0, %0"
    : : "r" ((unsigned long)(unsigned char)c));
    isb();
    }

And i just included the "drivers/console/aarch64/deprecated_console.S"
which has the console_core_init and console_core_putc etc function calls.

But now i upgraded the ATF to V2.2 and i see the console architecture got changed a lot.
Could you please let me know if i want to port the DCC console to the ATF V2.2 what are the changes need to be done?

Thanks
Venkatesh

@ssg-bot
Copy link

ssg-bot commented Dec 2, 2019

Hello @vabbarap!

Thank you for raising an issue for Trusted Firmware-A.

The TF-A project has now migrated to www.trustedfirmware.org. This issue tracker will still remain accessible for some time, but only for historical reasons. From now on you should raise any new issues on trustedfirmware.org.

How do I raise issues for TF-A?

Please use our new issue tracking board. For this you just need to login with your existing GitHub account. We also have a guide to help you raise the issue with the appropriate labels and tags. This way it will be easier for both you and us to track and address the issue most effectively.

What if I face any problems?

You can send us an email in the public TF-A mailing list. Here you can also find all the mailing lists for all the projects hosted under trustedfirmware.org.

We are looking forward to seeing you in trustedfirmware.org!

The Trusted Firmware-A team

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

No branches or pull requests

2 participants