X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=board%2Ficu862%2Fflash.c;h=ca5bcf31af5c01607c69221f82c27a29765f0f88;hb=e3edcb36f14f0aabb6f50e96014d6877f73d64ea;hp=79e7cc28aeccb7e87237f61a5ef763c8167639fe;hpb=affae2bff825c1a8d2cfeaf7b270188d251d39d2;p=oweals%2Fu-boot.git diff --git a/board/icu862/flash.c b/board/icu862/flash.c index 79e7cc28ae..ca5bcf31af 100644 --- a/board/icu862/flash.c +++ b/board/icu862/flash.c @@ -104,7 +104,7 @@ unsigned long flash_init (void) /* monitor protection ON by default */ flash_protect(FLAG_PROTECT_SET, CFG_MONITOR_BASE, - CFG_MONITOR_BASE+CFG_MONITOR_LEN-1, + CFG_MONITOR_BASE+monitor_flash_len-1, &flash_info[0]); #endif @@ -251,7 +251,7 @@ static ulong flash_get_size (vu_long *addr, flash_info_t *info) value = addr[1]; /* device ID */ - switch (value) { + switch ((unsigned long)value) { case AMD_ID_F040B: info->flash_id += FLASH_AM040; info->sector_count = 8;