mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 11:39:53 +00:00
sensor: Move hardware sensors from misc to a sensor directory
Lots of this are expected to be coming in, create a directory for them. Also move the tmp105.h file into the include directory where it should be. Cc: Cédric Le Goater <clg@kaod.org> Cc: Peter Maydell <peter.maydell@linaro.org> Cc: Andrew Jeffery <andrew@aj.id.au> Cc: Joel Stanley <joel@jms.id.au> Cc: Andrzej Zaborowski <balrogg@gmail.com> Cc: qemu-arm@nongnu.org Signed-off-by: Corey Minyard <cminyard@mvista.com> Acked-by: Cédric Le Goater <clg@kaod.org>
This commit is contained in:
parent
58f3e3fe69
commit
5e9ae4b1a3
@ -32,6 +32,7 @@ source remote/Kconfig
|
||||
source rtc/Kconfig
|
||||
source scsi/Kconfig
|
||||
source sd/Kconfig
|
||||
source sensor/Kconfig
|
||||
source smbios/Kconfig
|
||||
source ssi/Kconfig
|
||||
source timer/Kconfig
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include "hw/i2c/i2c_mux_pca954x.h"
|
||||
#include "hw/i2c/smbus_eeprom.h"
|
||||
#include "hw/misc/pca9552.h"
|
||||
#include "hw/misc/tmp105.h"
|
||||
#include "hw/sensor/tmp105.h"
|
||||
#include "hw/misc/led.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "sysemu/block-backend.h"
|
||||
|
@ -36,7 +36,7 @@
|
||||
#include "hw/display/blizzard.h"
|
||||
#include "hw/input/tsc2xxx.h"
|
||||
#include "hw/misc/cbus.h"
|
||||
#include "hw/misc/tmp105.h"
|
||||
#include "hw/sensor/tmp105.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "hw/block/flash.h"
|
||||
#include "hw/hw.h"
|
||||
|
@ -31,6 +31,7 @@ subdir('rdma')
|
||||
subdir('rtc')
|
||||
subdir('scsi')
|
||||
subdir('sd')
|
||||
subdir('sensor')
|
||||
subdir('smbios')
|
||||
subdir('ssi')
|
||||
subdir('timer')
|
||||
|
@ -11,18 +11,6 @@ config ARMSSE_MHU
|
||||
config ARMSSE_CPU_PWRCTRL
|
||||
bool
|
||||
|
||||
config TMP105
|
||||
bool
|
||||
depends on I2C
|
||||
|
||||
config TMP421
|
||||
bool
|
||||
depends on I2C
|
||||
|
||||
config EMC141X
|
||||
bool
|
||||
depends on I2C
|
||||
|
||||
config ISA_DEBUG
|
||||
bool
|
||||
depends on ISA_BUS
|
||||
|
@ -6,9 +6,6 @@ softmmu_ss.add(when: 'CONFIG_ISA_TESTDEV', if_true: files('pc-testdev.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_PCA9552', if_true: files('pca9552.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_PCI_TESTDEV', if_true: files('pci-testdev.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_SGA', if_true: files('sga.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_TMP105', if_true: files('tmp105.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_TMP421', if_true: files('tmp421.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_EMC141X', if_true: files('emc141x.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_UNIMP', if_true: files('unimp.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_EMPTY_SLOT', if_true: files('empty_slot.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_LED', if_true: files('led.c'))
|
||||
|
11
hw/sensor/Kconfig
Normal file
11
hw/sensor/Kconfig
Normal file
@ -0,0 +1,11 @@
|
||||
config TMP105
|
||||
bool
|
||||
depends on I2C
|
||||
|
||||
config TMP421
|
||||
bool
|
||||
depends on I2C
|
||||
|
||||
config EMC141X
|
||||
bool
|
||||
depends on I2C
|
@ -25,7 +25,7 @@
|
||||
#include "qapi/visitor.h"
|
||||
#include "qemu/module.h"
|
||||
#include "qom/object.h"
|
||||
#include "hw/misc/emc141x_regs.h"
|
||||
#include "hw/sensor/emc141x_regs.h"
|
||||
|
||||
#define SENSORS_COUNT_MAX 4
|
||||
|
3
hw/sensor/meson.build
Normal file
3
hw/sensor/meson.build
Normal file
@ -0,0 +1,3 @@
|
||||
softmmu_ss.add(when: 'CONFIG_TMP105', if_true: files('tmp105.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_TMP421', if_true: files('tmp421.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_EMC141X', if_true: files('emc141x.c'))
|
@ -22,7 +22,7 @@
|
||||
#include "hw/i2c/i2c.h"
|
||||
#include "hw/irq.h"
|
||||
#include "migration/vmstate.h"
|
||||
#include "tmp105.h"
|
||||
#include "hw/sensor/tmp105.h"
|
||||
#include "qapi/error.h"
|
||||
#include "qapi/visitor.h"
|
||||
#include "qemu/module.h"
|
@ -15,7 +15,7 @@
|
||||
#define QEMU_TMP105_H
|
||||
|
||||
#include "hw/i2c/i2c.h"
|
||||
#include "hw/misc/tmp105_regs.h"
|
||||
#include "hw/sensor/tmp105_regs.h"
|
||||
#include "qom/object.h"
|
||||
|
||||
#define TYPE_TMP105 "tmp105"
|
@ -11,7 +11,7 @@
|
||||
#include "libqos/qgraph.h"
|
||||
#include "libqos/i2c.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "hw/misc/emc141x_regs.h"
|
||||
#include "hw/sensor/emc141x_regs.h"
|
||||
|
||||
#define EMC1414_TEST_ID "emc1414-test"
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include "qemu/bitops.h"
|
||||
#include "libqos/i2c.h"
|
||||
#include "libqos/libqtest.h"
|
||||
#include "hw/misc/tmp105_regs.h"
|
||||
#include "hw/sensor/tmp105_regs.h"
|
||||
|
||||
#define NR_SMBUS_DEVICES 16
|
||||
#define SMBUS_ADDR(x) (0xf0080000 + 0x1000 * (x))
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include "libqos/qgraph.h"
|
||||
#include "libqos/i2c.h"
|
||||
#include "qapi/qmp/qdict.h"
|
||||
#include "hw/misc/tmp105_regs.h"
|
||||
#include "hw/sensor/tmp105_regs.h"
|
||||
|
||||
#define TMP105_TEST_ID "tmp105-test"
|
||||
#define TMP105_TEST_ADDR 0x49
|
||||
|
Loading…
Reference in New Issue
Block a user