mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-18 23:18:20 +00:00
5974b794cb
Palmas class of devices can provide 32K clock(s) to be used by other devices on the board. Depending on the actual device the provided clocks can be: CLK32K_KG and CLK32K_KGAUDIO or only one: CLK32K_KG (TPS659039 for example) Use separate compatible flags for the two 32K clock. A system which needs or have only one of the 32k clock from Palmas will need to add node(s) for each clock as separate section in the dts file. The two compatible property is: "ti,palmas-clk32kg" for clk32kg clock "ti,palmas-clk32kgaudio" for clk32kgaudio clock Apart from the register control of the clocks - which is done via the clock API there is a posibility to enable the external sleep control. In this way the clock can be enabled/disabled on demand by the user of the clock. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Reviewed-by: Nishanth Menon <nm@ti.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
19 lines
421 B
C
19 lines
421 B
C
/*
|
|
* This header provides macros for Palmas device bindings.
|
|
*
|
|
* Copyright (c) 2013, NVIDIA Corporation.
|
|
*
|
|
* Author: Laxman Dewangan <ldewangan@nvidia.com>
|
|
*
|
|
*/
|
|
|
|
#ifndef __DT_BINDINGS_PALMAS_H__
|
|
#define __DT_BINDINGS_PALMAS_H
|
|
|
|
/* External control pins */
|
|
#define PALMAS_EXT_CONTROL_PIN_ENABLE1 1
|
|
#define PALMAS_EXT_CONTROL_PIN_ENABLE2 2
|
|
#define PALMAS_EXT_CONTROL_PIN_NSLEEP 3
|
|
|
|
#endif /* __DT_BINDINGS_PALMAS_H */
|