| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: pq3cfi.c,v 1.6 2020/07/06 09:34:16 rin Exp $ */ | | 1 | /* $NetBSD: pq3cfi.c,v 1.7 2020/07/06 10:22:44 rin Exp $ */ |
2 | /*- | | 2 | /*- |
3 | * Copyright (c) 2011 The NetBSD Foundation, Inc. | | 3 | * Copyright (c) 2011 The NetBSD Foundation, Inc. |
4 | * All rights reserved. | | 4 | * All rights reserved. |
5 | * | | 5 | * |
6 | * This code is derived from software contributed to The NetBSD Foundation | | 6 | * This code is derived from software contributed to The NetBSD Foundation |
7 | * by Cliff Neighbors. | | 7 | * by Cliff Neighbors. |
8 | * | | 8 | * |
9 | * Redistribution and use in source and binary forms, with or without | | 9 | * Redistribution and use in source and binary forms, with or without |
10 | * modification, are permitted provided that the following conditions | | 10 | * modification, are permitted provided that the following conditions |
11 | * are met: | | 11 | * are met: |
12 | * 1. Redistributions of source code must retain the above copyright | | 12 | * 1. Redistributions of source code must retain the above copyright |
13 | * notice, this list of conditions and the following disclaimer. | | 13 | * notice, this list of conditions and the following disclaimer. |
14 | * 2. Redistributions in binary form must reproduce the above copyright | | 14 | * 2. Redistributions in binary form must reproduce the above copyright |
| @@ -23,34 +23,30 @@ | | | @@ -23,34 +23,30 @@ |
23 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | | 23 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
24 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | | 24 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
25 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | | 25 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
26 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | | 26 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
27 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | | 27 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
28 | * POSSIBILITY OF SUCH DAMAGE. | | 28 | * POSSIBILITY OF SUCH DAMAGE. |
29 | */ | | 29 | */ |
30 | | | 30 | |
31 | /* | | 31 | /* |
32 | * NOR CFI driver support for booke | | 32 | * NOR CFI driver support for booke |
33 | */ | | 33 | */ |
34 | | | 34 | |
35 | #include <sys/cdefs.h> | | 35 | #include <sys/cdefs.h> |
36 | __KERNEL_RCSID(0, "$NetBSD: pq3cfi.c,v 1.6 2020/07/06 09:34:16 rin Exp $"); | | 36 | __KERNEL_RCSID(0, "$NetBSD: pq3cfi.c,v 1.7 2020/07/06 10:22:44 rin Exp $"); |
37 | | | 37 | |
38 | #include "locators.h" | | 38 | #include "locators.h" |
39 | | | 39 | |
40 | #ifdef _KERNEL_OPT | | | |
41 | #include "opt_flash.h" | | | |
42 | #endif | | | |
43 | | | | |
44 | #include <sys/param.h> | | 40 | #include <sys/param.h> |
45 | #include <sys/systm.h> | | 41 | #include <sys/systm.h> |
46 | #include <sys/cdefs.h> | | 42 | #include <sys/cdefs.h> |
47 | #include <sys/device.h> | | 43 | #include <sys/device.h> |
48 | #include <sys/endian.h> | | 44 | #include <sys/endian.h> |
49 | | | 45 | |
50 | #include <sys/bus.h> | | 46 | #include <sys/bus.h> |
51 | | | 47 | |
52 | #include <powerpc/booke/cpuvar.h> | | 48 | #include <powerpc/booke/cpuvar.h> |
53 | | | 49 | |
54 | #include <dev/nor/nor.h> | | 50 | #include <dev/nor/nor.h> |
55 | #include <dev/nor/cfi.h> | | 51 | #include <dev/nor/cfi.h> |
56 | | | 52 | |