|
Re: Installing Android to Nand?
Wozzer: add this to your clock-wince.c code.
#define GRP_RAIL_ON 0x2C
#define GRP_RAIL_OFF 0x2B
void clk_regime_sec(int i) {
struct msm_rpc_endpoint *ept=NULL;
struct {
struct rpc_request_hdr hdr;
uint32_t data[1];
} req;
BUG_ON(ept=msm_rpc_connect(0x3000000f, 0x1c5ace2a, 0x0));
if (IS_ERR(ept)) {
printk(KERN_ERR "%s: init rpc failed! error: %ld\n",
__func__, PTR_ERR(ept));
}
else {
req.data[0]=cpu_to_be32(0x1);
msm_rpc_call(ept, i, &req, sizeof(req), 15*HZ);
}
}
you can put it above the get_clk_khz func
|