diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2021-02-26 12:34:00 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2021-02-26 12:34:00 +0000 |
commit | c00e49c1fa6b8677b232e45cdc4bed28ee8acee4 (patch) | |
tree | 16fcca116a1724103dbfcdc7f1b026f07b654d46 /sys/dev/ic/bwfmreg.h | |
parent | 178a87101bf8f0868f13066d96dd7df546f974c5 (diff) |
Read and parse OTP on the BCM4378. There are quite a few firmware and
nvram files used for the different Apple devices. The device tree and
the OTP hold the information which of those we will have to use. For
now this information will simply be printed, but depending on how we
choose to do the firmare distribution we could use it for loadfirmware().
Diffstat (limited to 'sys/dev/ic/bwfmreg.h')
-rw-r--r-- | sys/dev/ic/bwfmreg.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/ic/bwfmreg.h b/sys/dev/ic/bwfmreg.h index ff0ffc12452..997caf5c3a5 100644 --- a/sys/dev/ic/bwfmreg.h +++ b/sys/dev/ic/bwfmreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bwfmreg.h,v 1.20 2021/02/24 10:13:08 patrick Exp $ */ +/* $OpenBSD: bwfmreg.h,v 1.21 2021/02/26 12:33:59 patrick Exp $ */ /* * Copyright (c) 2010-2016 Broadcom Corporation * Copyright (c) 2016,2017 Patrick Wildt <patrick@blueri.se> @@ -90,6 +90,10 @@ #define BWFM_ARMCR4_BANKINFO_BSZ_MULT 8192 #define BWFM_ARMCR4_BANKPDA 0x004C +/* GCI (OTP) registers */ +#define BWFM_OTP_SIZE 64 +#define BWFM_OTP_4378_BASE 0x1120 + /* SOCRAM registers */ #define BWFM_SOCRAM_COREINFO 0x0000 #define BWFM_SOCRAM_COREINFO_SRBSZ_BASE 14 |