rtc: mc146818: Fix building on more architectures
This driver makes calls to in8/out8(). On PowerPC these are separate and real calls but elsewhere they are able to simply be wrappers to inb/outb. Rework this logic to be able to build this driver on more platforms. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -11,9 +11,9 @@
|
||||
#include <command.h>
|
||||
#include <dm.h>
|
||||
#include <rtc.h>
|
||||
|
||||
#if defined(CONFIG_X86) || defined(CONFIG_TARGET_MALTA)
|
||||
#include <asm/io.h>
|
||||
|
||||
#if !defined(CONFIG_PPC)
|
||||
#define in8(p) inb(p)
|
||||
#define out8(p, v) outb(v, p)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user