Ignore:
Timestamp:
2019-04-06T16:14:01Z (5 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3ef901d0
Parents:
46e886f
Message:

Pass physical address / port to ns16550_init

We need to know the physical address of the device's registers so that
we can put it into the registered parea.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/include/arch/mach/malta/malta.h

    r46e886f r82dcd25  
    4141#include <typedefs.h>
    4242
    43 #define MALTA_PCI_BASE          PA2KSEG1(0x18000000UL)
     43#define MALTA_PCI_PHYSBASE      0x18000000UL
     44
     45#define MALTA_PCI_BASE          PA2KSEG1(MALTA_PCI_PHYSBASE)
    4446#define MALTA_GT64120_BASE      PA2KSEG1(0x1be00000UL)
    4547
     
    4951#define ISA_IRQ_COUNT           16
    5052
    51 #define TTY_BASE                (MALTA_PCI_BASE + 0x3f8)
     53#define TTY_BASE                (MALTA_PCI_PHYSBASE + 0x3f8)
    5254#define TTY_ISA_IRQ             4
    5355
Note: See TracChangeset for help on using the changeset viewer.