Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-9]: src/sys/arch/arm/ti Pull up following revision(s) (requested ...



details:   https://anonhg.NetBSD.org/src/rev/2776d4a99a60
branches:  netbsd-9
changeset: 963927:2776d4a99a60
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Jun 07 13:20:01 2020 +0000

description:
Pull up following revision(s) (requested by jmcneill in ticket #943):

        sys/arch/arm/ti/ti_cpufreq.c: revision 1.3

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 9f154ea13b8f -r 2776d4a99a60 sys/arch/arm/ti/ti_cpufreq.c
--- a/sys/arch/arm/ti/ti_cpufreq.c      Sun Jun 07 13:15:05 2020 +0000
+++ b/sys/arch/arm/ti/ti_cpufreq.c      Sun Jun 07 13:20:01 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ti_cpufreq.c,v 1.2.2.2 2019/11/27 13:46:44 martin Exp $ */
+/* $NetBSD: ti_cpufreq.c,v 1.2.2.3 2020/06/07 13:20:01 martin 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.2.2 2019/11/27 13:46:44 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ti_cpufreq.c,v 1.2.2.3 2020/06/07 13:20:01 martin 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