summaryrefslogtreecommitdiff
path: root/sys/src/9/bcm64/dat.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2019-08-19 16:42:20 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2019-08-19 16:42:20 +0200
commit6280c0f17bf3919cf6c2506fec6edfa0a7ec10fe (patch)
tree54c78088d5a59d59e19082ce5f31c849292545ba /sys/src/9/bcm64/dat.h
parenta611fe20e16318b4b61dc52b4f71e59ccbc203d5 (diff)
bcm64: do not use OTP_BOOTMODE_REG to determine OSC frequency (thanks richard miller)
the register does not seem to be accessible on the Rpi 3b. so instead hardcode oscfreq in the Soc structure.
Diffstat (limited to 'sys/src/9/bcm64/dat.h')
-rw-r--r--sys/src/9/bcm64/dat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/9/bcm64/dat.h b/sys/src/9/bcm64/dat.h
index 2d38b3139..8f1b923c3 100644
--- a/sys/src/9/bcm64/dat.h
+++ b/sys/src/9/bcm64/dat.h
@@ -250,6 +250,7 @@ struct Soc { /* SoC dependent configuration */
uintptr virtio;
uintptr armlocal;
uintptr pciwin;
+ int oscfreq;
};
extern Soc soc;