Subject: Re: [U-Boot,6/8] clk: rockchip: Add rk3368 Saradc clock support
From: "David.Wu" <[email-masked]>
To: Philipp Tomsich <[email-masked]>
Cc: [email-masked], [email-masked], [email-masked], [email-masked], [email-masked], [email-masked]
Date: Thu, 14 Sep 2017 19:17:33 +0800

Hi Philipp,

在 2017/9/14 4:41, Philipp Tomsich 写道:
>> +static ulong rk3368_saradc_get_clk(struct rk3368_cru *cru)
>> +{
>> +    u32 div, val;
>> +
>> +    val = readl(&cru->clksel_con[25]);
>> +    div = bitfield_extract(val, CLK_SARADC_DIV_CON_SHIFT,
>> +                   CLK_SARADC_DIV_CON_WIDTH);
> 
> Please reuse the functions from bitfield.h.

Ah, the bitfield_extract function is from bitfield.h here.