pl011.hh (7584:28ddf6d9e982) pl011.hh (7587:177151a54462)
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 44 unchanged lines hidden (view full) ---

53#include "dev/uart.hh"
54#include "params/Pl011.hh"
55
56class Gic;
57
58class Pl011 : public Uart
59{
60 protected:
1/*
2 * Copyright (c) 2010 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 44 unchanged lines hidden (view full) ---

53#include "dev/uart.hh"
54#include "params/Pl011.hh"
55
56class Gic;
57
58class Pl011 : public Uart
59{
60 protected:
61 static const uint64_t AMBA_ID = ULL(0xb105f00d00341011);
61 static const int UART_DR = 0x000;
62 static const int UART_FR = 0x018;
63 static const int UART_FR_CTS = 0x001;
64 static const int UART_FR_TXFE = 0x080;
65 static const int UART_FR_RXFE = 0x010;
66 static const int UART_IBRD = 0x024;
67 static const int UART_FBRD = 0x028;
68 static const int UART_LCRH = 0x02C;
69 static const int UART_CR = 0x030;
70 static const int UART_IFLS = 0x034;
71 static const int UART_IMSC = 0x038;
72 static const int UART_RIS = 0x03C;
73 static const int UART_MIS = 0x040;
74 static const int UART_ICR = 0x044;
62 static const int UART_DR = 0x000;
63 static const int UART_FR = 0x018;
64 static const int UART_FR_CTS = 0x001;
65 static const int UART_FR_TXFE = 0x080;
66 static const int UART_FR_RXFE = 0x010;
67 static const int UART_IBRD = 0x024;
68 static const int UART_FBRD = 0x028;
69 static const int UART_LCRH = 0x02C;
70 static const int UART_CR = 0x030;
71 static const int UART_IFLS = 0x034;
72 static const int UART_IMSC = 0x038;
73 static const int UART_RIS = 0x03C;
74 static const int UART_MIS = 0x040;
75 static const int UART_ICR = 0x044;
75 static const int UART_PER_ID0 = 0xFE0;
76 static const int UART_PER_ID1 = 0xFE4;
77 static const int UART_PER_ID2 = 0xFE8;
78 static const int UART_PER_ID3 = 0xFEC;
79 static const int UART_CEL_ID0 = 0xFF0;
80 static const int UART_CEL_ID1 = 0xFF4;
81 static const int UART_CEL_ID2 = 0xFF8;
82 static const int UART_CEL_ID3 = 0xFFC;
83
84 uint16_t control;
85
86 /** fractional baud rate divisor. Not used for anything but reporting
87 * written value */
88 uint16_t fbrd;
89
90 /** integer baud rate divisor. Not used for anything but reporting

--- 84 unchanged lines hidden ---
76
77 uint16_t control;
78
79 /** fractional baud rate divisor. Not used for anything but reporting
80 * written value */
81 uint16_t fbrd;
82
83 /** integer baud rate divisor. Not used for anything but reporting

--- 84 unchanged lines hidden ---