whatever how, this should be record and be researched later. ---- about how to enable gpio value set in mach_smdk6410.c

SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

Calibrating delay loop... 530.84 BogoMIPS (lpj=1327104)

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

net_namespace: 288 bytes

NET: Registered protocol family 16

GPIO-52 autorequested

GPIO-33 autorequested

LCD GPIOS set over 

S3C6410: Initialising architecture

S3C DMA-pl080 Controller Driver, (c) 2006-2007 Samsung Electronics

Total 32 DMA channels will be initialized.

SCSI subsystem initialized

 

在此处开始Initial arch,也就说plat下的gpiolib.c,中arch_initcall(s3c64xx_gpiolib_init),在此处才会被调用。
注意和core_initcall(s3c6410_core_init);的不同。 

与module_init(bdctl_init);

的不同?
与__init__的不同?

 

这里将其移动到:

static void __init smdk6410_map_io(void)

{

s3c_device_nand.name = "s3c6410-nand";

 

s3c64xx_init_io(smdk6410_iodesc, ARRAY_SIZE(smdk6410_iodesc));

#if 1 //tmp by zhangq

s3c64xx_gpiolib_init();

#endif

s3c24xx_init_clocks(12000000);

s3c24xx_init_uarts(smdk6410_uartcfgs, ARRAY_SIZE(smdk6410_uartcfgs));

s3c64xx_reserve_bootmem();

}

中调用
此处是在
最后还是不知map_io在哪儿调用的。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值