Lines Matching +full:battery +full:- +full:backed
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 * DEC MS02-NV (54-20948-01) battery backed-up NVRAM module for
16 * 0x000000 - 0x3fffff SRAM
17 * 0x400000 - 0x7fffff CSR
22 * 0x000000 - 0x0003ff diagnostic area, destroyed upon a reboot
23 * 0x000400 - ENDofRAM storage area, available to operating systems
29 * containing no valid data, and disables the battery resulting in
31 * for the start address of the user-available is 0x001000 which is
36 * operating system, a magic ID to distinguish a MS02-NV board from
42 * The firmware only handles the MS02-NV board if installed in the
46 * system -- only the 1st slot needs to be filled with a DRAM module.
47 * The MS02-NV board is ECC-protected, like other MS02 memory boards.
49 * The state of the battery as provided by the CSR is reflected on
50 * the two onboard LEDs. When facing the battery side of the board,
51 * with the LEDs at the top left and the battery at the bottom right
55 * left LED battery disable status: lit = enabled
56 * right LED battery condition status: lit = OK
59 /* MS02-NV iomem register offsets. */
62 /* MS02-NV CSR status bits. */
63 #define MS02NV_CSR_BATT_OK 0x01 /* battery OK */
64 #define MS02NV_CSR_BATT_OFF 0x02 /* battery disabled */
67 /* MS02-NV memory offsets. */
69 #define MS02NV_MAGIC 0x0003fc /* MS02-NV magic ID */
71 #define MS02NV_RAM 0x001000 /* user-exposed RAM start */
73 /* MS02-NV diagnostic status bits. */
81 /* MS02-NV general constants. */
82 #define MS02NV_ID 0x03021966 /* MS02-NV magic ID value */