Lines Matching +full:non +full:- +full:volatile

1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2000-2003
19 switch (info->flash_id & FLASH_VENDMASK) { in flash_print_info()
28 switch (info->flash_id & FLASH_TYPEMASK) { in flash_print_info()
39 info->size >> 20, info->sector_count); in flash_print_info()
42 for (i = 0; i < info->sector_count; i++) { in flash_print_info()
46 printf (" %08lX%s", info->start[i], in flash_print_info()
47 info->protect[i] ? " (RO)" : " "); in flash_print_info()
83 flashbase + 0x4000 + 0x2000 * (j - 1); in flash_init()
92 flashbase + 0x40000 + 0x40000 * (j - in flash_init()
115 #define MEM_FLASH_ADDR1 (*(volatile u16 *)(CONFIG_SYS_FLASH_BASE + (0x00000555<<1)))
116 #define MEM_FLASH_ADDR2 (*(volatile u16 *)(CONFIG_SYS_FLASH_BASE + (0x000002AA<<1)))
138 if (info->flash_id == FLASH_UNKNOWN) in flash_erase()
145 if ((info->flash_id & FLASH_VENDMASK) != in flash_erase()
152 if (info->protect[sect]) { in flash_erase()
177 /* arm simple, non interrupt dependent timer */ in flash_erase()
180 if (info->protect[sect] == 0) { /* not protected */ in flash_erase()
181 volatile u16 *addr = in flash_erase()
182 (volatile u16 *) (info->start[sect]); in flash_erase()
233 /* allow flash to settle - wait 10 ms */ in flash_erase()
247 volatile u16 *addr = (volatile u16 *) dest; in write_word()
279 /* arm simple, non interrupt dependent timer */ in write_word()
332 data = (*((volatile u8 *) addr) << 8) | *((volatile u8 *) in write_buff()
334 if ((rc = write_word (info, wp - 1, data)) != 0) { in write_buff()
339 cnt -= 1; in write_buff()
343 data = *((volatile u16 *) src); in write_buff()
349 cnt -= 2; in write_buff()
353 data = (*((volatile u8 *) src) << 8) | in write_buff()
354 *((volatile u8 *) (wp + 1)); in write_buff()
360 cnt -= 1; in write_buff()