diff options
author | jchandra <jchandra@FreeBSD.org> | 2013-01-24 14:33:25 +0000 |
---|---|---|
committer | jchandra <jchandra@FreeBSD.org> | 2013-01-24 14:33:25 +0000 |
commit | 6fe65a877ece9d2793ca4f75cbb71bfe83f69535 (patch) | |
tree | 29e9e870b4785f9b617d2f6d6771948ec644ee89 /sys/mips/nlm/hal | |
parent | 9f6a60e0001aac859ac7ea8f3b3bf962811839a6 (diff) | |
download | FreeBSD-src-6fe65a877ece9d2793ca4f75cbb71bfe83f69535.zip FreeBSD-src-6fe65a877ece9d2793ca4f75cbb71bfe83f69535.tar.gz |
Broadcom XLP updates for the new firmware
Support few more versions of board firmware. In case the security
block is disabled, enable it at boot. Also increase the excluded
memory region to cover the area used by the firmware to initialize
devices.
Diffstat (limited to 'sys/mips/nlm/hal')
-rw-r--r-- | sys/mips/nlm/hal/sys.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/mips/nlm/hal/sys.h b/sys/mips/nlm/hal/sys.h index adfd8a8..2092d37 100644 --- a/sys/mips/nlm/hal/sys.h +++ b/sys/mips/nlm/hal/sys.h @@ -140,5 +140,18 @@ enum { INVALID_DFS_DEVICE = 0xFF }; +static __inline +void nlm_sys_enable_block(uint64_t sys_base, int block) +{ + uint32_t dfsdis, mask; + + mask = 1 << block; + dfsdis = nlm_read_sys_reg(sys_base, SYS_DFS_DIS_CTRL); + if ((dfsdis & mask) == 0) + return; /* already enabled, nothing to do */ + dfsdis &= ~mask; + nlm_write_sys_reg(sys_base, SYS_DFS_DIS_CTRL, dfsdis); +} + #endif #endif |