1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-05-04 07:19:18 +00:00

console: Cleanup console API

Use a more generic console_init() instead of potato_uart_init(),
and do the same for interrupt control. There should be no
change in behaviour.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
Benjamin Herrenschmidt
2020-06-18 11:06:33 +10:00
parent 7575b1e0c2
commit e3941109af
16 changed files with 93 additions and 69 deletions

View File

@@ -228,7 +228,7 @@ void do_test(int num, int (*fn)(unsigned long))
int main(void)
{
potato_uart_init();
console_init();
init_mmu();
map(0x2000, 0x2000, REF | CHG | PERM_RD | PERM_EX); /* map code page */
map(0x7000, 0x7000, REF | CHG | PERM_RD | PERM_WR); /* map stack page */