/* clk_get获取一个名为id的时钟
* 输入参数dev: 可以为NULL
* 输入参数id: 时钟名称,如fclk、hclk、pclk等
* 返回值: 返回该时钟的clk结构体
*/
struct clk *clk_get(struct device *dev, const char *id)
struct clk {
struct list_head list;
struct module *owner;
struct clk *parent;
const char *name; /* 该时钟名称 /
int id;
int usage;
unsigned long rate; /* 时钟频率 /
unsigned long ctrlbit;
int (*enable)(struct clk *, int enable);
int (*set_rate)(struct clk *c, unsigned long rate);
unsigned long (*get_rate)(struct clk *c);
unsigned long (*round_rate)(struct clk *c, unsigned long rate);
int (*set_parent)(struct clk *c, struct clk *parent);
};
printk(KERN_DEBUG"fclk = %d, pclk = %d, hclk = %d, uclk = %d\n",
clk_get_rate(clk_get(NULL, "fclk")),
clk_get_rate(clk_get(NULL, "hclk")),
clk_get_rate(clk_get(NULL, "pclk")),
clk_get_rate(clk_get(NULL, "uclk")));
AMBA(Advanced Microcontroller Bus Architecture)是由ARM公司提出的片上总线规范。AMBA 2.0规范包括四个部分:AHB(AMBA高性能总线)、ASB(AMBA系统总线)、APB(AMBA外设总线)和Test Methodology。
the Advanced High-performance Bus(AHB)应用于连接高性能、高时钟频率的系统模块(如CPU、DMA和DSP等)它构成了高性能的系统骨干总线( back-bone bus )。AHB bus上的外设有LCD controller(CONT代表controller,控制器)、USB Host CONT、ExtMaster、Nand CONT和nand flash boot loader、bus CONT、interrupt CONT、power management、memory CONT(sram/nor/sdram等)。
3864



被折叠的 条评论
为什么被折叠?



