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

Commit 0c537bb9 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "coresight: Add common header file"

parents 3b970173 efeb15f4
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)