HI ALL: Is it just conventional to access IO register with wriltel, readl? or is there any specific reason here. what's the difference with direct access? writel has few arch releated operation to guarantee hardware access?
for example: struct base_gpt { unsigned int control; unsigned int prescaler; }; #define GPT1_BASE_ADDR GPTCR_SWR volatile struct base_gpt *cur_gpt = (struct base_gpt *)GPT1_BASE_ADDR; A) acess with writel __raw_writel(GPTCR_SWR, &cur_gpt->control); B) direct access cur_gpt->control = GPTCR_SWR; (Note I define the structure with volatile ) Dennis _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot