View Single Post
  #64 (permalink)  
Old 08-14-2010, 05:50 PM
[ACL]'s Avatar
[ACL]
VIP Member
Offline
Location: NY
 
Join Date: Feb 2010
Posts: 1,534
Reputation: 6350
[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
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
Reply With Quote