The NetBSD Project

CVS log for src/sys/arch/arm/samsung/exynos_soc.c

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

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.41 / (download) - annotate - [select for diffs], Sat Oct 29 13:29:46 2022 UTC (17 months, 3 weeks ago) by jmcneill
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, 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, HEAD
Changes since 1.40: +5 -4 lines
Diff to previous 1.40 (colored)

Build fixes.

Revision 1.40 / (download) - annotate - [select for diffs], Sun Sep 19 10:34:08 2021 UTC (2 years, 7 months ago) by andvar
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

fix various typos in comments, messages and documentation.

Revision 1.39 / (download) - annotate - [select for diffs], Wed Oct 31 08:41:47 2018 UTC (5 years, 5 months ago) by skrll
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-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, 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, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.38: +3 -4 lines
Diff to previous 1.38 (colored)

Fix non-DIGNOSTIC builds

Revision 1.38 / (download) - annotate - [select for diffs], Thu Oct 18 09:01:53 2018 UTC (5 years, 6 months ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-compat-1020
Changes since 1.37: +6 -2 lines
Diff to previous 1.37 (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.37 / (download) - annotate - [select for diffs], Mon Oct 8 08:16:59 2018 UTC (5 years, 6 months ago) by skrll
Branch: MAIN
Changes since 1.36: +33 -26 lines
Diff to previous 1.36 (colored)

Remove a build dependency on SOC_EXYNOS4 and SOC_EXYNOS5.  Now runtime.

Revision 1.36 / (download) - annotate - [select for diffs], Fri Sep 14 11:58:38 2018 UTC (5 years, 7 months ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-compat-0930
Changes since 1.35: +4 -3 lines
Diff to previous 1.35 (colored)

exynos_bootstrap doesn't need an argument

Revision 1.35 / (download) - annotate - [select for diffs], Sun Aug 19 07:27:33 2018 UTC (5 years, 8 months ago) by skrll
Branch: MAIN
CVS Tags: pgoyette-compat-0906
Changes since 1.34: +5 -10 lines
Diff to previous 1.34 (colored)

Some changes to bring back exynos4 support and make exynos5 support more
modern/generic

- Provide a exynos_platform_early_putchar based on CONSADDR and remove
  EXYNOS_CONSOLE_EARLY
- Provide devmaps for exynos4 and exynos5
- Simplify exynos_bootstrap
- Update exynos_start.S to use exynos_platform_early_putchar - this
  needs a fix in a9_subr.S for arm_cpuinit to save lr in a callee save
  register and not use ip.  Maybe this change is safe now, but too much
  testing required to commit it now.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jul 31 06:46:25 2018 UTC (5 years, 8 months ago) by skrll
Branch: MAIN
Changes since 1.33: +3 -2 lines
Diff to previous 1.33 (colored)

Sprinkle #include "opt_arm_debug.h" where VERBOSE_INIT_ARM is used

Revision 1.33 / (download) - annotate - [select for diffs], Thu Jul 5 13:11:58 2018 UTC (5 years, 9 months ago) by jmcneill
Branch: MAIN
CVS Tags: pgoyette-compat-0728
Changes since 1.32: +2 -43 lines
Diff to previous 1.32 (colored)

Replace sscom with a much simpler uart driver. The simpler driver is 1/4th
the size and has the added benefit of not freezing when an arrow key is
pressed.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Jun 10 15:13:18 2017 UTC (6 years, 10 months ago) by jmcneill
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.31: +26 -22 lines
Diff to previous 1.31 (colored)

Get the EXYNOS kernel building again with recent FDT changes. Untested.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Dec 21 04:58:50 2015 UTC (8 years, 4 months ago) by marty
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, netbsd-8-base, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.30: +44 -47 lines
Diff to previous 1.30 (colored)

XU4 FDT final checkpoint

step N of N: get rid of baggage by removing whole files.  What's left is in
approximately the same shape as when the FDT update started, that is mostly
broken. What's missing is most of the 76 devices recognized in the dtd. In
other words, This is barely the start of a port.

Next up, gpio then i2c, followed either by straightening out usb or getting
the sdhc driver to work -- both probably require getting the interrupt
combiner to work first. A large chunk of work is left to do on the clocks.
I barely got them attaching to fdt and didn't do anything to take advantage
of the information in the dtd.

None of the other existing drivers, such as they are, properly request gpios,
i2c or clocks, and, of course power domains are off the table.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Dec 12 21:57:40 2015 UTC (8 years, 4 months ago) by marty
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

XU4: Fix build

missed a dependency on evbarm/odroid that should have been evbarm/exynos.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Dec 11 04:03:44 2015 UTC (8 years, 4 months ago) by marty
Branch: MAIN
Changes since 1.28: +2 -86 lines
Diff to previous 1.28 (colored)

EXYNOS Rewrite step 2 of N: New exynos_gpio.c

I can't bring  myself to fully nuke from orbit, so there are really two
things in this checkin:

1) A major rewrite of exynos_gpio.c, based mostly on the Nvidia
   tegra_gpio.c file.  This is missing a major function that will be
   added the first time a customer for it is integrated, which is meant to
   select pins based on aliases, rather than pin bank names.

2) A small number of changes to other files that keep the tree compiling
   and progressing as far as ever; except it is now 5422 specific and
   will not boot on the other exynos socs, which I don't have hardware to
   test.

The choice to remove functionality is always controversial, but since
we are doing a significant rewrite and I don't have either
documentation or hardware *and* none of the code really works now
anyway, I'm taking the stance that only tested functionality should be
added, and that we'll layer the other exynos socs on this once it
fully boots.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Nov 19 05:44:41 2015 UTC (8 years, 5 months ago) by marty
Branch: MAIN
Changes since 1.27: +10 -2 lines
Diff to previous 1.27 (colored)

add 5422 gic handling to attach code

Revision 1.27 / (download) - annotate - [select for diffs], Mon Dec 29 22:58:59 2014 UTC (9 years, 3 months ago) by skrll
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406
Changes since 1.26: +45 -60 lines
Diff to previous 1.26 (colored)

Fixup USB Phy initialisation for Exynos5410.

odroid-xu now detects USB devices.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Dec 29 22:34:08 2014 UTC (9 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (colored)

Trailing whitespace.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Oct 2 11:27:09 2014 UTC (9 years, 6 months ago) by reinoud
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.24: +4 -3 lines
Diff to previous 1.24 (colored)

Add KPLL for Exynos5 and EPLL is called DPLL on the 5410 :-/

Revision 1.24 / (download) - annotate - [select for diffs], Thu Oct 2 11:17:50 2014 UTC (9 years, 6 months ago) by reinoud
Branch: MAIN
Changes since 1.23: +19 -5 lines
Diff to previous 1.23 (colored)

Disable maximum frequency setting for exynos5

While here add more known frequency settings for exynos4. They are currently
disabled since derived clocks are not adjusted.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Sep 30 14:23:41 2014 UTC (9 years, 6 months ago) by reinoud
Branch: MAIN
Changes since 1.22: +342 -17 lines
Diff to previous 1.22 (colored)

arch/arm/samsung/ cleanup : move SoC specific power and phy routines into
exynos_soc.c and move Odroid board specific tweaks to odroid_machdep.c

Revision 1.22 / (download) - annotate - [select for diffs], Tue Sep 30 12:55:29 2014 UTC (9 years, 6 months ago) by reinoud
Branch: MAIN
Changes since 1.21: +13 -2 lines
Diff to previous 1.21 (colored)

Provide exynos_sysreg_bsh as a global bus_space_subregion

Revision 1.21 / (download) - annotate - [select for diffs], Mon Sep 29 14:47:52 2014 UTC (9 years, 6 months ago) by reinoud
Branch: MAIN
Changes since 1.20: +97 -77 lines
Diff to previous 1.20 (colored)

Phase 2 of samsung/exynos_* cleanup

Revision 1.20 / (download) - annotate - [select for diffs], Fri Sep 5 08:01:05 2014 UTC (9 years, 7 months ago) by skrll
Branch: MAIN
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored)

RCSId police

Revision 1.19 / (download) - annotate - [select for diffs], Tue Sep 2 14:07:50 2014 UTC (9 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.18: +46 -2 lines
Diff to previous 1.18 (colored)

Dump the PLL frequencies on startup on VERBOSE_INIT_ARM

Revision 1.18 / (download) - annotate - [select for diffs], Mon Sep 1 14:19:27 2014 UTC (9 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.17: +9 -3 lines
Diff to previous 1.17 (colored)

Update the cycle counter i.e. our CPU frequency for all CPUs on setting the
cpu frequency.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Aug 28 20:29:05 2014 UTC (9 years, 7 months ago) by snj
Branch: MAIN
Changes since 1.16: +4 -4 lines
Diff to previous 1.16 (colored)

tyop police

Revision 1.16 / (download) - annotate - [select for diffs], Thu Aug 28 18:02:36 2014 UTC (9 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.15: +257 -2 lines
Diff to previous 1.15 (colored)

Implement CPU speed control for Exynos4 and Exynos5 CPUs using APLL frequency
adjustment.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Aug 26 11:55:54 2014 UTC (9 years, 7 months ago) by reinoud
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

Make it compile without DIAGNOSTIC by using __diagused

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jun 11 05:54:54 2014 UTC (9 years, 10 months ago) by matt
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: tls-maxphys, tls-earlyentropy, netbsd-7
Changes since 1.13: +5 -4 lines
Diff to previous 1.13 (colored)

Fix typo & include mct_reg.h

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jun 11 05:43:39 2014 UTC (9 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.12: +12 -2 lines
Diff to previous 1.12 (colored)

Exynos5 needs the MCT running to have the Global Timer operate.

Revision 1.12 / (download) - annotate - [select for diffs], Wed May 21 12:16:17 2014 UTC (9 years, 11 months ago) by reinoud
Branch: MAIN
Branch point for: yamt-pagecache
Changes since 1.11: +10 -6 lines
Diff to previous 1.11 (colored)

Make ODROID (-XU) compile again

Revision 1.11 / (download) - annotate - [select for diffs], Wed May 14 09:03:09 2014 UTC (9 years, 11 months ago) by reinoud
Branch: MAIN
CVS Tags: rmind-smpnet-nbase, rmind-smpnet-base
Branch point for: rmind-smpnet
Changes since 1.10: +30 -13 lines
Diff to previous 1.10 (colored)

Revisit gpio and revisit register file mapping. The additional register files
are now mapped behind the origional register file.

The gpio channel GPZ is mapped over I2S0 in the separate audio register file
and were both abusively mapped over I2C0 in the main register file!

While here, delay the gpio bootstrap till on attachment. We could hasten it in
the odroid_machdep.c if needed. Also make the gpio code more resilliant and
allow booting correctly without any GPIO bits defined/available.

Revision 1.10 / (download) - annotate - [select for diffs], Sat May 10 20:38:15 2014 UTC (9 years, 11 months ago) by reinoud
Branch: MAIN
CVS Tags: yamt-pagecache-base9
Changes since 1.9: +5 -7 lines
Diff to previous 1.9 (colored)

No use in duplicating the frequency settings of mct and gtmr at two different
places.

Revision 1.9 / (download) - annotate - [select for diffs], Sat May 10 20:24:06 2014 UTC (9 years, 11 months ago) by reinoud
Branch: MAIN
Changes since 1.8: +9 -2 lines
Diff to previous 1.8 (colored)

Implement evbarm_device_register_post_config() hook for odroid and its
decendents. This allows post attach actions on every level of the machine
support.

Revision 1.8 / (download) - annotate - [select for diffs], Fri May 9 21:49:43 2014 UTC (9 years, 11 months ago) by reinoud
Branch: MAIN
Changes since 1.7: +5 -2 lines
Diff to previous 1.7 (colored)

Implement gpio framework for the Samsung Exynos series.

Note that only the Exynos4 gpio registers are defined now and provision is
taken to allow for seamlessness adding of Exynos5 values.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Apr 29 16:47:10 2014 UTC (9 years, 11 months ago) by reinoud
Branch: MAIN
Changes since 1.6: +5 -2 lines
Diff to previous 1.6 (colored)

Commit initial USB adapter support and associated DMA tags

Revision 1.6 / (download) - annotate - [select for diffs], Tue Apr 22 16:10:48 2014 UTC (10 years ago) by reinoud
Branch: MAIN
Changes since 1.5: +7 -5 lines
Diff to previous 1.5 (colored)

Add the missing mpcaa_memh to reflect the correct offset.

The offsets are not actually used now on matt's request.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Apr 16 21:28:51 2014 UTC (10 years ago) by reinoud
Branch: MAIN
Changes since 1.4: +12 -6 lines
Diff to previous 1.4 (colored)

Teach sscom attachment, also the console, to use the busspace handle of the
main register space.

While here, map in the correct amount of memory or bus_space_map() won't
return an error but will wedge the system.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Apr 13 20:52:29 2014 UTC (10 years ago) by reinoud
Branch: MAIN
Changes since 1.3: +2 -11 lines
Diff to previous 1.3 (colored)

Remove unused code snippet

Revision 1.3 / (download) - annotate - [select for diffs], Sun Apr 13 20:49:36 2014 UTC (10 years ago) by reinoud
Branch: MAIN
Changes since 1.2: +2 -5 lines
Diff to previous 1.2 (colored)

Remove old trustzone headerfile inclusion

Revision 1.2 / (download) - annotate - [select for diffs], Sun Apr 13 20:45:25 2014 UTC (10 years ago) by reinoud
Branch: MAIN
Changes since 1.1: +10 -19 lines
Diff to previous 1.1 (colored)

Remove trustzone firmware indirect calls by explicit calling the exynos
routines in exynos_soc.c

While here, also remove unused variable conaddr

Revision 1.1 / (download) - annotate - [select for diffs], Sun Apr 13 02:26:26 2014 UTC (10 years ago) by matt
Branch: MAIN

Add initial support for the ODROID-XU and ODROID-U3.
Still a work in progress.  Started by nick and reinoud.

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>