diff options
author | Neil Armstrong | 2017-08-01 13:56:57 +0200 |
---|---|---|
committer | Neil Armstrong | 2017-08-04 18:02:01 +0200 |
commit | ffb13e3b84f4619ec6a4ca61a6cedf2d50858949 (patch) | |
tree | 96b60feb20fd60c38d0bf58e9fa15bd0ea0e9a49 /drivers/clk/meson/gxbb-aoclk.h | |
parent | 3b3025625fa41b79f4e729e9365e4f8564de7cdf (diff) |
clk: meson: gxbb-aoclk: Switch to regmap for register access
Switch the aoclk driver to use the new bindings and switch all the
registers access to regmap only.
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Diffstat (limited to 'drivers/clk/meson/gxbb-aoclk.h')
-rw-r--r-- | drivers/clk/meson/gxbb-aoclk.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/clk/meson/gxbb-aoclk.h b/drivers/clk/meson/gxbb-aoclk.h new file mode 100644 index 000000000000..2e26108d5ba6 --- /dev/null +++ b/drivers/clk/meson/gxbb-aoclk.h @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2017 BayLibre, SAS + * Author: Neil Armstrong <narmstrong@baylibre.com> + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __GXBB_AOCLKC_H +#define __GXBB_AOCLKC_H + +/* AO Configuration Clock registers offsets */ +#define AO_RTI_GEN_CNTL_REG0 0x40 + +struct aoclk_gate_regmap { + struct clk_hw hw; + unsigned bit_idx; + struct regmap *regmap; + spinlock_t *lock; +}; + +#define to_aoclk_gate_regmap(_hw) \ + container_of(_hw, struct aoclk_gate_regmap, hw) + +extern const struct clk_ops meson_aoclk_gate_regmap_ops; + +#endif /* __GXBB_AOCLKC_H */ |