From nobody Tue Feb 10 05:45:33 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.128.51 as permitted sender) client-ip=209.85.128.51; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wm1-f51.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.51 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1615045033; cv=none; d=zohomail.com; s=zohoarc; b=JpZUYVTc7qAGyurdZKIH44sAGXS1AIVkiSSmYoGv4v2iVq/9csGU9ZfIJc32uGdDX4x9KlniQm9/lPzCYrpHwwj8dCyCsrRUqlIiRfp5mwfP/BIljqIhilqb1wCabFpF5KQU/nIQArtTxqiGS5rkbcoNZ5igLEcPgJA7ORZL0Kc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615045033; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=uEOID6/SjEQa+nafaAE6r6SaX3JtENvz2cvvX61NoV4=; b=g7R3fc0VzGJpVBw5a6HzKqhSmFXpUWUSh0kCtpvVE2i17P5bDf3eHQ+q2ghzBhLcZdYtfHyP8T7+huptYO7l0CqtA3fVwzREZGT5EzW5UBaLPUjason0Pa5sWCueKI/68a6Y563gh+Y0K9v/6vzgKr/F1eqen+aQzo1KfzSlLUg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.128.51 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by mx.zohomail.com with SMTPS id 1615045033805679.2083844178926; Sat, 6 Mar 2021 07:37:13 -0800 (PST) Received: by mail-wm1-f51.google.com with SMTP id r15-20020a05600c35cfb029010e639ca09eso1139646wmq.1 for ; Sat, 06 Mar 2021 07:37:13 -0800 (PST) Return-Path: Return-Path: Received: from localhost.localdomain (68.red-83-57-175.dynamicip.rima-tde.net. [83.57.175.68]) by smtp.gmail.com with ESMTPSA id z7sm9539963wrt.70.2021.03.06.07.37.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Mar 2021 07:37:11 -0800 (PST) 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=uEOID6/SjEQa+nafaAE6r6SaX3JtENvz2cvvX61NoV4=; b=qYAxecm3tMNtYSed3tul9cezGZKGJoiOLloFZQzksgnPo2fOZ0fOEKVKwb1lSReAKx btkvvg9ZYOZXZFdodmo3jE1W66wwPInzju0mbkqmL0kNWKKIc/Q5J5Gdcw2Kzs490GLJ 7v+epxuPRM7zPCPY0aE2h+1Y9dvQ0tKgKRQ2ePncZO+6+5rnJZWsUGHFy61vWbshgePU DSUZZ9JWv9soNhsGELJnS/x1mMhFAlSaTe/W+Y54YoXO07eBuZE6fGA0k05hK4basSub Bbm7tVJY4n1yJoA7sHbIAyrFy6YN9Q+Bppii+3DoBAeFEkP3jRrxjFWQ4iOL6ygtdfEz uJEA== 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=uEOID6/SjEQa+nafaAE6r6SaX3JtENvz2cvvX61NoV4=; b=G+ua5tUfnMFaxUREE7AbxFaj3SBnTV1Xlvna/G7IBhi7ohAlGm32SsSzto1/m1Bq6P msPeftYcwKQmpdaXvR1iV3MDQkEzqxyKOCTvi81l5nOyTFK1VQuHGjveowOj2oQ6MEmD 8gIo6yLHSH2gdsOmttqVXHR+kT7sutRgNVfGeMk2Z5W7ONiSvIxVvNoxUDm1G9L792+p ue7DFied3NRVvWKeCU25OPy8ApRSP5hSCJniKT0ntivqm826o+RaxNNiJ5wdsqxWXmVt my7lQHFX/Va+Jq2p3EYLRUI8Na/a8bnlVfi6bKnDRlW64UiQxqoRELThCKzNnTT4o4RK yBcA== X-Gm-Message-State: AOAM532UDYIMe5CxJetTLoSx1mI0VI5AFEjNiRfK3gwbimP4acz2/xZN QnsPG9AiVzKwaLT9gYQfEoA= X-Google-Smtp-Source: ABdhPJxhM+4B66SdsP+hw7kWUDpL6seuAY3Fv8pCJ210A+iZOTo790zEeDrrDSfMsbpr8VFaccWbEQ== X-Received: by 2002:a1c:b783:: with SMTP id h125mr14250831wmf.106.1615045032066; Sat, 06 Mar 2021 07:37:12 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Magnus Damm , Yoshinori Sato , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Maydell , Richard Henderson , Paolo Bonzini Subject: [PULL 10/14] hw/timer: Introduce SH_TIMER Kconfig entry Date: Sat, 6 Mar 2021 16:36:17 +0100 Message-Id: <20210306153621.2393879-11-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210306153621.2393879-1-f4bug@amsat.org> References: <20210306153621.2393879-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) We want to be able to use the 'SH4' config for architecture specific features. Add more fine-grained selection by adding a CONFIG_SH_TIMER selector for the SH4 timer control unit. Add the missing MAINTAINERS entries. Suggested-by: Peter Maydell Reviewed-by: Peter Maydell Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Acked-by: Paolo Bonzini Message-Id: <20210222141514.2646278-6-f4bug@amsat.org> --- MAINTAINERS | 2 ++ hw/sh4/Kconfig | 2 +- hw/timer/Kconfig | 4 ++++ hw/timer/meson.build | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 8405741e910..4a722c44b1b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1400,6 +1400,7 @@ S: Odd Fixes F: hw/char/sh_serial.c F: hw/sh4/r2d.c F: hw/intc/sh_intc.c +F: hw/timer/sh_timer.c F: include/hw/sh4/sh_intc.h =20 Shix @@ -1409,6 +1410,7 @@ S: Odd Fixes F: hw/char/sh_serial.c F: hw/sh4/shix.c F: hw/intc/sh_intc.c +F: hw/timer/sh_timer.c F: include/hw/sh4/sh_intc.h =20 SPARC Machines diff --git a/hw/sh4/Kconfig b/hw/sh4/Kconfig index 47240aa97b7..e569470a614 100644 --- a/hw/sh4/Kconfig +++ b/hw/sh4/Kconfig @@ -21,7 +21,7 @@ config SH7750 bool select SH_INTC select SH_SCI + select SH_TIMER =20 config SH4 bool - select PTIMER diff --git a/hw/timer/Kconfig b/hw/timer/Kconfig index 8749edfb6a5..18936ef55bf 100644 --- a/hw/timer/Kconfig +++ b/hw/timer/Kconfig @@ -36,6 +36,10 @@ config CMSDK_APB_DUALTIMER bool select PTIMER =20 +config SH_TIMER + bool + select PTIMER + config RENESAS_TMR bool =20 diff --git a/hw/timer/meson.build b/hw/timer/meson.build index be343f68fed..26c2701fd78 100644 --- a/hw/timer/meson.build +++ b/hw/timer/meson.build @@ -30,7 +30,7 @@ softmmu_ss.add(when: 'CONFIG_PUV3', if_true: files('puv3_ost.c')) softmmu_ss.add(when: 'CONFIG_PXA2XX', if_true: files('pxa2xx_timer.c')) softmmu_ss.add(when: 'CONFIG_RASPI', if_true: files('bcm2835_systmr.c')) -softmmu_ss.add(when: 'CONFIG_SH4', if_true: files('sh_timer.c')) +softmmu_ss.add(when: 'CONFIG_SH_TIMER', if_true: files('sh_timer.c')) softmmu_ss.add(when: 'CONFIG_SLAVIO', if_true: files('slavio_timer.c')) softmmu_ss.add(when: 'CONFIG_STM32F2XX_TIMER', if_true: files('stm32f2xx_t= imer.c')) softmmu_ss.add(when: 'CONFIG_XILINX', if_true: files('xilinx_timer.c')) --=20 2.26.2