Lines Matching +full:- +full:sram

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
19 * Within the SRAM area the following ranges are forced by the system
22 * 0x000000 - 0x0003ff diagnostic area, destroyed upon a reboot
23 * 0x000400 - ENDofRAM storage area, available to operating systems
28 * ID value is found, the firmware considers the SRAM clean, i.e.
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
38 * as well as the size of SRAM available, which can be 1MiB or 2MiB
42 * The firmware only handles the MS02-NV board if installed in the
44 * stored in the SRAM cannot be relied upon. But from the hardware
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.
59 /* MS02-NV iomem register offsets. */
62 /* MS02-NV CSR status bits. */
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. */
74 #define MS02NV_DIAG_TEST 0x01 /* SRAM test done (?) */
75 #define MS02NV_DIAG_RO 0x02 /* SRAM r/o test done */
76 #define MS02NV_DIAG_RW 0x04 /* SRAM r/w test done */
77 #define MS02NV_DIAG_FAIL 0x08 /* SRAM test failed */
78 #define MS02NV_DIAG_SIZE_MASK 0xf0 /* SRAM size mask */
79 #define MS02NV_DIAG_SIZE_SHIFT 0x10 /* SRAM size shift (left) */
81 /* MS02-NV general constants. */
82 #define MS02NV_ID 0x03021966 /* MS02-NV magic ID value */