From nobody Sat Oct 4 19:29:41 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1570468852; cv=none; d=zoho.com; s=zohoarc; b=NZrnVFoYtPrjcl+lFx4v4tIXhk2lvy0IlckBUofygvd1ZnoI5JAeRBkDCuof3ycsC+8E5MBS8aK8gMRIaXDSayb+8EcQ3GHDzbKhz3KQvnV32z8rO66FAWDs9Ea1wPB3PFM/Emka6FBS3zYWRIVUugqIDrV0fMv3D2dEHYvlzz0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1570468852; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=h9QPSdYlAgh15MXqatIxr3w1iFSHreJWGKOTOlnlE1I=; b=L9GGKhCbjy3zOAeSBEftKcH7OWJHAjxl5RKVLlXnXjYlJ0AIlmfvJrTqnRuu0Em93aCnR4fA/Ev9pCVkmD74vGgkRnTICNRWB3s8qjQYwy6wDbNNokbafqKExOvNwnLfKbxegfOVcOzxL5NmCZDWBxl/j07uk3Dv5DVjIthVQFU= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1570468852552779.8689626774129; Mon, 7 Oct 2019 10:20:52 -0700 (PDT) Received: from localhost ([::1]:48064 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHWgj-0003DU-Cq for importer@patchew.org; Mon, 07 Oct 2019 13:20:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37021) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHWTJ-0006oF-V6 for qemu-devel@nongnu.org; Mon, 07 Oct 2019 13:06:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iHWTI-0004vn-In for qemu-devel@nongnu.org; Mon, 07 Oct 2019 13:06:57 -0400 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:40868) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iHWTI-0004vX-CS; Mon, 07 Oct 2019 13:06:56 -0400 Received: by mail-wr1-x442.google.com with SMTP id h4so7494229wrv.7; Mon, 07 Oct 2019 10:06:56 -0700 (PDT) Received: from x1w.redhat.com (46.red-83-42-66.dynamicip.rima-tde.net. [83.42.66.46]) by smtp.gmail.com with ESMTPSA id x5sm14036603wrt.75.2019.10.07.10.06.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2019 10:06:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=h9QPSdYlAgh15MXqatIxr3w1iFSHreJWGKOTOlnlE1I=; b=m36v3Zb/J0IfGdJFu2+4hn+/UczY3B6eSt/YcSsm5tXpqxY1MMQZSazW7e21aXpBxc o/INrxvyIe6/Tvbc6qdhoQpLNxxN5KTcCInpe7Y9mrgqFENcnSKHMbBy4HerS5FYSoCj 2rlNzJfGB1jlhVid5ibz2dgjhFq63D/Zn2dZrMv5A6UQfXLDqW/PWwi2Tmb0PNJaTJsX J4qbPFug3ONq+PNYqx87AHVKl13fj1DMymb6xc66xO4mwsJCtZN5PX2CkspPaHINXqOY 845a5a0KJf7t7JV77JCt2P0DlcLVTVgnsv9TtPN+LQF9q06MUko96fmVnU0RUv0IG5Ns I4eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=h9QPSdYlAgh15MXqatIxr3w1iFSHreJWGKOTOlnlE1I=; b=VUVL09sCWDNZMyp/4y9FrZ2PaPvURyL9AIFcPjfElK3YPwDmZGM1WcblomleJcCMRT eSqf92oCFZZR7seMksJBTfU9zn5ooef6/gRSfEbbRARyfjBLf75srjRE1IqSCPwkmRTt XBTUD2Okz6IO4IksfgiWeDMuevLbLpv/qB4wI4KIQTSlDhN16P6zUtkojl0imm+GFKj6 Hp2Gv7duPp6paqAAFNNqLpM4OvUh58DKxMsajrYhwfzYNNc79txvUEhRyWEDPqiDIQn1 pMM86NDW5U0iS1vQ4PpOxZHeVVJ5UhjxgSK2+a85poYOAz+YQOOHFcg/tw5Qukx964Hh XZcw== X-Gm-Message-State: APjAAAUPkdBNBWYw3kwBh92dXGU7yVUs5icfnZu/M4bBg/hypjHzuLeb R51e8qnl6Pb9gsq4cVb/b2Jiy1dQsG0= X-Google-Smtp-Source: APXvYqw+qL2fPdGgBj4SUBqgBbzw5lkzAcFdayJvnJwnSluIe1brOdlO1vGk1RNReFk2Bi2Cn/BJSw== X-Received: by 2002:adf:e88f:: with SMTP id d15mr8093875wrm.324.1570468015165; Mon, 07 Oct 2019 10:06:55 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 3/3] hw: Move BCM2835 AUX device from hw/char/ to hw/misc/ Date: Mon, 7 Oct 2019 19:06:46 +0200 Message-Id: <20191007170646.14961-4-f4bug@amsat.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191007170646.14961-1-f4bug@amsat.org> References: <20191007170646.14961-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::442 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Alistair Francis , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Andrew Baumann , qemu-arm@nongnu.org, Paolo Bonzini , Marc-Andre Lureau , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) The BCM2835 AUX device is a MUX between one UART block and two SPI blocks. Move it to the hw/misc/ folder. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/char/Makefile.objs | 1 - hw/char/trace-events | 4 ---- hw/misc/Makefile.objs | 1 + hw/{char =3D> misc}/bcm2835_aux.c | 2 +- hw/misc/trace-events | 4 ++++ include/hw/arm/bcm2835_peripherals.h | 2 +- include/hw/{char =3D> misc}/bcm2835_aux.h | 0 7 files changed, 7 insertions(+), 7 deletions(-) rename hw/{char =3D> misc}/bcm2835_aux.c (99%) rename include/hw/{char =3D> misc}/bcm2835_aux.h (100%) diff --git a/hw/char/Makefile.objs b/hw/char/Makefile.objs index 5bd93bde9f..d6b8ce5e60 100644 --- a/hw/char/Makefile.objs +++ b/hw/char/Makefile.objs @@ -20,7 +20,6 @@ obj-$(CONFIG_SH4) +=3D sh_serial.o obj-$(CONFIG_PSERIES) +=3D spapr_vty.o obj-$(CONFIG_DIGIC) +=3D digic-uart.o obj-$(CONFIG_STM32F2XX_USART) +=3D stm32f2xx_usart.o -obj-$(CONFIG_RASPI) +=3D bcm2835_aux.o =20 common-obj-$(CONFIG_RASPI) +=3D bcm2835_miniuart.o common-obj-$(CONFIG_CMSDK_APB_UART) +=3D cmsdk-apb-uart.o diff --git a/hw/char/trace-events b/hw/char/trace-events index 0c86a907df..f1e6dd9918 100644 --- a/hw/char/trace-events +++ b/hw/char/trace-events @@ -1,9 +1,5 @@ # See docs/devel/tracing.txt for syntax documentation. =20 -# bcm2835_aux.c -bcm2835_aux_read(uint64_t addr, uint32_t value) "read addr 0x%"PRIx64" val= ue 0x%x" -bcm2835_aux_write(uint64_t addr, uint32_t value) "read addr 0x%"PRIx64" va= lue 0x%x" - # bcm2835_miniuart.c bcm2835_miniuart_read(uint64_t addr, uint32_t value) "read addr 0x%"PRIx64= " value 0x%x" bcm2835_miniuart_write(uint64_t addr, uint32_t value) "read addr 0x%"PRIx6= 4" value 0x%x" diff --git a/hw/misc/Makefile.objs b/hw/misc/Makefile.objs index a150680966..9ffeee7f46 100644 --- a/hw/misc/Makefile.objs +++ b/hw/misc/Makefile.objs @@ -50,6 +50,7 @@ common-obj-$(CONFIG_OMAP) +=3D omap_gpmc.o common-obj-$(CONFIG_OMAP) +=3D omap_l4.o common-obj-$(CONFIG_OMAP) +=3D omap_sdrc.o common-obj-$(CONFIG_OMAP) +=3D omap_tap.o +common-obj-$(CONFIG_RASPI) +=3D bcm2835_aux.o common-obj-$(CONFIG_RASPI) +=3D bcm2835_mbox.o common-obj-$(CONFIG_RASPI) +=3D bcm2835_property.o common-obj-$(CONFIG_RASPI) +=3D bcm2835_rng.o diff --git a/hw/char/bcm2835_aux.c b/hw/misc/bcm2835_aux.c similarity index 99% rename from hw/char/bcm2835_aux.c rename to hw/misc/bcm2835_aux.c index a1ca9741d6..83698e2ece 100644 --- a/hw/char/bcm2835_aux.c +++ b/hw/misc/bcm2835_aux.c @@ -12,7 +12,7 @@ */ =20 #include "qemu/osdep.h" -#include "hw/char/bcm2835_aux.h" +#include "hw/misc/bcm2835_aux.h" #include "hw/irq.h" #include "hw/qdev-properties.h" #include "hw/registerfields.h" diff --git a/hw/misc/trace-events b/hw/misc/trace-events index 74276225f8..0756d58162 100644 --- a/hw/misc/trace-events +++ b/hw/misc/trace-events @@ -1,5 +1,9 @@ # See docs/devel/tracing.txt for syntax documentation. =20 +# bcm2835_aux.c +bcm2835_aux_read(uint64_t addr, uint32_t value) "read addr 0x%"PRIx64" val= ue 0x%x" +bcm2835_aux_write(uint64_t addr, uint32_t value) "read addr 0x%"PRIx64" va= lue 0x%x" + # eccmemctl.c ecc_mem_writel_mer(uint32_t val) "Write memory enable 0x%08x" ecc_mem_writel_mdr(uint32_t val) "Write memory delay 0x%08x" diff --git a/include/hw/arm/bcm2835_peripherals.h b/include/hw/arm/bcm2835_= peripherals.h index 6b17f6a382..7aae515d7e 100644 --- a/include/hw/arm/bcm2835_peripherals.h +++ b/include/hw/arm/bcm2835_peripherals.h @@ -13,7 +13,7 @@ =20 #include "hw/sysbus.h" #include "hw/char/pl011.h" -#include "hw/char/bcm2835_aux.h" +#include "hw/misc/bcm2835_aux.h" #include "hw/display/bcm2835_fb.h" #include "hw/dma/bcm2835_dma.h" #include "hw/intc/bcm2835_ic.h" diff --git a/include/hw/char/bcm2835_aux.h b/include/hw/misc/bcm2835_aux.h similarity index 100% rename from include/hw/char/bcm2835_aux.h rename to include/hw/misc/bcm2835_aux.h --=20 2.21.0