mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
hw/adc: Remove MAX111X device
The MAX111X ADC device was used only by the XScale-based Zaurus machine types. Now they have all been removed, we can drop this device model too. Because this device is an SSI device, in theory it could be created by users on the command line for boards with a different SSI controller, but we don't believe users are doing this -- it would be impossible on the command line to connect up the GPIO inputs which correspond to ADC inputs, or the GPIO output which is an interrupt line. The only example a web search produces for "device max1111" or "device max1110" is our own bug report https://gitlab.com/qemu-project/qemu/-/issues/2228 where it's used as an example of a bogus command that causes an assertion in an aspeed machine type that wasn't expecting anything other than flash devices on its SMC bus. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20241003140010.1653808-2-peter.maydell@linaro.org
This commit is contained in:
parent
0ae50e8e1e
commit
ff788b7022
4 changed files with 0 additions and 296 deletions
|
@ -1,56 +0,0 @@
|
|||
/*
|
||||
* Maxim MAX1110/1111 ADC chip emulation.
|
||||
*
|
||||
* Copyright (c) 2006 Openedhand Ltd.
|
||||
* Written by Andrzej Zaborowski <balrog@zabor.org>
|
||||
*
|
||||
* This code is licensed under the GNU GPLv2.
|
||||
*
|
||||
* Contributions after 2012-01-13 are licensed under the terms of the
|
||||
* GNU GPL, version 2 or (at your option) any later version.
|
||||
*/
|
||||
|
||||
#ifndef HW_MISC_MAX111X_H
|
||||
#define HW_MISC_MAX111X_H
|
||||
|
||||
#include "hw/ssi/ssi.h"
|
||||
#include "qom/object.h"
|
||||
|
||||
/*
|
||||
* This is a model of the Maxim MAX1110/1111 ADC chip, which for QEMU
|
||||
* is an SSI slave device. It has either 4 (max1110) or 8 (max1111)
|
||||
* 8-bit ADC channels.
|
||||
*
|
||||
* QEMU interface:
|
||||
* + GPIO inputs 0..3 (for max1110) or 0..7 (for max1111): set the value
|
||||
* of each ADC input, as an unsigned 8-bit value
|
||||
* + GPIO output 0: interrupt line
|
||||
* + Properties "input0" to "input3" (max1110) or "input0" to "input7"
|
||||
* (max1111): initial reset values for ADC inputs.
|
||||
*
|
||||
* Known bugs:
|
||||
* + the interrupt line is not correctly implemented, and will never
|
||||
* be lowered once it has been asserted.
|
||||
*/
|
||||
struct MAX111xState {
|
||||
SSIPeripheral parent_obj;
|
||||
|
||||
qemu_irq interrupt;
|
||||
/* Values of inputs at system reset (settable by QOM property) */
|
||||
uint8_t reset_input[8];
|
||||
|
||||
uint8_t tb1, rb2, rb3;
|
||||
int cycle;
|
||||
|
||||
uint8_t input[8];
|
||||
int inputs, com;
|
||||
};
|
||||
|
||||
#define TYPE_MAX_111X "max111x"
|
||||
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(MAX111xState, MAX_111X)
|
||||
|
||||
#define TYPE_MAX_1110 "max1110"
|
||||
#define TYPE_MAX_1111 "max1111"
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue