Lines Matching +full:main +full:- +full:eeprom
1 // SPDX-License-Identifier: GPL-2.0
3 * ip22-nvram.c: NVRAM and serial EEPROM handling.
5 * Copyright (C) 2003 Ladislav Michl (ladis@linux-mips.org)
12 /* Control opcode for serial eeprom */
26 #define EEPROM_ECLK 0x04 /* EEPROM clock */
61 ser_cmd = cmd | (reg << (16 - BITS_IN_COMMAND)); in eeprom_cmd()
105 * Read specified register from main NVRAM
111 * 93CS56 Microwire Bus EEPROM 2048 Bit (128x16) */ in ip22_nvram_read()
112 return ip22_eeprom_read(&hpc3c0->eeprom, reg); in ip22_nvram_read()
117 tmp = hpc3c0->bbram[reg++] & 0xff; in ip22_nvram_read()
118 return (tmp << 8) | (hpc3c0->bbram[reg] & 0xff); in ip22_nvram_read()