mirror of
https://github.com/saymrwulf/pulp-runtime.git
synced 2026-05-14 20:48:09 +00:00
44 lines
1 KiB
C
44 lines
1 KiB
C
/*
|
|
* Copyright (C) 2019 ETH Zurich, University of Bologna
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef __POS_CHIPS_PULP_SOC_H__
|
|
#define __POS_CHIPS_PULP_SOC_H__
|
|
|
|
|
|
#define POS_FLL_CL 2
|
|
#define POS_FLL_PERIPH 1
|
|
#define POS_FLL_FC 0
|
|
|
|
extern int pos_freq_domains[PI_FREQ_NB_DOMAINS];
|
|
|
|
|
|
void pos_soc_init();
|
|
|
|
static inline int pos_freq_get_fll(int domain)
|
|
{
|
|
switch (domain)
|
|
{
|
|
case PI_FREQ_DOMAIN_FC:
|
|
return POS_FLL_FC;
|
|
|
|
case PI_FREQ_DOMAIN_PERIPH:
|
|
default:
|
|
return POS_FLL_PERIPH;
|
|
}
|
|
}
|
|
|
|
|
|
#endif
|