c7e0d727d7
Add support for Microchip MEC15xx to the XEC clock control driver. MEC15xx 32KHz clock support uses the same 32KHz source for both the PLL and peripherals. MEC152x does not include the PCR clock monitor present in MEC172x. MEC15xx and MEC172x support internal silicon oscillator, parallel and single ended crystal inputs, and the 32KHZ_PIN input. MEC152x supports fall back to internal silicon OSC when VTR and 32KHZ_PIN are turned off. Therefore in MEC152x the internal silicon oscillator can only be disabled if using an external 32KHz which is always on. For MEC152x the driver will only use the PLL source clock device tree value. Signed-off-by: Jay Vasanth <jay.vasanth@microchip.com>
31 lines
551 B
C
31 lines
551 B
C
/*
|
|
* Copyright (c) 2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef __MEC_SOC_H
|
|
#define __MEC_SOC_H
|
|
|
|
#define SYSCLK_DEFAULT_IOSC_HZ MHZ(48)
|
|
|
|
#ifndef _ASMLANGUAGE
|
|
|
|
#include "MEC1501hsz.h"
|
|
#include "regaccess.h"
|
|
|
|
/* common SoC API */
|
|
#include "../common/soc_dt.h"
|
|
#include "../common/soc_gpio.h"
|
|
#include "../common/soc_pcr.h"
|
|
#include "../common/soc_pins.h"
|
|
#include "../common/soc_espi_channels.h"
|
|
#include "soc_espi_saf_v1.h"
|
|
|
|
/* common peripheral register defines */
|
|
#include "../common/reg/mec_gpio.h"
|
|
|
|
#endif
|
|
|
|
#endif
|