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
2024-10-28 15:00:03 +02:00
parent 8b562d28fa
commit eba7aec49d
6 changed files with 331 additions and 5 deletions

View File

@@ -216,3 +216,8 @@ void writel(unsigned int value, void* address)
volatile unsigned int* ptr = (volatile unsigned int*)address;
*ptr = value;
}
uint32_t readl(volatile uint32_t *addr)
{
return *addr;
}