bcm2835_aux.c (95a9457fd44ad97c518858a4e1586a5498f9773c) bcm2835_aux.c (e1ecf8c8026fc1b1a742160e69c0ab3087bc2841)
1/*
2 * BCM2835 (Raspberry Pi / Pi 2) Aux block (mini UART and SPI).
3 * Copyright (c) 2015, Microsoft
4 * Written by Andrew Baumann
5 * Based on pl011.c, copyright terms below:
6 *
7 * Arm PrimeCell PL011 UART
8 *

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

157 unsigned size)
158{
159 BCM2835AuxState *s = opaque;
160 unsigned char ch;
161
162 switch (offset) {
163 case AUX_ENABLES:
164 if (value != 1) {
1/*
2 * BCM2835 (Raspberry Pi / Pi 2) Aux block (mini UART and SPI).
3 * Copyright (c) 2015, Microsoft
4 * Written by Andrew Baumann
5 * Based on pl011.c, copyright terms below:
6 *
7 * Arm PrimeCell PL011 UART
8 *

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

157 unsigned size)
158{
159 BCM2835AuxState *s = opaque;
160 unsigned char ch;
161
162 switch (offset) {
163 case AUX_ENABLES:
164 if (value != 1) {
165 qemu_log_mask(LOG_UNIMP, "%s: unsupported attempt to enable SPI "
166 "or disable UART\n", __func__);
165 qemu_log_mask(LOG_UNIMP, "%s: unsupported attempt to enable SPI"
166 " or disable UART: 0x%"PRIx64"\n",
167 __func__, value);
167 }
168 break;
169
170 case AUX_MU_IO_REG:
171 /* "DLAB bit set means access baudrate register" is NYI */
172 ch = value;
173 /* XXX this blocks entire thread. Rewrite to use
174 * qemu_chr_fe_write and background I/O callbacks */

--- 143 unchanged lines hidden ---
168 }
169 break;
170
171 case AUX_MU_IO_REG:
172 /* "DLAB bit set means access baudrate register" is NYI */
173 ch = value;
174 /* XXX this blocks entire thread. Rewrite to use
175 * qemu_chr_fe_write and background I/O callbacks */

--- 143 unchanged lines hidden ---