Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efeb15f4 authored by Mulu He's avatar Mulu He Committed by Gerrit - the friendly Code Review server
Browse files

coresight: Add common header file



Separate qcom changes into coresight-common.h from coresight-priv.h.

Change-Id: I1c6ee3a885a41f26519e5cacaef2b331719f9cee
Signed-off-by: default avatarMulu He <muluhe@codeaurora.org>
parent 31b10e8d
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
 */

#ifndef _CORESIGHT_COMMON_H
#define _CORESIGHT_COMMON_H

#define BM(lsb, msb)		((BIT(msb) - BIT(lsb)) + BIT(msb))
#define BVAL(val, n)            ((val & BIT(n)) >> n)

#endif
+2 −1
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) 2011-2012, The Linux Foundation. All rights reserved.
 * Copyright (c) 2011-2012,2018, The Linux Foundation. All rights reserved.
 */

#ifndef _CORESIGHT_PRIV_H
@@ -10,6 +10,7 @@
#include <linux/io.h>
#include <linux/coresight.h>
#include <linux/pm_runtime.h>
#include "coresight-common.h"

/*
 * Coresight management registers (0xf00-0xfcc)