The NetBSD Project

CVS log for src/sys/arch/arm/vexpress/vexpress_platform.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / arm / vexpress

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.23 / (download) - annotate - [select for diffs], Fri Apr 7 08:55:31 2023 UTC (12 months, 1 week ago) by skrll
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.22: +12 -12 lines
Diff to previous 1.22 (colored)

Rename ARM_PLATFORM to FDT_PLATFORM and make it available outside arm.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:29 2021 UTC (2 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.21: +2 -3 lines
Diff to previous 1.21 (colored)

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:19 2021 UTC (3 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

Sync with HEAD.

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 21:21:08 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.21: +2 -3 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

- FDT device enumeration now sets the device handle using CFARG_DEVHANDLE.
- fdtbus_device_register() is now obsolete, so G/C it.
- of_device_register() is now obsolete, so G/C it.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Feb 5 08:07:14 2021 UTC (3 years, 2 months ago) by skrll
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

Fix build

Revision 1.20 / (download) - annotate - [select for diffs], Thu Feb 4 22:36:54 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored)

Call acpi_device_register() / fdtbus_device_register() as approrpriate.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Oct 30 18:54:36 2020 UTC (3 years, 5 months ago) by skrll
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

Retire arm_[di]sb in favour of the isb() and dsb(sy) macro invocations.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Sep 28 11:54:23 2020 UTC (3 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.17: +2 -4 lines
Diff to previous 1.17 (colored)

Get rid of a4x bus_space tag from fdtbus_attach_args. The only consumer
of this was various com(4) glue so modify all of that to use the new
com_init_regs_stride instead.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jul 10 12:25:10 2020 UTC (3 years, 9 months ago) by skrll
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

Add support for KASAN on ARMv[67]

Thanks to maxv for many pointers and reviews.

Revision 1.8.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:38 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.8.2.2: +0 -10 lines
Diff to previous 1.8.2.2 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:31 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.8.2.1: +15 -17 lines
Diff to previous 1.8.2.1 (colored) to branchpoint 1.8 (colored)

Merge changes from current as of 20200406

Revision 1.15.4.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:18:20 2020 UTC (4 years, 1 month ago) by ad
Branch: ad-namecache
Changes since 1.15: +15 -17 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

Sync with head.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Feb 15 08:16:12 2020 UTC (4 years, 2 months ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Changes since 1.15: +15 -17 lines
Diff to previous 1.15 (colored)

Various updates and improvements to cpu start up on arm/aarch64

- start sharing more code around the AP startup messaging.
- call arm_cpu_topology_set early so that ci_core_id is available for
  drivers, e.g. bcm2835_intr.c
- both arm and aarch64 now have
  - a static cpu_info_store array
  - the same arm_cpu_{hatched,mbox}

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jul 23 12:34:47 2019 UTC (4 years, 8 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-20191119, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.14: +2 -12 lines
Diff to previous 1.14 (colored)

No need for console=fb handling with WSDISPLAY_MULTICONS

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:57 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.8: +48 -37 lines
Diff to previous 1.8 (colored)

Sync with HEAD

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jan 31 13:16:31 2019 UTC (5 years, 2 months ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-20190609, isaki-audio2-base, isaki-audio2
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

Fix build

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jan 31 13:06:10 2019 UTC (5 years, 2 months ago) by skrll
Branch: MAIN
Changes since 1.12: +11 -4 lines
Diff to previous 1.12 (colored)

Change ap_mpstart to return non-zero value if any/all APs don't start.

Revision 1.6.2.6 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:20 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.6.2.5: +23 -23 lines
Diff to previous 1.6.2.5 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.12 / (download) - annotate - [select for diffs], Tue Oct 30 16:41:52 2018 UTC (5 years, 5 months ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126
Changes since 1.11: +23 -23 lines
Diff to previous 1.11 (colored)

Retire fdt_putchar and ap_early_put_char in favour of uartputc.

Revision 1.6.2.5 / (download) - annotate - [select for diffs], Sat Oct 20 06:58:26 2018 UTC (5 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.6.2.4: +11 -7 lines
Diff to previous 1.6.2.4 (colored) to branchpoint 1.6 (colored)

Sync with head

Revision 1.11 / (download) - annotate - [select for diffs], Thu Oct 18 09:01:53 2018 UTC (5 years, 5 months ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-compat-1020
Changes since 1.10: +11 -7 lines
Diff to previous 1.10 (colored)

Provide generic start code that assumes the MMU is off and caches are
disabled as per the linux booting protocol for ARMv6 and ARMv7 boards.
u-boot image type should be changed to 'linux' for correct behaviour.

The new start code builds a minimal "bootstrap" L1PT with cached access
disabled and uses the same table for all processors.  AP startup is
performed in less steps and more code is written in C.

The bootstrap tables and stack are placed into an (orphaned) section
"_init_memory" which is given to uvm when it is no longer used.

Various kernels have been converted to use this code and tested.  Some
boards were provided by TNF. Thanks!

The GENERIC kernel now boots on boards using the TEGRA, SUNXI and EXYNOS
kernels. The GENERIC kernel will also work on RPI2 using u-boot.

Thanks to martin@ and aymeric@ for testing on parallella and nanosoc
respectively

Revision 1.6.2.4 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:39 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.6.2.3: +3 -3 lines
Diff to previous 1.6.2.3 (colored) to branchpoint 1.6 (colored)

Ssync with HEAD

Revision 1.10 / (download) - annotate - [select for diffs], Fri Sep 21 12:04:07 2018 UTC (5 years, 6 months ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-compat-0930
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Centralise defparam CONSADDR, CONSPEED, CONMODE and CONADDR into
opt_console.h and adjust.

Revision 1.6.2.3 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:27 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.6.2.2: +10 -10 lines
Diff to previous 1.6.2.2 (colored) to branchpoint 1.6 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.9 / (download) - annotate - [select for diffs], Sun Aug 5 14:02:35 2018 UTC (5 years, 8 months ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-compat-0906
Changes since 1.8: +10 -10 lines
Diff to previous 1.8 (colored)

Add prefixes to struct arm_platform{,_info} members.

No functional change.

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Mon Jun 25 07:25:40 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.6.2.1: +18 -3 lines
Diff to previous 1.6.2.1 (colored) to branchpoint 1.6 (colored)

Sync with HEAD

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jun 11 19:49:18 2018 UTC (5 years, 10 months ago) by jakllsch
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728, pgoyette-compat-0625
Branch point for: phil-wifi
Changes since 1.7: +18 -3 lines
Diff to previous 1.7 (colored)

fill in vexpress_platform_early_putchar(); make comment about CONSADDR

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Thu Mar 22 01:44:44 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored)

Synch with HEAD, resolve conflicts

Revision 1.7 / (download) - annotate - [select for diffs], Sat Mar 17 18:34:09 2018 UTC (6 years, 1 month ago) by ryo
Branch: MAIN
CVS Tags: pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored)

move from sys/arch/arm/arm32/armv7_generic_dma.c to sys/arch/arm/arm/arm_generic_dma.c,
and change variable name from armv7_generic_dma_tag to arm_generic_dma_tag

no functional change. (preliminary changes for merging aarch64)

Revision 1.6 / (download) - annotate - [select for diffs], Tue Dec 19 09:04:19 2017 UTC (6 years, 3 months ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

Trailing whitespace

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:35:56 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.5.2.1: +217 -0 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

update from HEAD

Revision 1.5.2.1, Sat Nov 18 00:25:43 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.5: +0 -217 lines
FILE REMOVED

file vexpress_platform.c was added on branch tls-maxphys on 2017-12-03 11:35:56 +0000

Revision 1.5 / (download) - annotate - [select for diffs], Sat Nov 18 00:25:43 2017 UTC (6 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Branch point for: tls-maxphys
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Fix clcd node path for newer dtb

Revision 1.4 / (download) - annotate - [select for diffs], Sun Oct 22 20:35:32 2017 UTC (6 years, 5 months ago) by skrll
Branch: MAIN
Changes since 1.3: +2 -14 lines
Diff to previous 1.3 (colored)

Centralise defines for DEVMAP_{ALIGN,SIZE,ENTRY,ENTRY_END}

Revision 1.3.4.2 / (download) - annotate - [select for diffs], Mon Aug 28 17:51:32 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.3.4.1: +229 -0 lines
Diff to previous 1.3.4.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Sync with HEAD

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Tue Jun 6 16:26:53 2017 UTC (6 years, 10 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.2: +14 -2 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #13):
	sys/arch/arm/fdt/plfb_fdt.c: revision 1.2
	sys/arch/arm/vexpress/vexpress_platform.c: revision 1.3
	sys/arch/evbarm/conf/VEXPRESS_A15: revision 1.13
	sys/arch/evbarm/fdt/fdt_machdep.c: revisions 1.5, 1.6
	sys/dev/ic/pl050.c: revision 1.2
Fix spelling of WS_DEFAULT_FG and WS_KERNEL_FG options.
--
Attach kbd slot to console
--
Allow plfb to be the console device
--
Add support for stdout-path= kernel cmdline option to override the
console device specified in the FDT.
--
Initialize boot_args before bootstrap for the benefit of platform code.
--
Allow 'console=fb' to act as a shortcut on vexpress for
'stdout-path=/smb@08000000/motherboard/iofpga@3,00000000/clcd@1f0000'

Revision 1.3.4.1, Tue Jun 6 09:56:57 2017 UTC (6 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.3: +0 -229 lines
FILE REMOVED

file vexpress_platform.c was added on branch nick-nhusb on 2017-08-28 17:51:32 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jun 6 09:56:57 2017 UTC (6 years, 10 months ago) by jmcneill
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825
Branch point for: nick-nhusb
Changes since 1.2: +14 -2 lines
Diff to previous 1.2 (colored)

Allow 'console=fb' to act as a shortcut on vexpress for
'stdout-path=/smb@08000000/motherboard/iofpga@3,00000000/clcd@1f0000'

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jun 2 20:16:05 2017 UTC (6 years, 10 months ago) by jmcneill
Branch: MAIN
CVS Tags: netbsd-8-base
Branch point for: netbsd-8
Changes since 1.1: +53 -6 lines
Diff to previous 1.1 (colored)

Add SMP support to VEXPRESS_A15 kernel. Enable with '-smp 2' on qemu
command line.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Jun 2 15:22:47 2017 UTC (6 years, 10 months ago) by jmcneill
Branch: MAIN

Switch VEXPRESS_A15 kernel to use FDT and GENERIC.common. The dtb for this
kernel can be found in the sysutils/dtb-arm-vexpress package as
vexpress-v2p-ca15-tc1.dtb

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>