Re: [RFC PATCH v2 1/2] mfd: syscon: Support early initialization
From: Alexander Shiyan
Date: Wed Feb 19 2014 - 06:14:38 EST
ÐÑÐÐÐ, 19 ÑÐÐÑÐÐÑ 2014, 12:04 +01:00 ÐÑ Michal Simek <michal.simek@xxxxxxxxxx>:
> Some platforms need to get system controller
> ready as soon as possible.
> The patch provides early_syscon_initialization
> which create early mapping for all syscon compatible
> devices in early_syscon_probe.
> Regmap is get via syscon_early_regmap_lookup_by_phandle()
>
> Regular device probes attach device to regmap
> via regmap_attach_dev().
>
> For early syscon initialization is necessary to extend
> struct syscon and provide remove function
> which unmap all early init structures.
>
> Signed-off-by: Michal Simek <michal.simek@xxxxxxxxxx>
> ---
...
> +static struct of_device_id of_syscon_ids[] = {
> + { .compatible = "syscon" },
> + {},
> };
You should move syscon_ids out of #ifdef CONFIG_OF
---
N§²æ¸yú²X¬¶ÇvØ)Þ{.nÇ·¥{±êX§¶¡Ü}©²ÆzÚj:+v¨¾«êZ+Êzf£¢·h§~Ûÿû®w¥¢¸?¨è&¢)ßfùy§m
á«a¶Úÿ0¶ìå