Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/ti Fix SoC revision detection. BeagleBone Black...
details: https://anonhg.NetBSD.org/src/rev/1974ae9dee0f
branches: trunk
changeset: 934014:1974ae9dee0f
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Wed Jun 03 18:02:03 2020 +0000
description:
Fix SoC revision detection. BeagleBone Black reports 1GHz as a supported
frequency again.
diffstat:
sys/arch/arm/ti/ti_cpufreq.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r c7bd4c184d9f -r 1974ae9dee0f sys/arch/arm/ti/ti_cpufreq.c
--- a/sys/arch/arm/ti/ti_cpufreq.c Wed Jun 03 16:00:00 2020 +0000
+++ b/sys/arch/arm/ti/ti_cpufreq.c Wed Jun 03 18:02:03 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ti_cpufreq.c,v 1.2 2019/10/29 10:54:10 jmcneill Exp $ */
+/* $NetBSD: ti_cpufreq.c,v 1.3 2020/06/03 18:02:03 jmcneill Exp $ */
/*-
* Copyright (c) 2019 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
#include "opt_soc.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ti_cpufreq.c,v 1.2 2019/10/29 10:54:10 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ti_cpufreq.c,v 1.3 2020/06/03 18:02:03 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -62,7 +62,7 @@
int len;
syscon_lock(ti_opp_syscon);
- rev = __SHIFTOUT(syscon_read_4(ti_opp_syscon, AM33XX_REV_OFFSET), AM33XX_REV_MASK);
+ rev = __BIT(__SHIFTOUT(syscon_read_4(ti_opp_syscon, AM33XX_REV_OFFSET), AM33XX_REV_MASK));
efuse = __SHIFTOUT(syscon_read_4(ti_opp_syscon, AM33XX_EFUSE_OFFSET), AM33XX_EFUSE_MASK);
syscon_unlock(ti_opp_syscon);
Home |
Main Index |
Thread Index |
Old Index