The NetBSD Project

CVS log for src/sys/arch/arm/altera/cycv_platform.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.19 / (download) - annotate - [select for diffs], Fri Apr 7 08:55:29 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.18: +14 -13 lines
Diff to previous 1.18 (colored)

Rename ARM_PLATFORM to FDT_PLATFORM and make it available outside arm.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:25 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.17: +2 -4 lines
Diff to previous 1.17 (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.14.2.2 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:15 2021 UTC (3 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.14.2.1: +10 -4 lines
Diff to previous 1.14.2.1 (colored) next main 1.15 (colored)

Sync with HEAD.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 21:21:07 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.17: +2 -4 lines
Diff to previous 1.17 (colored) next main 1.18 (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.17 / (download) - annotate - [select for diffs], Thu Feb 4 22:36:52 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Changes since 1.16: +6 -3 lines
Diff to previous 1.16 (colored)

Call acpi_device_register() / fdtbus_device_register() as approrpriate.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Jan 29 13:10:07 2021 UTC (3 years, 2 months ago) by rin
Branch: MAIN
Changes since 1.15: +6 -3 lines
Diff to previous 1.15 (colored)

Fix build without MULTIPROCESSOR.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Mon Dec 14 14:37:47 2020 UTC (3 years, 3 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.14: +2 -3 lines
Diff to previous 1.14 (colored)

Sync w/ HEAD.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Nov 27 07:11:49 2020 UTC (3 years, 4 months ago) by skrll
Branch: MAIN
Changes since 1.14: +2 -3 lines
Diff to previous 1.14 (colored)

cpu_hatched_p does necessary memory barrier so remove membar_consumer
calls from before cpu_hatched_p calls.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Sep 28 11:54:22 2020 UTC (3 years, 6 months ago) by jmcneill
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.13: +2 -3 lines
Diff to previous 1.13 (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.13 / (download) - annotate - [select for diffs], Fri Jul 10 12:25:08 2020 UTC (3 years, 9 months ago) by skrll
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

Add support for KASAN on ARMv[67]

Thanks to maxv for many pointers and reviews.

Revision 1.11.2.3 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:27 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.11.2.2: +3 -3 lines
Diff to previous 1.11.2.2 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

Merge changes from current as of 20200406

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

Sync with head.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Feb 15 08:16:10 2020 UTC (4 years, 1 month 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.11: +3 -3 lines
Diff to previous 1.11 (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.11.2.2 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:50 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.11.2.1: +176 -0 lines
Diff to previous 1.11.2.1 (colored) to branchpoint 1.11 (colored)

Sync with HEAD

Revision 1.11.2.1, Mon May 20 20:17:25 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.11: +0 -176 lines
FILE REMOVED

file cycv_platform.c was added on branch phil-wifi on 2019-06-10 22:05:50 +0000

Revision 1.11 / (download) - annotate - [select for diffs], Mon May 20 20:17:25 2019 UTC (4 years, 10 months ago) by aymeric
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, 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: phil-wifi, ad-namecache
Changes since 1.10: +11 -8 lines
Diff to previous 1.10 (colored)

make CPU 1 bootstrapping work even if the kernel is not loaded close to PA 0.

More precisely, we used "B cpu_mpstart", which worked for small addresses and
thus does not work in the EFI case.
It is now replaced by a "LDR PC, =cpu_mpstart", which works for arbitrary
addresses.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jan 31 13:06:10 2019 UTC (5 years, 2 months ago) by skrll
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.9: +12 -4 lines
Diff to previous 1.9 (colored)

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

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:17 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.1.2.3: +35 -26 lines
Diff to previous 1.1.2.3 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.9 / (download) - annotate - [select for diffs], Fri Nov 2 18:13:11 2018 UTC (5 years, 5 months ago) by aymeric
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126
Changes since 1.8: +11 -4 lines
Diff to previous 1.8 (colored)

Adapt secondary CPU bootstrapping to the new generic startup code.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Nov 2 18:11:24 2018 UTC (5 years, 5 months ago) by aymeric
Branch: MAIN
Changes since 1.7: +7 -3 lines
Diff to previous 1.7 (colored)

Make early console work.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Nov 2 18:09:17 2018 UTC (5 years, 5 months ago) by aymeric
Branch: MAIN
Changes since 1.6: +5 -4 lines
Diff to previous 1.6 (colored)

. fix important typo which prevented enabling the SCU
. invalidate all cache tags of the SCU

Revision 1.6 / (download) - annotate - [select for diffs], Tue Oct 30 16:41:52 2018 UTC (5 years, 5 months ago) by skrll
Branch: MAIN
Changes since 1.5: +16 -17 lines
Diff to previous 1.5 (colored)

Retire fdt_putchar and ap_early_put_char in favour of uartputc.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Oct 28 14:58:20 2018 UTC (5 years, 5 months ago) by aymeric
Branch: MAIN
Changes since 1.4: +5 -5 lines
Diff to previous 1.4 (colored)

Use virtual addresses where virtual addresses are expected.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Sat Oct 20 06:58:24 2018 UTC (5 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.2: +28 -17 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored)

Sync with head

Revision 1.4 / (download) - annotate - [select for diffs], Sat Oct 20 06:35:34 2018 UTC (5 years, 5 months ago) by skrll
Branch: MAIN
Changes since 1.3: +2 -4 lines
Diff to previous 1.3 (colored)

Clean up around cpu_ttb and fix a bunch of builds

Revision 1.3 / (download) - annotate - [select for diffs], Thu Oct 18 09:01:52 2018 UTC (5 years, 5 months ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-compat-1020
Changes since 1.2: +26 -15 lines
Diff to previous 1.2 (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.2 / (download) - annotate - [select for diffs], Sun Oct 14 18:58:44 2018 UTC (5 years, 6 months ago) by aymeric
Branch: MAIN
Changes since 1.1: +5 -5 lines
Diff to previous 1.1 (colored)

Make the DE0 NanoSoC work also in big-endian mode

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:37 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1.2.1: +145 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

Ssync with HEAD

Revision 1.1.2.1, Wed Sep 19 17:31:38 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1: +0 -145 lines
FILE REMOVED

file cycv_platform.c was added on branch pgoyette-compat on 2018-09-30 01:45:37 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Wed Sep 19 17:31:38 2018 UTC (5 years, 6 months ago) by aymeric
Branch: MAIN
CVS Tags: pgoyette-compat-0930
Branch point for: pgoyette-compat

Add support for the DE0 NanoSoC board.

It's Cyclone V based and thus includes a dual-core Cortex A9 @925MHz.
Most standard peripherals are supported (USB, SDCard, Ethernet) and
no unusual peripheral is supported yet (FPGA, GPIO, ...)

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>