drivers: samsung: Introduce exynos-speedy

Speedy is a serial communication bus that is typically used in
Exynos SoC devices for communicating with a PMIC. Implement
basic support for it, as well as add its first user - s2mps17 in
board-dreamlte.

Also, while at it, implement a simple readl function.

Signed-off-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
This commit is contained in:
Ivaylo Ivanov committed 2024-10-28 15:09:59 +02:00
1 parent 8b562d28fa
commit eba7aec49d
6 files changed
+331 -5

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
/*
* Copyright (c) 2024 Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
* Copyright (c) 2024 Markuss Broks <markuss.broks@gmail.com>
*
* Bindings for exynos-speedy
*/
#ifndef EXYNOS_SPEEDY_H_
#define EXYNOS_SPEEDY_H_
struct speedy_transaction {
unsigned long base;
unsigned int slave;
unsigned int offset;
unsigned int val;
};
extern int speedy_read(struct speedy_transaction *tr);
extern int speedy_write(struct speedy_transaction *tr);
#endif /* EXYNOS_SPEEDY_H_ */