[PATCH v2 5/6] ARM: hi3xxx: add board support with device tree
Haojian Zhuang
haojian.zhuang at linaro.org
Tue Jun 4 23:04:27 EDT 2013
On 4 June 2013 23:16, Arnd Bergmann <arnd at arndb.de> wrote:
> On Tuesday 04 June 2013 23:05:16 Haojian Zhuang wrote:
>
>> +static void __init hi3xxx_timer_init(void)
>> +{
>> + of_clk_init(NULL);
>> + clocksource_of_init();
>> +}
>
> I plan to make this the default, so maybe we will be able to get rid
> of this function soon. Right now it is still needed, as we only
> call clocksource_of_init() but not of_clk_init().
>
But my timer driver accesses clk. So I need to call of_clk_init() before
clocksource_of_init(). Up to now, of_clk_init() isn't called by default.
>> +static void __init hs_init(void)
>> +{
>> + of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
>> +}
>
> However, this is the default already. You can remove.
>
I'll update it.
>> +static const char *hs_compat[] __initdata = {
>> + "hisilicon,hi3620-hi4511",
>> + NULL,
>> +};
>> +
>> +DT_MACHINE_START(HI3xxx, "Hisilicon Hi36xx/Hi37xx (Flattened Device Tree)")
>> + /* Maintainer: Haojian Zhuang <haojian.zhuang at linaro.org> */
>> + .map_io = debug_ll_io_init,
>> + .init_time = hi3xxx_timer_init,
>> + .init_machine = hs_init,
>> + .dt_compat = hs_compat,
>> +MACHINE_END
>
> Same for debug_ll_io_init. You can remove the map_io and init_machine lines
> here.
I'll update it.
>
> With those gone,
>
> Acked-by: Arnd Bergmann <arnd at arndb.de>
>
> Arnd
Thanks
Haojian
More information about the linux-arm-kernel
mailing list