Home
last modified time | relevance | path

Searched refs:core99_bank (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/powerpc/platforms/powermac/
H A Dnvram.c74 static int core99_bank; variable
285 u8 __iomem *base = (u8 __iomem *)nvram_data + core99_bank*NVRAM_SIZE; in sm_erase_bank()
480 if (!memcmp(nvram_image, (u8*)nvram_data + core99_bank*NVRAM_SIZE, in core99_nvram_sync()
491 core99_bank = core99_bank ? 0 : 1; in core99_nvram_sync()
493 if (core99_erase_bank(core99_bank)) { in core99_nvram_sync()
494 printk("nvram: Error erasing bank %d\n", core99_bank); in core99_nvram_sync()
498 if (core99_write_bank(core99_bank, nvram_image)) in core99_nvram_sync()
499 printk("nvram: Error writing bank %d\n", core99_bank); in core99_nvram_sync()
528 core99_bank = (gen_bank0 < gen_bank1) ? 1 : 0; in core99_nvram_setup()
531 DBG("nvram: Active bank is: %d\n", core99_bank); in core99_nvram_setup()
[all …]