Module Name:    src
Committed By:   macallan
Date:           Thu Dec 20 21:38:23 UTC 2018

Modified Files:
        src/sys/arch/iyonix/iyonix: autoconf.c

Log Message:
set base_year_is_2k on dsrtc so we're compatible with RISC OS


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/iyonix/iyonix/autoconf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/iyonix/iyonix/autoconf.c
diff -u src/sys/arch/iyonix/iyonix/autoconf.c:1.16 src/sys/arch/iyonix/iyonix/autoconf.c:1.17
--- src/sys/arch/iyonix/iyonix/autoconf.c:1.16	Wed Nov 21 20:36:41 2018
+++ src/sys/arch/iyonix/iyonix/autoconf.c	Thu Dec 20 21:38:23 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: autoconf.c,v 1.16 2018/11/21 20:36:41 macallan Exp $	*/
+/*	$NetBSD: autoconf.c,v 1.17 2018/12/20 21:38:23 macallan Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.16 2018/11/21 20:36:41 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.17 2018/12/20 21:38:23 macallan Exp $");
 
 #include "opt_md.h"
 
@@ -187,4 +187,8 @@ device_register(device_t dev, void *aux)
 			prop_dictionary_set_bool(dict, "is_bgr", 1);
 		prop_dictionary_set_uint32(dict, "address", fbaddr);
 	}
+	if (device_is_a(dev, "dsrtc")) {
+		prop_dictionary_t dict = device_properties(dev);
+		prop_dictionary_set_bool(dict, "base_year_is_2000", 1);
+	}
 }

Reply via email to