From: Alan Cox Date: Sun, 27 Jan 2019 21:30:26 +0000 (+0000) Subject: sc108: use the probing ds1302 support X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=e45c0873ef92a40cf3e9a933c8cbeae322dc958e;p=FUZIX.git sc108: use the probing ds1302 support --- diff --git a/Kernel/platform-sc108/devices.c b/Kernel/platform-sc108/devices.c index 885f9d2d..846d2967 100644 --- a/Kernel/platform-sc108/devices.c +++ b/Kernel/platform-sc108/devices.c @@ -7,7 +7,6 @@ #include #include #include -#include struct devsw dev_tab[] = /* The device driver switch table */ { diff --git a/Kernel/platform-sc108/discard.c b/Kernel/platform-sc108/discard.c index b54093d7..757b613d 100644 --- a/Kernel/platform-sc108/discard.c +++ b/Kernel/platform-sc108/discard.c @@ -18,6 +18,9 @@ void map_init(void) kputs("Z80 SIO detected at 0x84.\n"); if (ctc_present) kputs("Z80 CTC detected at 0x88.\n"); + ds1302_init(); + if (ds1302_present) + kputs("DS1302 detected at 0xC0.\n"); } /* @@ -43,7 +46,6 @@ void platform_swap_found(uint8_t letter, uint8_t m) void device_init(void) { - ds1302_init(); #ifdef CONFIG_IDE devide_init(); #endif