亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? u-boot-1.1.4-imx21-jk1.patch

?? 基于freescale imx21 uboot啟動的補丁程序
?? PATCH
?? 第 1 頁 / 共 5 頁
字號:
diff -X linux/Documentation/dontdiff -Nur u-boot-1.1.4/board/fs3/config.mk u-boot-1.1.4.imx21/board/fs3/config.mk--- u-boot-1.1.4/board/fs3/config.mk	1970-01-01 01:00:00.000000000 +0100+++ u-boot-1.1.4.imx21/board/fs3/config.mk	2006-07-03 22:25:00.000000000 +0200@@ -0,0 +1,23 @@+#+# board/mx21ads/config.mk+#+# (C) Copyright 2006 Jochen Karrer+#+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License as+# published by the Free Software Foundation; either version 2 of+# the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,+# MA 02111-1307 USA++TEXT_BASE = 0xC0400000+diff -X linux/Documentation/dontdiff -Nur u-boot-1.1.4/board/fs3/flash.c u-boot-1.1.4.imx21/board/fs3/flash.c--- u-boot-1.1.4/board/fs3/flash.c	1970-01-01 01:00:00.000000000 +0100+++ u-boot-1.1.4.imx21/board/fs3/flash.c	2006-07-11 15:11:34.000000000 +0200@@ -0,0 +1,596 @@+/*+ * (C) 2000-2004 Wolfgang Denk, DENX Software Engineering, wd@denx.de.+ * (C) 2003 August Hoeraendl, Logotronic GmbH+ *+ * See file CREDITS for list of people who contributed to this+ * project.+ *+ * This program is free software; you can redistribute it and/or+ * modify it under the terms of the GNU General Public License as+ * published by the Free Software Foundation; either version 2 of+ * the License, or (at your option) any later version.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the+ * GNU General Public License for more details.+ *+ * You should have received a copy of the GNU General Public License+ * along with this program; if not, write to the Free Software+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,+ * MA 02111-1307 USA+ */++#undef CONFIG_FLASH_16BIT++#include <common.h>++//define FLASH_BANK_SIZE MX21FS3_FLASH_BANK_SIZE+#define MAIN_SECT_SIZE  MX21FS3_FLASH_SECT_SIZE++flash_info_t flash_info[CFG_MAX_FLASH_BANKS];	/* info for FLASH chips   */++/*+ * NOTE - CONFIG_FLASH_16BIT means the CPU interface is 16-bit, it+ *        has nothing to do with the flash chip being 8-bit or 16-bit.+ */+#ifdef CONFIG_FLASH_16BIT+typedef unsigned short FLASH_PORT_WIDTH;+typedef volatile unsigned short FLASH_PORT_WIDTHV;++#define	FLASH_ID_MASK	0xFFFF+#else+typedef unsigned long FLASH_PORT_WIDTH;+typedef volatile unsigned long FLASH_PORT_WIDTHV;++#define	FLASH_ID_MASK	0xFFFFFFFF+#endif++#define FPW	FLASH_PORT_WIDTH+#define FPWV	FLASH_PORT_WIDTHV++#define ORMASK(size) ((-size) & OR_AM_MSK)++/*-----------------------------------------------------------------------+ * Functions+ */+#if 0+static ulong flash_get_size(FPWV * addr, flash_info_t * info);+static void flash_get_offsets(ulong base, flash_info_t * info);+#endif++static void flash_reset(flash_info_t * info);+static int write_word_amd(flash_info_t * info, FPWV * dest, FPW data);+#define write_word(in, de, da)   write_word_amd(in, de, da)+#ifdef CFG_FLASH_PROTECTION+static void flash_sync_real_protect(flash_info_t * info);+#endif++/*-----------------------------------------------------------------------+ * flash_init()+ *+ * sets up flash_info and returns size of FLASH (bytes)+ */++static ulong +flash_get_size (FPWV *addr, flash_info_t * info)+{+       	FPW vendor_id,device_id;+	int i;+	int nr_regions;+	ulong flashbase = (ulong)addr;+	ulong offset;+	int dir = 1;++        /* Write auto select command: read Manufacturer ID */+	addr[0x0555] = (FPW)0x00AA00AA;+        addr[0x02AA] = (FPW)0x00550055;+        addr[0x0555] = (FPW)0x00900090;++	vendor_id = addr[0];+	device_id = addr[1];+	if(vendor_id == (FPW)AMD_MANUFACT) {+		info->flash_id = FLASH_MAN_AMD; +	}++        switch (device_id) {+        	case (FPW) (AMD_ID_LV160T): +                	info->flash_id += FLASH_AM160LV;+			dir = -1;+			break;++        	case (FPW) (AMD_ID_LV160B):+                	info->flash_id += FLASH_AM160LV;+			dir=1;+			break;+	}+	info->size = 0;+	info->sector_count = 0;+	addr[0] = (FPW) 0x00FF00FF;     /* restore read mode */+	addr[0x055] = (FPW)0x00980098;+	nr_regions = addr[0x2c] & 0xff;+	if(nr_regions > 4) {+		printf("Illegal number of erase regions (%d)\n",nr_regions);+		nr_regions = 4;+	}+	for(i = 0,offset = 0;i<4;i++) {+		int j;+		int idx; +		uint16_t nsects;+		uint32_t sectsize;++		if(dir==1) {+			idx = i<<2;+		} else {+			idx = (3-i)<<2;+		}+		nsects = (addr[0x2d + idx] & 0xff) + 256 * (addr[0x2e + idx] & 0xff) + 1; +		sectsize = (addr[0x2f + idx] & 0xff) + 256 *(addr[0x30 + idx] & 0xff);+		sectsize *= 256;+		if(!sectsize) {+			continue;+		}+		if(sizeof(FPW) == 4) {+			sectsize <<= 1;+		}+		for (j = 0; j < nsects; j++) {+			info->start[info->sector_count] = flashbase + info->size;+			info->size+=sectsize;+			info->sector_count++;+		}+	}+	addr[0] = (FPW) 0x00FF00FF;     /* restore read mode */+}++ulong+flash_init(void)+{+	int i;+	ulong size = 0;++	for (i = 0; i < CFG_MAX_FLASH_BANKS; i++) {+		ulong flashbase = 0;+		flash_info[i].size = 0;+		flash_info[i].sector_count = 0;+		memset(flash_info[i].protect, 0, CFG_MAX_FLASH_SECT);+		switch (i) {+		case 0:+			flashbase = MX21FS3_FLASH_BASE;+			break;+		default:+			panic("configured too many flash banks!\n");+			break;+		}+		flash_get_size((FPW*)flashbase,&flash_info[i]);+	}++	/* Protect monitor and environment sectors */+	flash_protect(FLAG_PROTECT_SET,+		      CFG_FLASH_BASE,+		      CFG_FLASH_BASE + _bss_start - _armboot_start,+		      &flash_info[0]);++	flash_protect(FLAG_PROTECT_SET,+		      CFG_ENV_ADDR,+		      CFG_ENV_ADDR + CFG_ENV_SIZE - 1, &flash_info[0]);++	return size;+}++/*-----------------------------------------------------------------------+ */+static void+flash_reset(flash_info_t * info)+{+	FPWV *base = (FPWV *) (info->start[0]);++	/* Put FLASH back in read mode */+	if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_INTEL)+		*base = (FPW) 0x00FF00FF;	/* Intel Read Mode */+	else if ((info->flash_id & FLASH_VENDMASK) == FLASH_MAN_AMD)+		*base = (FPW) 0x00F000F0;	/* AMD Read Mode */+}++/*-----------------------------------------------------------------------+ */++void+flash_print_info(flash_info_t * info)+{+	int i;+	uchar *boottype;+	uchar *bootletter;+	uchar *fmt;+	uchar botbootletter[] = "B";+	uchar topbootletter[] = "T";+	uchar botboottype[] = "bottom boot sector";+	uchar topboottype[] = "top boot sector";++	if (info->flash_id == FLASH_UNKNOWN) {+		printf("missing or unknown FLASH type\n");+		return;+	}++	switch (info->flash_id & FLASH_VENDMASK) {+	case FLASH_MAN_AMD:+		printf("AMD ");+		break;+	case FLASH_MAN_BM:+		printf("BRIGHT MICRO ");+		break;+	case FLASH_MAN_FUJ:+		printf("FUJITSU ");+		break;+	case FLASH_MAN_SST:+		printf("SST ");+		break;+	case FLASH_MAN_STM:+		printf("STM ");+		break;+	case FLASH_MAN_INTEL:+		printf("INTEL ");+		break;+	default:+		printf("Unknown Vendor ");+		break;+	}++	/* check for top or bottom boot, if it applies */+	if (info->flash_id & FLASH_BTYPE) {+		boottype = botboottype;+		bootletter = botbootletter;+	} else {+		boottype = topboottype;+		bootletter = topbootletter;+	}++	switch (info->flash_id & FLASH_TYPEMASK) {+	case FLASH_AM640U:+		fmt = "29LV641D (64 Mbit, uniform sectors)\n";+		break;++	case FLASH_AM160LV:+		fmt = "29LV160D%s (16 Mbit non uniform sectors)\n";+		break;++	default:+		fmt = "Unknown Chip Type\n";+		printf(" Unknown type %04x\n",info->flash_id);+		break;+	}++	printf(fmt, bootletter, boottype);++	printf("  Size: %ld MB in %d Sectors\n",+	       info->size >> 20, info->sector_count);++	printf("  Sector Start Addresses:");++	for (i = 0; i < info->sector_count; ++i) {+		if ((i % 5) == 0) {+			printf("\n   ");+		}++		printf(" %08lX%s", info->start[i],+		       info->protect[i] ? " (RO)" : "     ");+	}++	printf("\n");+}++/*-----------------------------------------------------------------------+ */+++//#ifdef CFG_FLASH_PROTECTION++/*-----------------------------------------------------------------------+ */++int+flash_erase(flash_info_t * info, int s_first, int s_last)+{+	FPWV *addr;+	int flag, prot, sect;+	int intel = (info->flash_id & FLASH_VENDMASK) == FLASH_MAN_INTEL;+	ulong start, now, last;+	int rcode = 0;++	if ((s_first < 0) || (s_first > s_last)) {+		if (info->flash_id == FLASH_UNKNOWN) {+			printf("- missing\n");+		} else {+			printf("- no sectors to erase\n");+		}+		return 1;+	}++	switch (info->flash_id & FLASH_TYPEMASK) {+	case FLASH_AM640U:+		break;+	case FLASH_AM160LV:+		break;+	case FLASH_UNKNOWN:+	default:+		printf("Can't erase unknown flash type %08lx - aborted\n",+		       info->flash_id);+		return 1;+	}++	prot = 0;+	for (sect = s_first; sect <= s_last; ++sect) {+		if (info->protect[sect]) {+			prot++;+		}+	}++	if (prot) {+		printf("- Warning: %d protected sectors will not be erased!\n",+		       prot);+	} else {+		printf("\n");+	}++	start = get_timer(0);+	last = start;++	/* Start erase on unprotected sectors */+	for (sect = s_first; sect <= s_last && rcode == 0; sect++) {++		if (info->protect[sect] != 0)	/* protected, skip it */+			continue;++		/* Disable interrupts which might cause a timeout here */+		flag = disable_interrupts();++		addr = (FPWV *) (info->start[sect]);+		if (intel) {+			*addr = (FPW) 0x00500050;	/* clear status register */+			*addr = (FPW) 0x00200020;	/* erase setup */+			*addr = (FPW) 0x00D000D0;	/* erase confirm */+		} else {+			/* must be AMD style if not Intel */+			FPWV *base;	/* first address in bank */++			base = (FPWV *) (info->start[0]);+			base[0x0555] = (FPW) 0x00AA00AA;	/* unlock */+			base[0x02AA] = (FPW) 0x00550055;	/* unlock */+			base[0x0555] = (FPW) 0x00800080;	/* erase mode */+			base[0x0555] = (FPW) 0x00AA00AA;	/* unlock */+			base[0x02AA] = (FPW) 0x00550055;	/* unlock */+			*addr = (FPW) 0x00300030;	/* erase sector */+		}++		/* re-enable interrupts if necessary */+		if (flag)+			enable_interrupts();++		/* wait at least 50us for AMD, 80us for Intel.+		 * Let's wait 1 ms.+		 */+		udelay(1000);++		while ((*addr & (FPW) 0x00800080) != (FPW) 0x00800080) {+			if ((now = get_timer(0)) - start > CFG_FLASH_ERASE_TOUT) {+				printf("Timeout\n");++				if (intel) {+					/* suspend erase        */+					*addr = (FPW) 0x00B000B0;+				}++				flash_reset(info);	/* reset to read mode */+				rcode = 1;	/* failed */+				break;+			}++			/* show that we're waiting */+			if ((now - last) > 1000) {	/* every second */+				putc('.');+				last = now;+			}+		}++		flash_reset(info);	/* reset to read mode   */+	}++	printf(" done\n");+	return rcode;+}++/*-----------------------------------------------------------------------+ * Copy memory to flash, returns:+ * 0 - OK+ * 1 - write timeout+ * 2 - Flash not erased+ */+int+bad_write_buff(flash_info_t * info, uchar * src, ulong addr, ulong cnt)+{+	FPW data = 0;		/* 16 or 32 bit word, matches flash bus width on MPC8XX */+	int bytes;		/* number of bytes to program in current word         */+	int left;		/* number of bytes left to program                    */+	int i, res;++	for (left = cnt, res = 0;+	     left > 0 && res == 0;+	     addr += sizeof (data), left -= sizeof (data) - bytes) {++		bytes = addr & (sizeof (data) - 1);+		addr &= ~(sizeof (data) - 1);++		/* combine source and destination data so can program+		 * an entire word of 16 or 32 bits+		 */+		for (i = 0; i < sizeof (data); i++) {+			data <<= 8;+			if (i < bytes || i - bytes >= left)+				data += *((uchar *) addr + i);+			else+				data += *src++;+		}++		/* write one word to the flash */+		switch (info->flash_id & FLASH_VENDMASK) {+		case FLASH_MAN_AMD:+			res = write_word_amd(info, (FPWV *) addr, data);+			break;+		default:+			/* unknown flash type, error! */+			printf("missing or unknown FLASH type\n");+			res = 1;	/* not really a timeout, but gives error */+			break;+		}+	}++	return (res);+}++/**+ * write_buf: - Copy memory to flash.+ *

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产综合久久久久| 大尺度一区二区| 日韩在线a电影| 亚洲一卡二卡三卡四卡| 日本人妖一区二区| 国产精品白丝jk黑袜喷水| 国产自产高清不卡| av电影在线观看完整版一区二区| 在线亚洲精品福利网址导航| 欧美精品久久99久久在免费线| 久久久久久久久久看片| 亚洲免费视频中文字幕| 奇米精品一区二区三区在线观看| 丁香天五香天堂综合| 欧美激情一区二区三区在线| 韩日av一区二区| 久久99精品一区二区三区| 成人免费观看视频| 欧美日韩在线电影| 久久精品一二三| 丝袜美腿亚洲综合| 色综合久久综合| 日本不卡一二三| 日韩三级精品电影久久久| 久久精品夜色噜噜亚洲aⅴ| 日韩国产欧美在线观看| 色婷婷久久99综合精品jk白丝| 精品99999| 日韩电影免费在线看| 欧美在线观看一区| 亚洲日本欧美天堂| 99久久夜色精品国产网站| 久久久777精品电影网影网 | 欧美丰满一区二区免费视频| 日韩美女精品在线| 懂色av中文字幕一区二区三区| 日韩精品一区二区三区在线| 石原莉奈一区二区三区在线观看| 欧美午夜寂寞影院| 亚洲激情综合网| 色综合久久久久久久久| 亚洲欧美日韩国产手机在线| 99在线视频精品| 亚洲欧美国产77777| 成人激情文学综合网| 中文字幕欧美一区| 91麻豆免费看片| 亚洲国产精品视频| 欧美日韩一区二区三区视频| 午夜不卡av在线| 欧美一区二区三级| 国内成人免费视频| 久久精品人人做| 不卡一区二区三区四区| 亚洲久本草在线中文字幕| 日本道免费精品一区二区三区| 亚洲一区二区三区四区五区中文| 欧美性猛交xxxxxx富婆| 日韩和欧美一区二区三区| 日韩欧美你懂的| 国产精品一二三| 中文字幕一区免费在线观看| 日本高清成人免费播放| 亚洲成人资源网| 欧美成人vps| 不卡一区二区中文字幕| 亚洲v中文字幕| 久久午夜羞羞影院免费观看| 国产99一区视频免费| 亚洲欧美二区三区| 日韩午夜三级在线| 成人av电影免费在线播放| 亚洲一二三四在线观看| 欧美精品一区二区三区蜜桃视频| 成人在线视频首页| 亚洲免费观看高清完整版在线观看 | 色av成人天堂桃色av| 视频一区视频二区中文字幕| 久久精品人人做人人综合 | 欧美怡红院视频| 激情成人综合网| 亚洲男同性视频| 精品理论电影在线| 色诱亚洲精品久久久久久| 久久99精品久久只有精品| 国产精品天天看| 欧美精品九九99久久| 北条麻妃一区二区三区| 无吗不卡中文字幕| 国产精品你懂的在线| 欧美一级在线观看| 9久草视频在线视频精品| 久久成人久久爱| 一区二区三区中文在线| 国产人成亚洲第一网站在线播放| 欧美四级电影网| 国产91精品露脸国语对白| 亚洲一区二区3| 中文av一区二区| 欧美一级片在线| 一本色道a无线码一区v| 国产精品一区免费在线观看| 亚洲人成网站精品片在线观看| 国产精品一区三区| 天堂成人免费av电影一区| 国产精品麻豆久久久| 91精品国产色综合久久不卡电影 | 久久精品免费在线观看| 91麻豆精品国产| 欧美日韩一级二级| 91无套直看片红桃| 不卡视频一二三| 国产精品一二一区| 国产一区二区三区在线观看精品 | 国产精品私房写真福利视频| 日韩欧美国产系列| 欧美日韩国产色站一区二区三区| 欧洲人成人精品| 亚洲毛片av在线| 精品免费日韩av| 日韩色在线观看| 777亚洲妇女| 91精品国产色综合久久不卡电影| 欧美日韩成人一区二区| 在线观看视频一区二区欧美日韩| 91美女福利视频| 欧美综合一区二区三区| 在线看日本不卡| 欧美日韩一级二级| 欧美日韩亚洲综合一区| 欧美喷水一区二区| 91精品国产91综合久久蜜臀| 日韩一区二区免费在线电影| 日韩精品亚洲一区| 美女视频网站久久| 久久精品国产77777蜜臀| 国产一区二区美女诱惑| 国产精品亚洲午夜一区二区三区| 国产最新精品精品你懂的| 国产在线不卡一区| 成人高清视频免费观看| 99国产精品99久久久久久| 日本福利一区二区| 777午夜精品视频在线播放| 337p亚洲精品色噜噜| 欧美一区二区性放荡片| 久久久精品tv| 综合久久综合久久| 婷婷激情综合网| 韩国精品在线观看| 92精品国产成人观看免费| 欧美日精品一区视频| 欧美本精品男人aⅴ天堂| 国产精品青草久久| 国产精品久久久久久久久晋中 | 国产精品天美传媒沈樵| 亚洲国产精品久久久男人的天堂| 美女一区二区久久| 91一区二区三区在线播放| 制服视频三区第一页精品| 国产亚洲欧美日韩日本| 偷拍与自拍一区| eeuss鲁片一区二区三区| 欧美精品久久99| 日韩毛片一二三区| 久久疯狂做爰流白浆xx| 在线亚洲人成电影网站色www| 欧美videofree性高清杂交| 亚洲天堂av一区| 国产精品99久久不卡二区| 欧美美女一区二区在线观看| 国产精品国产自产拍高清av| 久久99精品国产麻豆不卡| 欧美日韩综合在线免费观看| 国产精品情趣视频| 国内精品不卡在线| 欧美高清www午色夜在线视频| 久久精品欧美一区二区三区不卡 | 亚洲影院久久精品| 国产成人综合网| 成人av网在线| 色8久久精品久久久久久蜜 | 国产精品免费看片| 中文字幕一区二区三| 亚洲一区二区三区四区不卡| 成人网在线免费视频| 在线观看欧美精品| 91精品国产品国语在线不卡| 亚洲精品日韩一| 日本特黄久久久高潮| 精品在线你懂的| 日韩欧美中文一区二区| 久久久久久久久久美女| 亚洲欧美综合在线精品| 久久国产精品99久久人人澡| 国产一区二区三区黄视频| 国产精品亚洲午夜一区二区三区| 欧洲精品在线观看| 亚洲图片欧美色图| 国产成人8x视频一区二区|