[PATCH 12/12] ARM: tegra: Convert PMC to a driver
Arnd Bergmann
arnd at arndb.de
Wed Jul 16 04:56:44 PDT 2014
On Friday 11 July 2014, Thierry Reding wrote:
> +/*
> + * PMC
> + */
> +enum tegra_suspend_mode {
> + TEGRA_SUSPEND_NONE = 0,
> + TEGRA_SUSPEND_LP2, /* CPU voltage off */
> + TEGRA_SUSPEND_LP1, /* CPU voltage off, DRAM self-refresh */
> + TEGRA_SUSPEND_LP0, /* CPU + core voltage off, DRAM self-refresh */
> + TEGRA_MAX_SUSPEND_MODE,
> +};
> +
> +#ifdef CONFIG_PM_SLEEP
> +enum tegra_suspend_mode tegra_pmc_get_suspend_mode(void);
> +void tegra_pmc_set_suspend_mode(enum tegra_suspend_mode mode);
> +void tegra_pmc_enter_suspend_mode(enum tegra_suspend_mode mode);
> +
> +bool tegra_pmc_cpu_is_powered(int cpuid);
> +int tegra_pmc_cpu_power_on(int cpuid);
> +int tegra_pmc_cpu_remove_clamping(int cpuid);
> +
> +void tegra_pmc_restart(enum reboot_mode mode, const char *cmd);
> +#endif
> +
> +/*
This part is causing multiple build failures in the randconfig tests.
You can avoid them by removing the #ifdef.
On a more general note, why are you adding this stuff into a global
header file in the first place? All users are in the same directory
in which the functions are defined.
Arnd
More information about the linux-arm-kernel
mailing list