CVS commit: src/sys/arch/zaurus/zaurus

2023-12-23 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Dec 23 18:59:27 UTC 2023

Modified Files:
src/sys/arch/zaurus/zaurus: machdep.c

Log Message:
Remove "#ifdef RAMDISK_HOOKS" block, RB_DFLTROOT boot flag is obsolete long ago.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/sys/arch/zaurus/zaurus/machdep.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/zaurus/zaurus/machdep.c
diff -u src/sys/arch/zaurus/zaurus/machdep.c:1.52 src/sys/arch/zaurus/zaurus/machdep.c:1.53
--- src/sys/arch/zaurus/zaurus/machdep.c:1.52	Thu Oct 12 11:33:39 2023
+++ src/sys/arch/zaurus/zaurus/machdep.c	Sat Dec 23 18:59:27 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.52 2023/10/12 11:33:39 skrll Exp $	*/
+/*	$NetBSD: machdep.c,v 1.53 2023/12/23 18:59:27 andvar Exp $	*/
 /*	$OpenBSD: zaurus_machdep.c,v 1.25 2006/06/20 18:24:04 todd Exp $	*/
 
 /*
@@ -107,7 +107,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.52 2023/10/12 11:33:39 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.53 2023/12/23 18:59:27 andvar Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -674,9 +674,6 @@ initarm(void *arg)
 		boothowto = RB_AUTOBOOT;
 	}
 	*magicaddr = 0xdeadbeef;
-#ifdef RAMDISK_HOOKS
-boothowto |= RB_DFLTROOT;
-#endif /* RAMDISK_HOOKS */
 	if (boothowto & RB_MD1) {
 		/* serial console */
 		console = "ffuart";



CVS commit: src/sys/arch/zaurus/zaurus

2023-12-23 Thread Andrius Varanavicius
Module Name:src
Committed By:   andvar
Date:   Sat Dec 23 18:59:27 UTC 2023

Modified Files:
src/sys/arch/zaurus/zaurus: machdep.c

Log Message:
Remove "#ifdef RAMDISK_HOOKS" block, RB_DFLTROOT boot flag is obsolete long ago.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/sys/arch/zaurus/zaurus/machdep.c

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



CVS commit: src/sys/arch/zaurus/zaurus

2022-01-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan  2 16:40:46 UTC 2022

Modified Files:
src/sys/arch/zaurus/zaurus: machdep.c

Log Message:
fix the build (KASSERT)


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/zaurus/zaurus/machdep.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/zaurus/zaurus/machdep.c
diff -u src/sys/arch/zaurus/zaurus/machdep.c:1.48 src/sys/arch/zaurus/zaurus/machdep.c:1.49
--- src/sys/arch/zaurus/zaurus/machdep.c:1.48	Tue Aug 17 18:00:31 2021
+++ src/sys/arch/zaurus/zaurus/machdep.c	Sun Jan  2 11:40:46 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.48 2021/08/17 22:00:31 andvar Exp $	*/
+/*	$NetBSD: machdep.c,v 1.49 2022/01/02 16:40:46 christos Exp $	*/
 /*	$OpenBSD: zaurus_machdep.c,v 1.25 2006/06/20 18:24:04 todd Exp $	*/
 
 /*
@@ -107,7 +107,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.48 2021/08/17 22:00:31 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.49 2022/01/02 16:40:46 christos Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -856,7 +856,9 @@ initarm(void *arg)
 	valloc_pages(kernelstack, UPAGES);
 
 	/* Allocate enough pages for cleaning the Mini-Data cache. */
+#ifdef DIAGNOSTIC
 	KASSERT(xscale_minidata_clean_size <= PAGE_SIZE);
+#endif
 	valloc_pages(minidataclean, 1);
 
 #ifdef KLOADER



CVS commit: src/sys/arch/zaurus/zaurus

2022-01-02 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan  2 16:40:46 UTC 2022

Modified Files:
src/sys/arch/zaurus/zaurus: machdep.c

Log Message:
fix the build (KASSERT)


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/zaurus/zaurus/machdep.c

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



CVS commit: src/sys/arch/zaurus/zaurus

2019-11-13 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Wed Nov 13 17:48:03 UTC 2019

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

Log Message:
Fix attach failure of zaudio(4) WM8731 (C7x0/860) and WM8750 (C1000/3x00).

The new MI iic(4) layer requires an explicit quirk info of PROBE_STRATEGY
via device properties.  Fixes PR kern/54658.

Should be pulled up to netbsd-9.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/zaurus/zaurus/autoconf.c

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



CVS commit: src/sys/arch/zaurus/zaurus

2019-11-13 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Wed Nov 13 17:48:03 UTC 2019

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

Log Message:
Fix attach failure of zaudio(4) WM8731 (C7x0/860) and WM8750 (C1000/3x00).

The new MI iic(4) layer requires an explicit quirk info of PROBE_STRATEGY
via device properties.  Fixes PR kern/54658.

Should be pulled up to netbsd-9.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/zaurus/zaurus/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/zaurus/zaurus/autoconf.c
diff -u src/sys/arch/zaurus/zaurus/autoconf.c:1.12 src/sys/arch/zaurus/zaurus/autoconf.c:1.13
--- src/sys/arch/zaurus/zaurus/autoconf.c:1.12	Sun Jul 29 18:05:47 2012
+++ src/sys/arch/zaurus/zaurus/autoconf.c	Wed Nov 13 17:48:03 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: autoconf.c,v 1.12 2012/07/29 18:05:47 mlelstv Exp $	*/
+/*	$NetBSD: autoconf.c,v 1.13 2019/11/13 17:48:03 tsutsui Exp $	*/
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.12 2012/07/29 18:05:47 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.13 2019/11/13 17:48:03 tsutsui Exp $");
 
 #include "opt_md.h"
 
@@ -43,6 +43,8 @@ __KERNEL_RCSID(0, "$NetBSD: autoconf.c,v
 #include 
 #include 
 
+#include 
+
 #include 
 #include 
 #include 
@@ -219,5 +221,13 @@ void
 device_register(device_t dev, void *aux)
 {
 
-	/* Nothing to do */
+	/*
+	 * I2C bus conntected to pxaiic(4) for zaudio(4) devices has
+	 * limited capabilities.
+	 */
+	if (device_is_a(dev, "iic") &&
+	device_is_a(dev->dv_parent, "ziic")) {
+		(void)prop_dictionary_set_cstring_nocopy(device_properties(dev),
+		I2C_PROP_INDIRECT_PROBE_STRATEGY, I2C_PROBE_STRATEGY_NONE);
+	}
 }



CVS commit: src/sys/arch/zaurus/zaurus

2019-11-04 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Mon Nov  4 10:36:18 UTC 2019

Modified Files:
src/sys/arch/zaurus/zaurus: machdep.c

Log Message:
Fix build with VERBOSE_INIT_ARM without DIAGNOSTIC.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/arch/zaurus/zaurus/machdep.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/zaurus/zaurus/machdep.c
diff -u src/sys/arch/zaurus/zaurus/machdep.c:1.43 src/sys/arch/zaurus/zaurus/machdep.c:1.44
--- src/sys/arch/zaurus/zaurus/machdep.c:1.43	Sat Oct 19 14:42:30 2019
+++ src/sys/arch/zaurus/zaurus/machdep.c	Mon Nov  4 10:36:18 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.43 2019/10/19 14:42:30 tsutsui Exp $	*/
+/*	$NetBSD: machdep.c,v 1.44 2019/11/04 10:36:18 tsutsui Exp $	*/
 /*	$OpenBSD: zaurus_machdep.c,v 1.25 2006/06/20 18:24:04 todd Exp $	*/
 
 /*
@@ -107,7 +107,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.43 2019/10/19 14:42:30 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.44 2019/11/04 10:36:18 tsutsui Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -635,7 +635,7 @@ hw_isc1000(void)
 vaddr_t
 initarm(void *arg)
 {
-#ifdef DIAGNOSTIC
+#if defined(DIAGNOSTIC) || defined(VERBOSE_INIT_ARM)
 	extern vsize_t xscale_minidata_clean_size; /* used in KASSERT */
 #endif
 	extern vaddr_t xscale_cache_clean_addr;



CVS commit: src/sys/arch/zaurus/zaurus

2019-11-04 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Mon Nov  4 10:36:18 UTC 2019

Modified Files:
src/sys/arch/zaurus/zaurus: machdep.c

Log Message:
Fix build with VERBOSE_INIT_ARM without DIAGNOSTIC.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/arch/zaurus/zaurus/machdep.c

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



CVS commit: src/sys/arch/zaurus/zaurus

2019-10-19 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Sat Oct 19 14:42:30 UTC 2019

Modified Files:
src/sys/arch/zaurus/zaurus: machdep.c

Log Message:
Fix a build error with options VERBOSE_INIT_ARM.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/zaurus/zaurus/machdep.c

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



CVS commit: src/sys/arch/zaurus/zaurus

2019-10-19 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Sat Oct 19 14:42:30 UTC 2019

Modified Files:
src/sys/arch/zaurus/zaurus: machdep.c

Log Message:
Fix a build error with options VERBOSE_INIT_ARM.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/zaurus/zaurus/machdep.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/zaurus/zaurus/machdep.c
diff -u src/sys/arch/zaurus/zaurus/machdep.c:1.42 src/sys/arch/zaurus/zaurus/machdep.c:1.43
--- src/sys/arch/zaurus/zaurus/machdep.c:1.42	Tue Jul 16 14:41:49 2019
+++ src/sys/arch/zaurus/zaurus/machdep.c	Sat Oct 19 14:42:30 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.42 2019/07/16 14:41:49 skrll Exp $	*/
+/*	$NetBSD: machdep.c,v 1.43 2019/10/19 14:42:30 tsutsui Exp $	*/
 /*	$OpenBSD: zaurus_machdep.c,v 1.25 2006/06/20 18:24:04 todd Exp $	*/
 
 /*
@@ -107,7 +107,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.42 2019/07/16 14:41:49 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.43 2019/10/19 14:42:30 tsutsui Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -772,7 +772,7 @@ initarm(void *arg)
 
 #ifdef VERBOSE_INIT_ARM
 	/* Tell the user about the memory */
-	printf("physmemory: %d pages at 0x%08lx -> 0x%08lx\n", physmem,
+	printf("physmemory: %lu pages at 0x%08lx -> 0x%08lx\n", physmem,
 	physical_start, physical_end - 1);
 #endif