mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-07 23:03:06 +00:00
Changes included (and more): 1. Dynamic RAM merge 2. Real-time page scan and allocation 3. Cache compression 4. Real-time IRQ checks 5. Dynamic I/O allocation for Java heap 6. Java page migration 7. Contiguous memory allocation 8. Idle pages tracking 9. Per CPU RAM usage tracking 10. ARM NEON scalar multiplication library 11. NEON/ARMv8 crypto extensions 12. NEON SHA, Blake, RIPEMD crypto extensions 13. Parallel NEON crypto engine for multi-algo based CPU stress reduction
39 lines
1.1 KiB
C
39 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* Copyright (c) 2012, 2017-2018, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __DP_CLK_UTIL_H__
|
|
#define __DP_CLK_UTIL_H__
|
|
|
|
#include <linux/platform_device.h>
|
|
#include <linux/types.h>
|
|
|
|
#define DEV_DBG(fmt, args...) pr_debug(fmt, ##args)
|
|
#define DEV_INFO(fmt, args...) pr_info(fmt, ##args)
|
|
#define DEV_WARN(fmt, args...) pr_warn(fmt, ##args)
|
|
#define DEV_ERR(fmt, args...) pr_err(fmt, ##args)
|
|
|
|
enum dss_clk_type {
|
|
DSS_CLK_AHB, /* no set rate. rate controlled through rpm */
|
|
DSS_CLK_PCLK,
|
|
};
|
|
|
|
struct dss_clk {
|
|
struct clk *clk; /* clk handle */
|
|
char clk_name[32];
|
|
enum dss_clk_type type;
|
|
unsigned long rate;
|
|
unsigned long max_rate;
|
|
};
|
|
|
|
struct dss_module_power {
|
|
unsigned int num_clk;
|
|
struct dss_clk *clk_config;
|
|
};
|
|
|
|
int msm_dss_get_clk(struct device *dev, struct dss_clk *clk_arry, int num_clk);
|
|
void msm_dss_put_clk(struct dss_clk *clk_arry, int num_clk);
|
|
int msm_dss_clk_set_rate(struct dss_clk *clk_arry, int num_clk);
|
|
int msm_dss_enable_clk(struct dss_clk *clk_arry, int num_clk, int enable);
|
|
#endif /* __DP_CLK_UTIL_H__ */
|