mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:17 +00:00
hw: Move ARM_SYSCTL_GPIO definitions to arm sysctl specific header
include/hw/arm/primecell.h used to be more expansive, but now the only thing it defines is the ARM_SYSCTL_GPIO_* constants for the GPIO lines for the arm-sysctl system-control device used on the Realview, Versatile and Versatile Express boards. Replace it with a header file specific to that device. virt.c and vmapple.c included primecell.h despite not using the constants it defined; there we can simply drop the include entirely. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20260416172627.690396-1-peter.maydell@linaro.org
This commit is contained in:
@@ -759,7 +759,6 @@ F: hw/ssi/pl022.c
|
||||
F: include/hw/ssi/pl022.h
|
||||
F: hw/rtc/pl031.c
|
||||
F: include/hw/rtc/pl031.h
|
||||
F: include/hw/arm/primecell.h
|
||||
F: hw/timer/cmsdk-apb-timer.c
|
||||
F: include/hw/timer/cmsdk-apb-timer.h
|
||||
F: tests/qtest/cmsdk-apb-timer-test.c
|
||||
@@ -1113,6 +1112,7 @@ F: hw/*/versatile*
|
||||
F: hw/i2c/arm_sbcon_i2c.c
|
||||
F: include/hw/i2c/arm_sbcon_i2c.h
|
||||
F: hw/misc/arm_sysctl.c
|
||||
F: include/hw/misc/arm_sysctl.h
|
||||
F: docs/system/arm/versatile.rst
|
||||
|
||||
Virt
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
#include "target/arm/cpu.h"
|
||||
#include "hw/core/sysbus.h"
|
||||
#include "hw/arm/boot.h"
|
||||
#include "hw/arm/primecell.h"
|
||||
#include "hw/arm/machines-qom.h"
|
||||
#include "hw/core/split-irq.h"
|
||||
#include "hw/misc/arm_sysctl.h"
|
||||
#include "hw/net/lan9118.h"
|
||||
#include "hw/net/smc91c111.h"
|
||||
#include "hw/pci/pci.h"
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
#include "qemu/datadir.h"
|
||||
#include "hw/core/sysbus.h"
|
||||
#include "hw/arm/boot.h"
|
||||
#include "hw/arm/primecell.h"
|
||||
#include "hw/arm/machines-qom.h"
|
||||
#include "hw/misc/arm_sysctl.h"
|
||||
#include "hw/net/lan9118.h"
|
||||
#include "hw/i2c/i2c.h"
|
||||
#include "net/net.h"
|
||||
|
||||
@@ -36,7 +36,6 @@
|
||||
#include "monitor/qdev.h"
|
||||
#include "hw/core/sysbus.h"
|
||||
#include "hw/arm/boot.h"
|
||||
#include "hw/arm/primecell.h"
|
||||
#include "hw/arm/virt.h"
|
||||
#include "hw/arm/machines-qom.h"
|
||||
#include "hw/block/flash.h"
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
#include "system/runstate.h"
|
||||
#include "qemu/bitops.h"
|
||||
#include "hw/core/sysbus.h"
|
||||
#include "hw/misc/arm_sysctl.h"
|
||||
#include "migration/vmstate.h"
|
||||
#include "hw/arm/primecell.h"
|
||||
#include "qemu/log.h"
|
||||
#include "qemu/module.h"
|
||||
#include "qom/object.h"
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
#include "hw/core/sysbus.h"
|
||||
#include "hw/usb/usb.h"
|
||||
#include "hw/arm/boot.h"
|
||||
#include "hw/arm/primecell.h"
|
||||
#include "hw/char/pl011.h"
|
||||
#include "hw/intc/arm_gic.h"
|
||||
#include "hw/intc/arm_gicv3_common.h"
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
#ifndef PRIMECELL_H
|
||||
#define PRIMECELL_H
|
||||
|
||||
/* Declarations for ARM PrimeCell based periperals. */
|
||||
/* Also includes some devices that are currently only used by the
|
||||
ARM boards. */
|
||||
|
||||
/* arm_sysctl GPIO lines */
|
||||
#define ARM_SYSCTL_GPIO_MMC_WPROT 0
|
||||
#define ARM_SYSCTL_GPIO_MMC_CARDIN 1
|
||||
|
||||
#endif
|
||||
16
include/hw/misc/arm_sysctl.h
Normal file
16
include/hw/misc/arm_sysctl.h
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Status and system control registers for ARM RealView/Versatile boards.
|
||||
*
|
||||
* Copyright (c) Linaro Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef HW_MISC_ARM_SYSCTL_H
|
||||
#define HW_MISC_ARM_SYSCTL_H
|
||||
|
||||
/* arm_sysctl inbound GPIO lines */
|
||||
#define ARM_SYSCTL_GPIO_MMC_WPROT 0
|
||||
#define ARM_SYSCTL_GPIO_MMC_CARDIN 1
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user