mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 19:40:56 +07:00
0792a2c8e0
Now that the 68k Mac port has adopted the via-pmu driver, the same RTC
code can be shared between m68k and powerpc. Replace duplicated code in
arch/powerpc and arch/m68k with common RTC accessors for Cuda and PMU.
Drop the problematic WARN_ON which was introduced in commit 22db552b50
("powerpc/powermac: Fix rtc read/write functions").
Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
24 lines
613 B
C
24 lines
613 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Definitions for talking to the CUDA. The CUDA is a microcontroller
|
|
* which controls the ADB, system power, RTC, and various other things.
|
|
*
|
|
* Copyright (C) 1996 Paul Mackerras.
|
|
*/
|
|
#ifndef _LINUX_CUDA_H
|
|
#define _LINUX_CUDA_H
|
|
|
|
#include <linux/rtc.h>
|
|
#include <uapi/linux/cuda.h>
|
|
|
|
|
|
extern int find_via_cuda(void);
|
|
extern int cuda_request(struct adb_request *req,
|
|
void (*done)(struct adb_request *), int nbytes, ...);
|
|
extern void cuda_poll(void);
|
|
|
|
extern time64_t cuda_get_time(void);
|
|
extern int cuda_set_rtc_time(struct rtc_time *tm);
|
|
|
|
#endif /* _LINUX_CUDA_H */
|