The NetBSD Project

CVS log for src/sys/arch/arm/nvidia/tegra_sdhc.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.32 / (download) - annotate - [select for diffs], Sun Feb 6 15:52:20 2022 UTC (11 months, 3 weeks ago) by jmcneill
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.31: +2 -3 lines
Diff to previous 1.31 (colored)

sdhc: Retire SDHC_FLAG_USE_ADMA2 flag.

ADMA2 support in sdhc is mature now, so no need for it to be opt-in.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Feb 6 15:40:55 2022 UTC (11 months, 3 weeks ago) by jmcneill
Branch: MAIN
Changes since 1.30: +4 -3 lines
Diff to previous 1.30 (colored)

sdhc: tegra: Set SDHC_FLAG_BROKEN_ADMA2_ZEROLEN quirk flag.

The Tegra SDHCI implementation apparently treats ADMA2 descriptors with
length of 0 incorrectly.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Jan 22 15:10:30 2022 UTC (12 months, 1 week ago) by skrll
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

Ensure bus_dmatag_subregion is called with an inclusive max_addr
everywhere.

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:17 2021 UTC (21 months, 4 weeks ago) by thorpej
Branch: thorpej-futex
Changes since 1.27: +11 -10 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Sync with HEAD.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Jan 27 03:10:19 2021 UTC (2 years 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-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.28: +9 -8 lines
Diff to previous 1.28 (colored)

Rename of_match_compat_data() to of_compatible_match().  Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jan 15 23:11:59 2021 UTC (2 years ago) by jmcneill
Branch: MAIN
Changes since 1.27: +4 -4 lines
Diff to previous 1.27 (colored)

use fdtbus_intr_establish_xname

Revision 1.27 / (download) - annotate - [select for diffs], Mon Sep 14 07:27:19 2020 UTC (2 years, 4 months ago) by skrll
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

Trailing whitespace.

Revision 1.21.6.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:36 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.21.6.2: +1 -2 lines
Diff to previous 1.21.6.2 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.21.6.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:30 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.21.6.1: +12 -2 lines
Diff to previous 1.21.6.1 (colored) to branchpoint 1.21 (colored)

Merge changes from current as of 20200406

Revision 1.26 / (download) - annotate - [select for diffs], Sun Mar 1 16:38:59 2020 UTC (2 years, 11 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
Changes since 1.25: +5 -2 lines
Diff to previous 1.25 (colored)

bus_dmatag_subregion isn't supported on (compiled into) arm so ifdef its
use in previous.

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:18:19 2020 UTC (2 years, 11 months ago) by ad
Branch: ad-namecache
Changes since 1.24: +10 -3 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

Sync with head.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Feb 15 12:45:05 2020 UTC (2 years, 11 months ago) by skrll
Branch: MAIN
CVS Tags: ad-namecache-base3
Changes since 1.24: +10 -3 lines
Diff to previous 1.24 (colored)

Need to limit the DMA range for tx1.  Assume 32bit DMA everywhere for now.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Oct 13 06:11:31 2019 UTC (3 years, 3 months ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-20191119, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

Restore %# for PRIxBUSADDR

Revision 1.23 / (download) - annotate - [select for diffs], Sun Oct 13 05:57:14 2019 UTC (3 years, 3 months ago) by skrll
Branch: MAIN
Changes since 1.22: +3 -4 lines
Diff to previous 1.22 (colored)

Use PRIxBUSADDR

Revision 1.21.6.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:55 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.21: +4 -3 lines
Diff to previous 1.21 (colored)

Sync with HEAD

Revision 1.21.4.1 / (download) - annotate - [select for diffs], Sat Jul 28 04:37:28 2018 UTC (4 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.21: +4 -3 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

Sync with HEAD

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jul 16 23:11:47 2018 UTC (4 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, 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
Changes since 1.21: +4 -3 lines
Diff to previous 1.21 (colored)

Add missing pointer <-> integer casts
Use PRI?64 to print uint64_t instead 'll?'

Revision 1.21.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:35:54 2017 UTC (5 years, 1 month ago) by jdolecek
Branch: tls-maxphys
Changes since 1.21.2.1: +285 -0 lines
Diff to previous 1.21.2.1 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)

update from HEAD

Revision 1.1.2.6 / (download) - annotate - [select for diffs], Mon Aug 28 17:51:31 2017 UTC (5 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1.2.5: +69 -4 lines
Diff to previous 1.1.2.5 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD

Revision 1.21.2.1, Fri Jul 21 01:00:58 2017 UTC (5 years, 6 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.21: +0 -285 lines
FILE REMOVED

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

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jul 21 01:00:58 2017 UTC (5 years, 6 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, nick-nhusb-base-20170825
Branch point for: tls-maxphys, phil-wifi, pgoyette-compat
Changes since 1.20: +10 -2 lines
Diff to previous 1.20 (colored)

Disable UHS modes if signaling voltage regulator is unavailable.

Revision 1.20 / (download) - annotate - [select for diffs], Thu May 25 23:53:50 2017 UTC (5 years, 8 months ago) by jmcneill
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.19: +7 -3 lines
Diff to previous 1.19 (colored)

Match nvidia,tegra210-sdhci compat string.

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:01 2017 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.15: +56 -3 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

Sync with HEAD

Revision 1.19 / (download) - annotate - [select for diffs], Sat Apr 22 21:50:49 2017 UTC (5 years, 9 months ago) by jmcneill
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426
Changes since 1.18: +38 -2 lines
Diff to previous 1.18 (colored)

If the "vqmmc-supply" regulator is present, use it to set signal voltage.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Apr 22 17:41:20 2017 UTC (5 years, 9 months ago) by jmcneill
Branch: MAIN
Changes since 1.17: +11 -3 lines
Diff to previous 1.17 (colored)

Set parent clock rate to 100MHz when SDR104 is disabled

Revision 1.15.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:23 2017 UTC (5 years, 9 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.15: +11 -2 lines
Diff to previous 1.15 (colored) next main 1.16 (colored)

Sync with HEAD

Revision 1.17 / (download) - annotate - [select for diffs], Sun Apr 16 13:27:19 2017 UTC (5 years, 9 months ago) by jmcneill
Branch: MAIN
CVS Tags: bouyer-socketcan-base1
Changes since 1.16: +10 -2 lines
Diff to previous 1.16 (colored)

Disable SDR104 until the Tegra K1 custom tuning method is implemented.
This is required to work around errata that describes periodic data CRC
errors after autotuning has completed.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Apr 11 11:06:02 2017 UTC (5 years, 9 months ago) by jmcneill
Branch: MAIN
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored)

Set SDHC_FLAG_NO_HS_BIT for Tegra sdhc. No noticeable impact on performance
and it seems to get rid of the spurious data transfer timeouts.

Revision 1.1.2.5 / (download) - annotate - [select for diffs], Sun Dec 27 12:09:31 2015 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.1.2.4: +85 -42 lines
Diff to previous 1.1.2.4 (colored) to branchpoint 1.1 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.15 / (download) - annotate - [select for diffs], Tue Dec 22 22:10:36 2015 UTC (7 years, 1 month ago) by jmcneill
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, 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, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.14: +30 -25 lines
Diff to previous 1.14 (colored)

Switch Tegra over to fdt based clocks and reset controls.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Dec 16 19:46:55 2015 UTC (7 years, 1 month ago) by jmcneill
Branch: MAIN
Changes since 1.13: +3 -7 lines
Diff to previous 1.13 (colored)

use of_getprop_uint32

Revision 1.13 / (download) - annotate - [select for diffs], Tue Dec 15 15:33:19 2015 UTC (7 years, 1 month ago) by jmcneill
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

fdtbus_gpio_read handles pin polarity, so fix inverted test in tegra_sdhc_card_detect

Revision 1.12 / (download) - annotate - [select for diffs], Sun Dec 13 17:39:19 2015 UTC (7 years, 1 month ago) by jmcneill
Branch: MAIN
Changes since 1.11: +81 -39 lines
Diff to previous 1.11 (colored)

Use fdt for device enumeration.

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Tue Sep 22 12:05:38 2015 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1.2.3: +9 -10 lines
Diff to previous 1.1.2.3 (colored) to branchpoint 1.1 (colored)

Sync with HEAD

Revision 1.11 / (download) - annotate - [select for diffs], Mon Aug 3 12:11:52 2015 UTC (7 years, 6 months ago) by jmcneill
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921
Changes since 1.10: +5 -3 lines
Diff to previous 1.10 (colored)

set SDHC_FLAG_POLL_CARD_DET when we have a card detect pin

Revision 1.10 / (download) - annotate - [select for diffs], Sun Aug 2 21:45:52 2015 UTC (7 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

set ref clk to 204MHz so we can take advantage of UHS-I modes

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jul 29 12:11:32 2015 UTC (7 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.8: +4 -3 lines
Diff to previous 1.8 (colored)

enable ADMA2 data transfer mode

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jul 23 23:53:14 2015 UTC (7 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.7: +3 -2 lines
Diff to previous 1.7 (colored)

use SDHC_FLAG_NO_TIMEOUT

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jul 23 18:22:05 2015 UTC (7 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.6: +3 -8 lines
Diff to previous 1.6 (colored)

Support fractional dividers. This lets us use 48MHz for SDMMC HS mode
instead of 45.333MHz.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Sat Jun 6 14:39:56 2015 UTC (7 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1.2.2: +57 -14 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored)

Sync with HEAD

Revision 1.6 / (download) - annotate - [select for diffs], Sat May 30 18:53:39 2015 UTC (7 years, 8 months ago) by jmcneill
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.5: +2 -3 lines
Diff to previous 1.5 (colored)

dont set SDHC_FLAG_NO_HS_BIT flag

Revision 1.5 / (download) - annotate - [select for diffs], Sun May 3 22:40:02 2015 UTC (7 years, 9 months ago) by jmcneill
Branch: MAIN
Changes since 1.4: +7 -7 lines
Diff to previous 1.4 (colored)

since we dont support SDR104 yet, dont try to optimize it; instead, optimize for HS mode, which brings us up from 34 MHz to 45.333 MHz

Revision 1.4 / (download) - annotate - [select for diffs], Sun May 3 11:46:44 2015 UTC (7 years, 9 months ago) by jmcneill
Branch: MAIN
Changes since 1.3: +3 -2 lines
Diff to previous 1.3 (colored)

set SDHC_FLAG_SINGLE_POWER_WRITE

Revision 1.3 / (download) - annotate - [select for diffs], Sat May 2 17:07:55 2015 UTC (7 years, 9 months ago) by jmcneill
Branch: MAIN
Changes since 1.2: +47 -2 lines
Diff to previous 1.2 (colored)

hook up power, card detect, write protect gpios

Revision 1.2 / (download) - annotate - [select for diffs], Sat May 2 14:10:03 2015 UTC (7 years, 9 months ago) by jmcneill
Branch: MAIN
Changes since 1.1: +16 -18 lines
Diff to previous 1.1 (colored)

SDMMC clock input is PLLP (408 MHz). Set input divisor to 2 to get a
204 MHz input for the SDHC, which is just below the maximum supported
frequency for SDR104.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Mon Apr 6 15:17:53 2015 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1.2.1: +135 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

Sync with HEAD

Revision 1.1.2.1, Sun Mar 29 10:41:59 2015 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.1: +0 -135 lines
FILE REMOVED

file tegra_sdhc.c was added on branch nick-nhusb on 2015-04-06 15:17:53 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 29 10:41:59 2015 UTC (7 years, 10 months ago) by jmcneill
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Branch point for: nick-nhusb

NVIDIA Tegra K1 support, work in progress.

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>