2018-05-16 15:50:40 +07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2017-08-01 18:56:57 +07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 BayLibre, SAS
|
|
|
|
* Author: Neil Armstrong <narmstrong@baylibre.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GXBB_AOCLKC_H
|
|
|
|
#define __GXBB_AOCLKC_H
|
|
|
|
|
2018-05-03 20:26:20 +07:00
|
|
|
#define NR_CLKS 7
|
|
|
|
|
2017-08-01 18:56:57 +07:00
|
|
|
/* AO Configuration Clock registers offsets */
|
2017-08-01 18:56:59 +07:00
|
|
|
#define AO_RTI_PWR_CNTL_REG1 0x0c
|
|
|
|
#define AO_RTI_PWR_CNTL_REG0 0x10
|
2017-08-01 18:56:57 +07:00
|
|
|
#define AO_RTI_GEN_CNTL_REG0 0x40
|
2017-08-01 18:56:59 +07:00
|
|
|
#define AO_OSCIN_CNTL 0x58
|
|
|
|
#define AO_CRT_CLK_CNTL1 0x68
|
|
|
|
#define AO_RTC_ALT_CLK_CNTL0 0x94
|
|
|
|
#define AO_RTC_ALT_CLK_CNTL1 0x98
|
2017-08-01 18:56:57 +07:00
|
|
|
|
2017-08-01 18:56:59 +07:00
|
|
|
struct aoclk_cec_32k {
|
|
|
|
struct clk_hw hw;
|
|
|
|
struct regmap *regmap;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define to_aoclk_cec_32k(_hw) container_of(_hw, struct aoclk_cec_32k, hw)
|
|
|
|
|
|
|
|
extern const struct clk_ops meson_aoclk_cec_32k_ops;
|
|
|
|
|
2018-05-03 20:26:20 +07:00
|
|
|
#include <dt-bindings/clock/gxbb-aoclkc.h>
|
|
|
|
#include <dt-bindings/reset/gxbb-aoclkc.h>
|
|
|
|
|
2017-08-01 18:56:57 +07:00
|
|
|
#endif /* __GXBB_AOCLKC_H */
|