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

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

?? generic.c

?? linux2.6.16版本
?? C
字號:
/* * linux/arch/arm/mach-sa1100/generic.c * * Author: Nicolas Pitre * * Code common to all SA11x0 machines. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */#include <linux/config.h>#include <linux/module.h>#include <linux/kernel.h>#include <linux/init.h>#include <linux/delay.h>#include <linux/pm.h>#include <linux/cpufreq.h>#include <linux/ioport.h>#include <linux/sched.h>	/* just for sched_clock() - funny that */#include <linux/platform_device.h>#include <asm/div64.h>#include <asm/hardware.h>#include <asm/system.h>#include <asm/pgtable.h>#include <asm/mach/map.h>#include <asm/mach/flash.h>#include <asm/irq.h>#include "generic.h"#define NR_FREQS	16/* * This table is setup for a 3.6864MHz Crystal. */static const unsigned short cclk_frequency_100khz[NR_FREQS] = {	 590,	/*  59.0 MHz */	 737,	/*  73.7 MHz */	 885, 	/*  88.5 MHz */	1032,	/* 103.2 MHz */	1180,	/* 118.0 MHz */	1327,	/* 132.7 MHz */	1475,	/* 147.5 MHz */	1622,	/* 162.2 MHz */	1769,	/* 176.9 MHz */	1917,	/* 191.7 MHz */	2064,	/* 206.4 MHz */	2212,	/* 221.2 MHz */	2359,   /* 235.9 MHz */	2507,   /* 250.7 MHz */	2654,   /* 265.4 MHz */	2802    /* 280.2 MHz */};#if defined(CONFIG_CPU_FREQ_SA1100) || defined(CONFIG_CPU_FREQ_SA1110)/* rounds up(!)  */unsigned int sa11x0_freq_to_ppcr(unsigned int khz){	int i;	khz /= 100;	for (i = 0; i < NR_FREQS; i++)		if (cclk_frequency_100khz[i] >= khz)			break;	return i;}unsigned int sa11x0_ppcr_to_freq(unsigned int idx){	unsigned int freq = 0;	if (idx < NR_FREQS)		freq = cclk_frequency_100khz[idx] * 100;	return freq;}/* make sure that only the "userspace" governor is run -- anything else wouldn't make sense on * this platform, anyway. */int sa11x0_verify_speed(struct cpufreq_policy *policy){	unsigned int tmp;	if (policy->cpu)		return -EINVAL;	cpufreq_verify_within_limits(policy, policy->cpuinfo.min_freq, policy->cpuinfo.max_freq);	/* make sure that at least one frequency is within the policy */	tmp = cclk_frequency_100khz[sa11x0_freq_to_ppcr(policy->min)] * 100;	if (tmp > policy->max)		policy->max = tmp;	cpufreq_verify_within_limits(policy, policy->cpuinfo.min_freq, policy->cpuinfo.max_freq);	return 0;}unsigned int sa11x0_getspeed(unsigned int cpu){	if (cpu)		return 0;	return cclk_frequency_100khz[PPCR & 0xf] * 100;}#else/* * We still need to provide this so building without cpufreq works. */ unsigned int cpufreq_get(unsigned int cpu){	return cclk_frequency_100khz[PPCR & 0xf] * 100;}EXPORT_SYMBOL(cpufreq_get);#endif/* * This is the SA11x0 sched_clock implementation.  This has * a resolution of 271ns, and a maximum value of 1165s. *  ( * 1E9 / 3686400 => * 78125 / 288) */unsigned long long sched_clock(void){	unsigned long long v;	v = (unsigned long long)OSCR * 78125;	do_div(v, 288);	return v;}/* * Default power-off for SA1100 */static void sa1100_power_off(void){	mdelay(100);	local_irq_disable();	/* disable internal oscillator, float CS lines */	PCFR = (PCFR_OPDE | PCFR_FP | PCFR_FS);	/* enable wake-up on GPIO0 (Assabet...) */	PWER = GFER = GRER = 1;	/*	 * set scratchpad to zero, just in case it is used as a	 * restart address by the bootloader.	 */	PSPR = 0;	/* enter sleep mode */	PMCR = PMCR_SF;}static struct resource sa11x0udc_resources[] = {	[0] = {		.start	= 0x80000000,		.end	= 0x8000ffff,		.flags	= IORESOURCE_MEM,	},};static u64 sa11x0udc_dma_mask = 0xffffffffUL;static struct platform_device sa11x0udc_device = {	.name		= "sa11x0-udc",	.id		= -1,	.dev		= {		.dma_mask = &sa11x0udc_dma_mask,		.coherent_dma_mask = 0xffffffff,	},	.num_resources	= ARRAY_SIZE(sa11x0udc_resources),	.resource	= sa11x0udc_resources,};static struct resource sa11x0uart1_resources[] = {	[0] = {		.start	= 0x80010000,		.end	= 0x8001ffff,		.flags	= IORESOURCE_MEM,	},};static struct platform_device sa11x0uart1_device = {	.name		= "sa11x0-uart",	.id		= 1,	.num_resources	= ARRAY_SIZE(sa11x0uart1_resources),	.resource	= sa11x0uart1_resources,};static struct resource sa11x0uart3_resources[] = {	[0] = {		.start	= 0x80050000,		.end	= 0x8005ffff,		.flags	= IORESOURCE_MEM,	},};static struct platform_device sa11x0uart3_device = {	.name		= "sa11x0-uart",	.id		= 3,	.num_resources	= ARRAY_SIZE(sa11x0uart3_resources),	.resource	= sa11x0uart3_resources,};static struct resource sa11x0mcp_resources[] = {	[0] = {		.start	= 0x80060000,		.end	= 0x8006ffff,		.flags	= IORESOURCE_MEM,	},};static u64 sa11x0mcp_dma_mask = 0xffffffffUL;static struct platform_device sa11x0mcp_device = {	.name		= "sa11x0-mcp",	.id		= -1,	.dev = {		.dma_mask = &sa11x0mcp_dma_mask,		.coherent_dma_mask = 0xffffffff,	},	.num_resources	= ARRAY_SIZE(sa11x0mcp_resources),	.resource	= sa11x0mcp_resources,};void sa11x0_set_mcp_data(struct mcp_plat_data *data){	sa11x0mcp_device.dev.platform_data = data;}static struct resource sa11x0ssp_resources[] = {	[0] = {		.start	= 0x80070000,		.end	= 0x8007ffff,		.flags	= IORESOURCE_MEM,	},};static u64 sa11x0ssp_dma_mask = 0xffffffffUL;static struct platform_device sa11x0ssp_device = {	.name		= "sa11x0-ssp",	.id		= -1,	.dev = {		.dma_mask = &sa11x0ssp_dma_mask,		.coherent_dma_mask = 0xffffffff,	},	.num_resources	= ARRAY_SIZE(sa11x0ssp_resources),	.resource	= sa11x0ssp_resources,};static struct resource sa11x0fb_resources[] = {	[0] = {		.start	= 0xb0100000,		.end	= 0xb010ffff,		.flags	= IORESOURCE_MEM,	},	[1] = {		.start	= IRQ_LCD,		.end	= IRQ_LCD,		.flags	= IORESOURCE_IRQ,	},};static struct platform_device sa11x0fb_device = {	.name		= "sa11x0-fb",	.id		= -1,	.dev = {		.coherent_dma_mask = 0xffffffff,	},	.num_resources	= ARRAY_SIZE(sa11x0fb_resources),	.resource	= sa11x0fb_resources,};static struct platform_device sa11x0pcmcia_device = {	.name		= "sa11x0-pcmcia",	.id		= -1,};static struct platform_device sa11x0mtd_device = {	.name		= "flash",	.id		= -1,};void sa11x0_set_flash_data(struct flash_platform_data *flash,			   struct resource *res, int nr){	flash->name = "sa1100";	sa11x0mtd_device.dev.platform_data = flash;	sa11x0mtd_device.resource = res;	sa11x0mtd_device.num_resources = nr;}static struct resource sa11x0ir_resources[] = {	{		.start	= __PREG(Ser2UTCR0),		.end	= __PREG(Ser2UTCR0) + 0x24 - 1,		.flags	= IORESOURCE_MEM,	}, {		.start	= __PREG(Ser2HSCR0),		.end	= __PREG(Ser2HSCR0) + 0x1c - 1,		.flags	= IORESOURCE_MEM,	}, {		.start	= __PREG(Ser2HSCR2),		.end	= __PREG(Ser2HSCR2) + 0x04 - 1,		.flags	= IORESOURCE_MEM,	}, {		.start	= IRQ_Ser2ICP,		.end	= IRQ_Ser2ICP,		.flags	= IORESOURCE_IRQ,	}};static struct platform_device sa11x0ir_device = {	.name		= "sa11x0-ir",	.id		= -1,	.num_resources	= ARRAY_SIZE(sa11x0ir_resources),	.resource	= sa11x0ir_resources,};void sa11x0_set_irda_data(struct irda_platform_data *irda){	sa11x0ir_device.dev.platform_data = irda;}static struct platform_device *sa11x0_devices[] __initdata = {	&sa11x0udc_device,	&sa11x0uart1_device,	&sa11x0uart3_device,	&sa11x0mcp_device,	&sa11x0ssp_device,	&sa11x0pcmcia_device,	&sa11x0fb_device,	&sa11x0mtd_device,};static int __init sa1100_init(void){	pm_power_off = sa1100_power_off;	if (sa11x0ir_device.dev.platform_data)		platform_device_register(&sa11x0ir_device);	return platform_add_devices(sa11x0_devices, ARRAY_SIZE(sa11x0_devices));}arch_initcall(sa1100_init);void (*sa1100fb_backlight_power)(int on);void (*sa1100fb_lcd_power)(int on);EXPORT_SYMBOL(sa1100fb_backlight_power);EXPORT_SYMBOL(sa1100fb_lcd_power);/* * Common I/O mapping: * * Typically, static virtual address mappings are as follow: * * 0xf0000000-0xf3ffffff:	miscellaneous stuff (CPLDs, etc.) * 0xf4000000-0xf4ffffff:	SA-1111 * 0xf5000000-0xf5ffffff:	reserved (used by cache flushing area) * 0xf6000000-0xfffeffff:	reserved (internal SA1100 IO defined above) * 0xffff0000-0xffff0fff:	SA1100 exception vectors * 0xffff2000-0xffff2fff:	Minicache copy_user_page area * * Below 0xe8000000 is reserved for vm allocation. * * The machine specific code must provide the extra mapping beside the * default mapping provided here. */static struct map_desc standard_io_desc[] __initdata = {  	{	/* PCM */		.virtual	=  0xf8000000,		.pfn		= __phys_to_pfn(0x80000000),		.length		= 0x00100000,		.type		= MT_DEVICE	}, {	/* SCM */		.virtual	=  0xfa000000,		.pfn		= __phys_to_pfn(0x90000000),		.length		= 0x00100000,		.type		= MT_DEVICE	}, {	/* MER */		.virtual	=  0xfc000000,		.pfn		= __phys_to_pfn(0xa0000000),		.length		= 0x00100000,		.type		= MT_DEVICE	}, {	/* LCD + DMA */		.virtual	=  0xfe000000,		.pfn		= __phys_to_pfn(0xb0000000),		.length		= 0x00200000,		.type		= MT_DEVICE	},};void __init sa1100_map_io(void){	iotable_init(standard_io_desc, ARRAY_SIZE(standard_io_desc));}/* * Disable the memory bus request/grant signals on the SA1110 to * ensure that we don't receive spurious memory requests.  We set * the MBGNT signal false to ensure the SA1111 doesn't own the * SDRAM bus. */void __init sa1110_mb_disable(void){	unsigned long flags;	local_irq_save(flags);		PGSR &= ~GPIO_MBGNT;	GPCR = GPIO_MBGNT;	GPDR = (GPDR & ~GPIO_MBREQ) | GPIO_MBGNT;	GAFR &= ~(GPIO_MBGNT | GPIO_MBREQ);	local_irq_restore(flags);}/* * If the system is going to use the SA-1111 DMA engines, set up * the memory bus request/grant pins. */void __init sa1110_mb_enable(void){	unsigned long flags;	local_irq_save(flags);	PGSR &= ~GPIO_MBGNT;	GPCR = GPIO_MBGNT;	GPDR = (GPDR & ~GPIO_MBREQ) | GPIO_MBGNT;	GAFR |= (GPIO_MBGNT | GPIO_MBREQ);	TUCR |= TUCR_MR;	local_irq_restore(flags);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产制服丝袜高跟| 成人永久aaa| 4438亚洲最大| 天堂成人免费av电影一区| 欧美日韩一区二区三区不卡| 午夜视频一区在线观看| 91精品国产手机| 国产一区二区91| 亚洲国产高清在线| 91色乱码一区二区三区| 亚洲综合色自拍一区| 666欧美在线视频| 久久se精品一区二区| 国产欧美一区二区精品性色超碰 | 欧美一区二区在线免费播放| 婷婷综合五月天| 国产亚洲精品中文字幕| 91蜜桃在线免费视频| 午夜精品久久久久久久久久久| 欧美大白屁股肥臀xxxxxx| 风间由美一区二区三区在线观看| 夜夜嗨av一区二区三区网页| 欧美老人xxxx18| 国产精品一区二区无线| 一区二区三区加勒比av| 日韩欧美一级特黄在线播放| 成人精品国产免费网站| 天天做天天摸天天爽国产一区 | 精品婷婷伊人一区三区三| 久久91精品久久久久久秒播| 国产精品久久久久久一区二区三区| 欧美亚洲图片小说| 国产成人在线影院 | 国产精品成人网| 91精品国产91久久久久久最新毛片| 国产99久久久精品| 亚洲成人你懂的| 国产欧美日韩视频在线观看| 91精品免费观看| 99re热这里只有精品视频| 青青草91视频| 亚洲视频一区在线| 欧美精品一区二区三区高清aⅴ | 欧美日韩精品久久久| 国产福利91精品| 日本成人在线看| 亚洲曰韩产成在线| 国产欧美日韩麻豆91| 91精品国产综合久久婷婷香蕉| 99视频精品全部免费在线| 国产综合色精品一区二区三区| 亚洲成人精品一区| 日韩理论片在线| 日本一区二区三区国色天香 | 精品国产欧美一区二区| 欧美日本乱大交xxxxx| 国产精品18久久久久久vr| 日本一道高清亚洲日美韩| 一区二区三区视频在线看| 久久久久久久一区| 欧美一级午夜免费电影| 精品视频资源站| 欧美中文字幕亚洲一区二区va在线 | 最新久久zyz资源站| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 亚洲女性喷水在线观看一区| 国产亚洲精品超碰| 精品成人私密视频| 久久精品亚洲乱码伦伦中文| 91精品国产91综合久久蜜臀| 欧美日韩你懂的| 欧美性猛交一区二区三区精品| 色综合久久久久网| eeuss鲁一区二区三区| 成人黄色777网| av在线不卡免费看| 91小视频免费观看| 91网站在线观看视频| 99久久婷婷国产综合精品电影| 99久久er热在这里只有精品66| 不卡av电影在线播放| 成人激情文学综合网| 99国产一区二区三精品乱码| 99久久99久久精品国产片果冻| 91在线观看下载| 91精彩视频在线| 欧美裸体一区二区三区| 欧美成人福利视频| 国产欧美一区二区在线观看| 中文字幕av一区 二区| 国产精品国产三级国产普通话99 | 在线播放/欧美激情| 在线成人免费视频| 精品蜜桃在线看| 国产精品无遮挡| 亚洲与欧洲av电影| 免费看欧美美女黄的网站| 国产米奇在线777精品观看| 成人中文字幕合集| 在线中文字幕不卡| 欧美一级视频精品观看| 2021中文字幕一区亚洲| 亚洲色图第一区| 午夜久久久久久久久久一区二区| 日韩电影一区二区三区| 国产一区二区三区在线观看免费视频| 丁香婷婷综合色啪| 日本二三区不卡| 日韩午夜激情电影| 国产色综合一区| 亚洲精品水蜜桃| 国模冰冰炮一区二区| 91碰在线视频| 欧美丰满美乳xxx高潮www| 久久香蕉国产线看观看99| 亚洲欧美日韩电影| 日韩主播视频在线| 丁香六月综合激情| 欧美亚洲一区二区在线观看| 久久久精品国产免费观看同学| 尤物视频一区二区| 国产精品白丝jk黑袜喷水| 欧美综合在线视频| 久久综合一区二区| 亚洲国产欧美在线| 国产99久久精品| 日韩一区二区三区在线观看| 亚洲嫩草精品久久| 国产精品一区一区三区| 国产女主播视频一区二区| 亚洲成人免费视| 91网上在线视频| 久久久国产精华| 美女网站色91| 欧美中文一区二区三区| 欧美国产乱子伦| 久久99国产精品免费| 欧美影院精品一区| 日本一区二区三区四区| 老司机免费视频一区二区| 欧美午夜电影网| 国产精品久久777777| 国产美女视频91| 日韩精品中文字幕在线不卡尤物| 亚洲精品视频在线看| 成人在线一区二区三区| 精品美女一区二区| 日韩av在线发布| 欧美日韩国产首页| 亚洲男人天堂av| av电影天堂一区二区在线观看| 久久亚洲综合色一区二区三区| 日韩黄色小视频| 69久久99精品久久久久婷婷| 亚洲国产日韩在线一区模特| 97久久精品人人做人人爽| 中文字幕精品一区二区三区精品| 久久精品久久综合| 欧美人牲a欧美精品| 亚洲国产精品久久艾草纯爱| 欧美怡红院视频| 亚洲成av人在线观看| 在线观看一区二区视频| 亚洲免费观看高清完整版在线观看| 成人午夜伦理影院| 中文字幕av不卡| 91香蕉视频污| 一区二区三区免费网站| 在线视频欧美精品| 亚洲国产精品久久久男人的天堂 | 成人不卡免费av| 国产精品不卡在线| 91亚洲午夜精品久久久久久| 1000部国产精品成人观看| 色综合色综合色综合色综合色综合| 国产精品免费视频观看| 97久久超碰精品国产| 一区av在线播放| 欧美日韩国产免费一区二区| 性做久久久久久久免费看| 7777精品伊人久久久大香线蕉| 日本不卡一区二区三区| 精品国产伦一区二区三区观看体验| 另类小说综合欧美亚洲| 久久久亚洲国产美女国产盗摄| 岛国一区二区在线观看| 亚洲视频在线一区二区| 欧美日韩精品一区二区三区四区| 日本女人一区二区三区| 久久美女艺术照精彩视频福利播放 | 国产精品主播直播| 国产精品久久网站| 一本久道中文字幕精品亚洲嫩| 亚洲一二三区不卡| 日韩欧美中文字幕制服| 欧美三级资源在线| 麻豆成人91精品二区三区| 国产精品美女久久福利网站| 欧美在线free| 久久66热偷产精品|