[PATCH] arm: aspeed: add strap define `25HZ` of AST2500

Igor Kononenko posted 1 patch 3 years, 8 months ago
Test docker-quick@centos7 failed
Test docker-mingw@fedora failed
Test checkpatch failed
Test FreeBSD failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200811203502.20382-1-i.kononenko@yadro.com
Maintainers: Joel Stanley <joel@jms.id.au>, "Cédric Le Goater" <clg@kaod.org>, Peter Maydell <peter.maydell@linaro.org>, Andrew Jeffery <andrew@aj.id.au>
include/hw/misc/aspeed_scu.h | 1 +
1 file changed, 1 insertion(+)
[PATCH] arm: aspeed: add strap define `25HZ` of AST2500
Posted by Igor Kononenko 3 years, 8 months ago
Provide a definition for the "25Hz reference clock input mode" strap

Signed-off-by: Igor Kononenko <i.kononenko@yadro.com>
---
 include/hw/misc/aspeed_scu.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/hw/misc/aspeed_scu.h b/include/hw/misc/aspeed_scu.h
index a6739bb846..9cd530afa2 100644
--- a/include/hw/misc/aspeed_scu.h
+++ b/include/hw/misc/aspeed_scu.h
@@ -286,6 +286,7 @@ uint32_t aspeed_scu_get_apb_freq(AspeedSCUState *s);
 #define SCU_AST2500_HW_STRAP_ESPI_FLASH_ENABLE     (0x1 << 26)
 #define SCU_AST2500_HW_STRAP_ESPI_ENABLE           (0x1 << 25)
 #define SCU_AST2500_HW_STRAP_DDR4_ENABLE           (0x1 << 24)
+#define SCU_AST2500_HW_STRAP_25HZ_CLOCK_MODE       (0x1 << 23)
 
 #define SCU_AST2500_HW_STRAP_ACPI_ENABLE           (0x1 << 19)
 #define SCU_AST2500_HW_STRAP_USBCKI_FREQ           (0x1 << 18)
-- 
2.17.1


Re: [PATCH] arm: aspeed: add strap define `25HZ` of AST2500
Posted by Cédric Le Goater 3 years, 8 months ago
On 8/11/20 10:35 PM, Igor Kononenko wrote:
> Provide a definition for the "25Hz reference clock input mode" strap
> 
> Signed-off-by: Igor Kononenko <i.kononenko@yadro.com>

Reviewed-by: Cédric Le Goater <clg@kaod.org>

> ---
>  include/hw/misc/aspeed_scu.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/include/hw/misc/aspeed_scu.h b/include/hw/misc/aspeed_scu.h
> index a6739bb846..9cd530afa2 100644
> --- a/include/hw/misc/aspeed_scu.h
> +++ b/include/hw/misc/aspeed_scu.h
> @@ -286,6 +286,7 @@ uint32_t aspeed_scu_get_apb_freq(AspeedSCUState *s);
>  #define SCU_AST2500_HW_STRAP_ESPI_FLASH_ENABLE     (0x1 << 26)
>  #define SCU_AST2500_HW_STRAP_ESPI_ENABLE           (0x1 << 25)
>  #define SCU_AST2500_HW_STRAP_DDR4_ENABLE           (0x1 << 24)
> +#define SCU_AST2500_HW_STRAP_25HZ_CLOCK_MODE       (0x1 << 23)
>  
>  #define SCU_AST2500_HW_STRAP_ACPI_ENABLE           (0x1 << 19)
>  #define SCU_AST2500_HW_STRAP_USBCKI_FREQ           (0x1 << 18)
>