The NetBSD Project

CVS log for src/sys/dev/sdmmc/sdhc.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / dev / sdmmc

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.119: download - view: text, markup, annotated - select for diffs
Thu May 9 01:33:13 2024 UTC (6 months, 3 weeks ago) by dyoung
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +5 -2 lines
If the ACPI flag "non-removable" is present and true for an SD/MMC
slot, then set a new flag on that slot to indicate that the media
is non-removable.  Make sdhc_card_detect always return true for a
slot if its non-removable media flag is set.

This change lets the kernel automatically configure the
permanently-installed MMC slot on the NXP LX2160-based HoneyComb
LX2 board.

Revision 1.117.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 3 11:47:06 2024 UTC (9 months, 4 weeks ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4
Diff to: previous 1.117: preferred, colored; next MAIN 1.118: preferred, colored
Changes since revision 1.117: +11 -2 lines
Pull up following revision(s) (requested by jmcneill in ticket #561):

	etc/etc.evbppc/Makefile.inc: revision 1.15
	sys/arch/evbppc/wii/dev/wiifb.c: revision 1.1
	sys/arch/evbppc/wii/dev/wiifb.c: revision 1.2
	sys/arch/evbppc/wii/dev/bwdsp.c: revision 1.1
	sys/arch/evbppc/wii/dev/wiifb.c: revision 1.3
	sys/arch/evbppc/wii/dev/bwdsp.c: revision 1.2
	distrib/utils/embedded/files/evbppc_wii_icon.png: revision 1.1
	usr.sbin/sysinst/arch/evbppc/md.h: revision 1.4
	sys/arch/evbppc/wii/dev/wiifb.c: revision 1.4
	sys/arch/evbppc/wii/dev/viio.h: revision 1.1
	sys/arch/evbppc/wii/dev/wiifb.c: revision 1.5
	sys/arch/evbppc/wii/dev/mainbus.h: revision 1.1
	distrib/utils/embedded/conf/wii.conf: revision 1.1
	distrib/utils/embedded/conf/wii.conf: revision 1.2
	distrib/utils/embedded/conf/wii.conf: revision 1.3
	sys/dev/sdmmc/sdhcvar.h: revision 1.34
	sys/dev/sdmmc/sdhc.c: revision 1.118
	sys/arch/evbppc/wii/dev/resetbtn.c: revision 1.1
	distrib/utils/embedded/conf/evbppc.conf: revision 1.1
	sys/dev/wsfb/genfb.c: revision 1.91
	sys/arch/evbppc/wii/dev/resetbtn.c: revision 1.2
	sys/dev/wscons/wsconsio.h: revision 1.127
	sys/arch/powerpc/oea/oea_machdep.c: revision 1.85
	sys/arch/evbppc/wii/dev/hollywood.h: revision 1.1
	sys/arch/evbppc/conf/std.wii: revision 1.1
	sys/arch/evbppc/wii/dev/hollywood.h: revision 1.2
	sys/arch/evbppc/wii/dev/hollywood.c: revision 1.1
	sys/arch/evbppc/conf/std.wii: revision 1.2
	sys/arch/evbppc/wii/dev/hollywood.c: revision 1.2
	sys/arch/evbppc/conf/std.wii: revision 1.3
	sys/arch/powerpc/oea/cpu_subr.c: revision 1.109
	sys/arch/evbppc/wii/wii_mmuinit.S: revision 1.1
	sys/dev/usb/usb.h: revision 1.124
	sys/arch/evbppc/wii/machdep.c: revision 1.1
	sys/arch/evbppc/wii/dev/rtcsram.c: revision 1.1
	sys/arch/powerpc/include/oea/hid.h: revision 1.14
	sys/arch/evbppc/wii/mainbus.c: revision 1.1
	sys/arch/evbppc/wii/machdep.c: revision 1.2
	sys/arch/evbppc/wii/dev/ehci_hollywood.c: revision 1.1
	sys/arch/evbppc/wii/mainbus.c: revision 1.2
	sys/arch/evbppc/wii/machdep.c: revision 1.3
	sys/arch/evbppc/wii/dev/ehci_hollywood.c: revision 1.2
	sys/arch/evbppc/wii/mainbus.c: revision 1.3
	sys/arch/evbppc/wii/machdep.c: revision 1.4
	sys/arch/evbppc/wii/dev/hwgpio.c: revision 1.1
	sys/arch/evbppc/wii/dev/sdhc_hollywood.c: revision 1.1
	sys/arch/evbppc/wii/dev/sdhc_hollywood.c: revision 1.2
	sys/arch/evbppc/wii/wii_locore.S: revision 1.1
	sys/arch/evbppc/conf/files.wii: revision 1.1
	sys/arch/evbppc/wii/wii_locore.S: revision 1.2
	sys/arch/evbppc/include/wii.h: revision 1.1
	sys/arch/evbppc/conf/files.wii: revision 1.2
	sys/arch/evbppc/wii/dev/exi.c: revision 1.1
	sys/arch/evbppc/include/wii.h: revision 1.2
	sys/arch/evbppc/conf/files.wii: revision 1.3
	sys/arch/powerpc/powerpc/clock.c: revision 1.18
	sys/arch/evbppc/include/wii.h: revision 1.3
	sys/arch/evbppc/conf/files.wii: revision 1.4
	sys/arch/evbppc/include/wii.h: revision 1.4
	sys/arch/evbppc/wii/dev/exi.h: revision 1.1
	sys/arch/evbppc/wii/dev/avenc.c: revision 1.1
	sys/arch/evbppc/include/wii.h: revision 1.5
	sys/arch/evbppc/include/wii.h: revision 1.6
	sys/arch/evbppc/include/wii.h: revision 1.7
	sys/arch/evbppc/wii/dev/avenc.h: revision 1.1
	distrib/utils/embedded/mkimage: revision 1.79
	sys/arch/evbppc/conf/WII: revision 1.1
	sys/arch/evbppc/conf/INSTALL_WII: revision 1.1
	distrib/utils/embedded/files/evbppc_wii_meta.xml: revision 1.1
	sys/arch/evbppc/wii/dev/vireg.h: revision 1.1
	sys/arch/evbppc/conf/WII: revision 1.2
	distrib/utils/embedded/files/evbppc_wii_meta.xml: revision 1.2
	sys/arch/evbppc/wii/dev/vireg.h: revision 1.2
	sys/arch/evbppc/conf/WII: revision 1.3
	sys/arch/evbppc/conf/WII: revision 1.4
	usr.sbin/sysinst/arch/evbppc/md.c: revision 1.11
	sys/arch/evbppc/wii/dev/ohci_hollywood.c: revision 1.1
	sys/dev/usb/ehcivar.h: revision 1.52
	sys/arch/evbppc/wii/pic_pi.c: revision 1.1
	sys/arch/evbppc/wii/dev/ohci_hollywood.c: revision 1.2
	etc/etc.evbppc/ttys: revision 1.8
	sys/arch/evbppc/wii/dev/bwai.c: revision 1.1
	sys/arch/evbppc/wii/dev/bwai.c: revision 1.2
	sys/arch/evbppc/wii/dev/bwai.c: revision 1.3
	sys/arch/evbppc/wii/autoconf.c: revision 1.1
	sys/arch/evbppc/conf/Makefile.wii.inc: revision 1.1
	sys/arch/evbppc/wii/dev/bwai.h: revision 1.1
	sys/arch/evbppc/wii/autoconf.c: revision 1.2
	sys/arch/evbppc/conf/Makefile.wii.inc: revision 1.2

powerpc: oea: Fix prefetchable mappings
Prefetchable mappings need PMAP_NOCACHE to get write-combine semantics.
powerpc: oea: Decode IBM750CL L2 cache information.
sdmmc: add support for optional delay after register write
wscons: Add HOLLYWOOD display and YUY2 pixel format types
wsfb: add support for optional "devcmap" property
A hardware driver can supply a pointer to a 16x 32-bit array to override
the default rasops device colour map in the "devcmap" property.
ehci: add EHCIF_32BIT_ACCESS flag to force 32-bit MMIO
fix comments: HID0 ICFI/DCFI are "flash invalidate", not "flush invalidate"
powerpc: fix delay for large (> ~5sec) values
When calculating the target timebase, promote '1000' on the RHS to ULL
to force 64-bit calculation, otherwise 'n * 1000' will overflow.
usb: increase USB_PORT_RESET_RECOVERY from 10ms to 20ms
I changed this from 250ms to 10ms back in 2021 based on a similar FreeBSD
change, but it seems to be a bit too aggressive for some platforms.
evbppc: Add initial support for the Nintendo Wii
wii: support RB_POWERDOWN
build fix: use dd with count=1 for compat with NetBSD dd(1)
wii: Add NTSC 480p support.
In addition to this, add VIIO_{GET,SET}REGS ioctl support to allow for
poking at video interface registers from userland. This is helpful for
debugging display issues.
wii: Add 128x48 icon to SD card image
wii: Fix a comment
wii: Add drivers for Broadway DSP and Audio interface.
0: [*] audio0 @ bwdsp0: Broadway DSP
       playback: 16, 2ch, 48000Hz
       record:   unavailable
       (P-) slinear_be 16/16, 2ch, { 48000 }
wii: Add screenblank support.
wii: Use screen dimming register for screen blanking.
wii: Add GPIO, I2C, and basic A/V encoder driver.
wii: Use A/V encoder volume controls instead of using a software filter.
wii: Simply DSP driver - no interrupt handler required.
wii: provide device names to intr_establish
wii$ intrctl list
interrupt id      CPU0  device name(s)
pi irq 14        64769* hollywood0
hollywood irq 36  5872* ehci0
hollywood irq 39 58907* sdhc0
hollywood irq 40     4* sdhc1
hollywood irq 49     0* resetbtn0
pi irq 5             0* bwai0
wii: Add support for passing boot options to the kernel.
wii: Add External interface bus and RTC support
wii: Remove objcopy after kernel build.
HBC will do the right thing.
Add wsvt25 entries (off by default) for ttyE0-ttyE3.
Add support for "PAL" (576i) mode on Wii.

Revision 1.118: download - view: text, markup, annotated - select for diffs
Sat Jan 20 00:22:11 2024 UTC (10 months, 1 week ago) by jmcneill
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +11 -2 lines
sdmmc: add support for optional delay after register write

Revision 1.117: download - view: text, markup, annotated - select for diffs
Wed Nov 2 10:38:04 2022 UTC (2 years, 1 month ago) by jmcneill
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Branch point for: netbsd-10
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +10 -10 lines
Select DMA mode after programming the ADMA base address register(s).

The Arasan SDHCI 8.9a found in the Xilinx Zynq-7000 SoC requires this
sequence to avoid sporadic transfer errors.

Revision 1.116: download - view: text, markup, annotated - select for diffs
Fri Oct 14 07:54:49 2022 UTC (2 years, 1 month ago) by jmcneill
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +4 -3 lines
Disable ADMA2 on Ricoh SDHCI controllers.

PR# 57015

Revision 1.115: download - view: text, markup, annotated - select for diffs
Sun Feb 6 15:52:20 2022 UTC (2 years, 9 months ago) by jmcneill
Branches: MAIN
CVS tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +3 -4 lines
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.114: download - view: text, markup, annotated - select for diffs
Mon Jan 17 20:10:37 2022 UTC (2 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +15 -7 lines
sdhc: avoid taking adaptive mutex while holding spin mutex

the clock_bus pre- and post- callbacks used in sdhc_bus_clock_ddr()
are called with a spin mutex held, and the new sdhc@acpi ends up
calling into (sleeping) ACPI code, triggering lockdebug assertion.

introduce an adaptive mutex that is held around these callbacks,
and reduce the spin mutex held time in sdhc_bus_clock_ddr().

Revision 1.113: download - view: text, markup, annotated - select for diffs
Sat Jan 15 14:33:36 2022 UTC (2 years, 10 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +4 -3 lines
sdhc: High speed support capability flag applies to eMMC too.

Revision 1.100.4.3: download - view: text, markup, annotated - select for diffs
Fri Dec 3 19:31:19 2021 UTC (3 years ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE
Diff to: previous 1.100.4.2: preferred, colored; branchpoint 1.100: preferred, colored; next MAIN 1.101: preferred, colored
Changes since revision 1.100.4.2: +5 -5 lines
Pull up the following revisions (all via patch), requested by msaitoh
in ticket #1713:

	sys/dev/sdmmc/sdhc.c				1.110, 1.112
	sys/dev/sdmmc/sdmmc_mem.c			1.74
	sys/dev/pci/sdhc_pci.c				1.18

- Support 64bit BAR.
- Use unsigned to avoid undefined behavior in hwrite[12]() and
  sdmmc_mem_sd_switch().
- Fix typo in comment.

Revision 1.103.2.3: download - view: text, markup, annotated - select for diffs
Fri Dec 3 18:20:41 2021 UTC (3 years ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE
Diff to: previous 1.103.2.2: preferred, colored; branchpoint 1.103: preferred, colored; next MAIN 1.104: preferred, colored
Changes since revision 1.103.2.2: +5 -5 lines
Pull up the followin revisions (all via patch), requested by msaitoh
in ticket #1383:

	sys/dev/sdmmc/sdhc.c				1.110, 1.112
	sys/dev/sdmmc/sdmmc_mem.c			1.74
	sys/dev/pci/sdhc_pci.c				1.18

- Support 64bit BAR.
- Use unsigned to avoid undefined behavior in hwrite[12]() and
  sdmmc_mem_sd_switch().
- Fix typo in comment.

Revision 1.112: download - view: text, markup, annotated - select for diffs
Wed Nov 10 16:53:28 2021 UTC (3 years ago) by msaitoh
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +3 -3 lines
s/suport/support/ in comment.

Revision 1.111: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:16 2021 UTC (3 years, 3 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +3 -3 lines
Merge thorpej-cfargs2.

Revision 1.110.4.1: download - view: text, markup, annotated - select for diffs
Wed Aug 4 23:24:59 2021 UTC (3 years, 3 months ago) by thorpej
Branches: thorpej-cfargs2
Diff to: previous 1.110: preferred, colored; next MAIN 1.111: preferred, colored
Changes since revision 1.110: +3 -3 lines
Adapt to CFARGS().

Revision 1.109.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:30 2021 UTC (3 years, 5 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109: +4 -4 lines
Sync w/ HEAD.

Revision 1.109.4.1: download - view: text, markup, annotated - select for diffs
Mon May 31 22:15:19 2021 UTC (3 years, 6 months ago) by cjep
Branches: cjep_staticlib_x
Diff to: previous 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109: +4 -4 lines
sync with head

Revision 1.110: download - view: text, markup, annotated - select for diffs
Thu May 13 05:54:14 2021 UTC (3 years, 6 months ago) by msaitoh
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1
Branch point for: thorpej-cfargs2
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +4 -4 lines
 Use unsigned to avoid undefined behavior in hwrite[12](). Found by kUBSan.

Revision 1.109: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:59 2021 UTC (3 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: cjep_staticlib_x-base
Branch point for: thorpej-i2c-spi-conf, cjep_staticlib_x
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +3 -3 lines
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.107.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:50 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.107: preferred, colored; next MAIN 1.108: preferred, colored
Changes since revision 1.107: +13 -8 lines
Sync with HEAD.

Revision 1.108.2.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 21:09:15 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.108: preferred, colored; next MAIN 1.109: preferred, colored
Changes since revision 1.108: +3 -3 lines
Give config_found() the same variadic arguments treatment as
config_search().  This commit only adds the CFARG_EOL sentinel
to the existing config_found() calls.  Conversion of config_found_sm_loc()
and config_found_ia() call sites will be in subsequent commits.

Revision 1.108: download - view: text, markup, annotated - select for diffs
Sat Mar 13 23:26:47 2021 UTC (3 years, 8 months ago) by mlelstv
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +13 -8 lines
Enable block count only for count > 0.
Don't enable autostop when command sets new flag SCF_NO_STOP.

Revision 1.100.4.2: download - view: text, markup, annotated - select for diffs
Wed Aug 5 16:14:25 2020 UTC (4 years, 3 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.100.4.1: preferred, colored; branchpoint 1.100: preferred, colored
Changes since revision 1.100.4.1: +8 -2 lines
Pull up following revision(s) (requested by msaitoh in ticket #1592):

	sys/dev/sdmmc/sdhc.c: revision 1.107
	sys/dev/sdmmc/sdhcreg.h: revision 1.21

Identify SDHC 4.1 and 4.2. From {DragonFly,Free}BSD.

Revision 1.103.2.2: download - view: text, markup, annotated - select for diffs
Mon Jul 20 18:15:43 2020 UTC (4 years, 4 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Diff to: previous 1.103.2.1: preferred, colored; branchpoint 1.103: preferred, colored
Changes since revision 1.103.2.1: +8 -2 lines
Pull up following revision(s) (requested by msaitoh in ticket #1021):

	sys/dev/sdmmc/sdhc.c: revision 1.107
	sys/dev/sdmmc/sdhcreg.h: revision 1.21

Identify SDHC 4.1 and 4.2. From {DragonFly,Free}BSD.

Revision 1.107: download - view: text, markup, annotated - select for diffs
Wed Jul 15 15:57:52 2020 UTC (4 years, 4 months ago) by msaitoh
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +8 -2 lines
Identify SDHC 4.1 and 4.2. From {DragonFly,Free}BSD.

Revision 1.101.6.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:48 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.101.6.1: preferred, colored; branchpoint 1.101: preferred, colored; next MAIN 1.102: preferred, colored
Changes since revision 1.101.6.1: +68 -41 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.103.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 25 18:40:43 2020 UTC (4 years, 9 months ago) by martin
Branches: netbsd-9
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +42 -18 lines
Pull up following revision(s) (requested by mrg in ticket #717):

	sys/dev/fdt/dwcmmc_fdt.c			1.11
	sys/dev/ic/bwfm.c				1.15-1.18
	sys/dev/ic/bwfmreg.h				1.4-1.6
	sys/dev/ic/bwfmvar.h				1.4,1.5
	sys/dev/ic/dwc_mmc.c				1.21,1.22
	sys/dev/ic/dwc_mmc_reg.h			1.8,1.9,1.12,1.13
	sys/dev/pcmcia/pcmciareg.h			1.11
	sys/dev/sdmmc/if_bwfm_sdio.c			1.4,1.6-1.12
	sys/dev/sdmmc/if_bwfm_sdio.h			1.1,1.2
	sys/dev/sdmmc/sdhc.c				1.105,1.106
	sys/dev/sdmmc/sdmmc.c				1.37,1.39
	sys/dev/sdmmc/sdmmc_cis.c			1.6,1.8
	sys/dev/sdmmc/sdmmc_io.c			1.15-1.19
	sys/dev/sdmmc/sdmmc_ioreg.h			1.4,1.5
	sys/dev/sdmmc/sdmmc_mem.c			1.69-1.71
	sys/dev/sdmmc/sdmmcdevs				1.5-1.8
	sys/dev/sdmmc/sdmmcvar.h			1.31,1.33,1.34
	sys/net/if_media.h				1.66

Add Broadcom devices
 -
Fix typo
 -
add PCMCIA_CISTPL_SDIO definition.
 -
From OpenBSD:
- move event handling to workqueue
- check for save/restore capability
 -
Tag work queue as MPsafe and increase length.
 -
Juse use bpf_mtap(), the 802.11 encapsulation is handled by firmware.
 -
From OpenBSD:
- support block length per function
- add functions to read/write regions
 -
Decode (but not use) SDIO tuple in CIS.
 -
Fix locking.
 -
Add more SDIO defines (partially from version 3.0).
 -
From OpenBSD:
- All the missing pieces (firmware load, chip setup, protocol handling)
TX queue and interrupt handling via sdmmc_task.
 -
Fix locking.
 -
Fix packet parsing.
 -
Add parser for original firmware config files.
 -
tagging work queue as MPSAFE was premature. Revert.
 -
SD_IO_RW_EXTENDED is a data transfer command, so set ADTC flag instead of AC
Use correct function to verify if a task has been queued. Avoids race
that can corrupt the task queue.
 -
More register definitions.
 -
Add IFM_IEEE80211_VHT subtype, IFM_IEEE80211_11AC operating mode, and missing descriptions
 -
If firmware is connected in HT or VHT mode, report it to SIOCGIFMEDIA
 -
white space police.

Skip setting power when the voltage doesn't change.
Also increase some timeouts.
 -
Add and use sdmmc_pause to avoid long-term busy waits.
 -
Add sdio abort function.
 -
Additional error messages.
 -
Print parameters for SDIO devices.
 -
Minor cosmetics.
 -
Simplyfy sdmmc_io_set_blocklen function signature by dropping the
extra softc pointer. Aligns with OpenBSD.
 -
Missing commit for sdio abort function.
 -
More code from OpenBSD
 -
no need to splnet() when enqueing packets
 -
explicit structure padding
 -
make internal functions static
 -
also prepare for GPIO interrupts.
 -
Avoid warnings for tautological shifts as sole conditional.
 -
Follow the Linux driver an use the FDT "compatible" property to build a
filename for the nvram config file, fall back to the standard filename.
E.g.
[Caching 123 nodes and 1093 properties]
compatible              73696e6f 766f6970 2c627069 2d6d322d   "sinovoip,bpi-m2-
            0010:       7a65726f 00...... ........ ........   zero"
            0015:       616c6c77 696e6e65 722c7375 6e38692d   "allwinner,sun8i-
            0025:       68322d70 6c757300 ........ ........   h2-plus"
interrupt-parent        00000001 ........ ........ ........   ....
model                   42616e61 6e612050 69204250 492d4d32   "Banana Pi BPI-M2
            0010:       2d5a6572 6f00.... ........ ........   -Zero"
name                    00...... ........ ........ ........   ""
serial-number           30326330 30303432 65636431 36376566   02c00042ecd167ef
            0010:       00...... ........ ........ ........   .
-rw-r--r--  1 root  wheel     875 Nov  2 12:06 brcmfmac43430-sdio.AP6212.txt
lrwxr-xr-x  1 root  wheel      29 Dec 30 16:19 brcmfmac43430-sdio.sinovoip,bpi-m2-zero.txt -> brcmfmac43430-sdio.AP6212.txt
-rw-r--r--  1 root  wheel     874 Jun 30  2019 brcmfmac43430-sdio.raspberrypi,3-model-b.txt
-rw-r--r--  1 root  wheel    1864 Jun 30  2019 brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt
lrwxr-xr-x  1 root  wheel      29 Dec 30 11:24 brcmfmac43455-sdio.raspberrypi,4-model-b-plus.txt -> brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt
 -
Add product ID for Broadcom BCM43455
 -
Use correct firmware for BCM43456
 -
size check was backwards.
 -
Be less noisy for some commands.
 -
Fix DWC_MMC_INT_SDIO_INT bit
 -
dwc_mmc fixes:
 - Rockchip uses a different SDIO int bit, so take this into consideration
 - Avoid unnecessary resets and always wait for resets to complete
 - kpause instead of delay while holding spinlock
 - Do not attempt autostop for SD_IO_RW_EXTENDED commands
 - Allow for sub-blklen byte counts for single block transfers
  -
More SDIO stability and performance fixes

Revision 1.106: download - view: text, markup, annotated - select for diffs
Mon Oct 28 18:11:15 2019 UTC (5 years, 1 month ago) by joerg
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, 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
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +8 -8 lines
Avoid warnings for tautological shifts as sole conditional.

Revision 1.105: download - view: text, markup, annotated - select for diffs
Mon Oct 28 06:00:14 2019 UTC (5 years, 1 month ago) by mlelstv
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +36 -12 lines
Skip setting power when the voltage doesn't change.
Also increase some timeouts.

Revision 1.104: download - view: text, markup, annotated - select for diffs
Wed Oct 23 05:20:52 2019 UTC (5 years, 1 month ago) by hkenken
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +26 -23 lines
Add SDHC flags.

+ SDHC_FLAG_BROKEN_ADMA2_ZEROLEN
  Broken ADMA2 Zero length descriptor.
  Can't 64K Byte data transfer.
+ SDHC_FLAG_NO_1_8_V
  Support no 1.8V Supply.
  Disable UHS-I bus speed mode (SDR50, DDR50, SDR104).

Revision 1.103: download - view: text, markup, annotated - select for diffs
Wed Jul 3 23:10:08 2019 UTC (5 years, 5 months ago) by jmcneill
Branches: MAIN
CVS tags: netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Branch point for: netbsd-9
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +4 -4 lines
If switching to fixed sampling clock, do not return an error to the sdmmc layer.

Revision 1.101.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:32 2019 UTC (5 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +13 -2 lines
Sync with HEAD

Revision 1.102: download - view: text, markup, annotated - select for diffs
Wed Mar 13 12:16:49 2019 UTC (5 years, 8 months ago) by jmcneill
Branches: MAIN
CVS tags: phil-wifi-20190609, isaki-audio2-base, isaki-audio2
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +13 -2 lines
Add vendor callback for post-bus clock ops and add SDHC_FLAG_STOP_WITH_TC flag

Revision 1.100.4.1: download - view: text, markup, annotated - select for diffs
Sun Jan 7 09:24:59 2018 UTC (6 years, 10 months ago) by snj
Branches: 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
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +35 -36 lines
Pull up following revision(s) (requested by ryo in ticket #468):
	sys/dev/sdmmc/sdhcreg.h: revision 1.19
	sys/dev/sdmmc/sdhc.c: revision 1.101
fix problem for ESDHC/USDHC due to change of r1.96
on ESDHC/USDHC, even if the iosize is less than SDHC_HOST_CTL_VERSION,
specver must be an appropriate value.

Revision 1.30.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:32 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.30.2.3: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30.2.3: +880 -177 lines
update from HEAD

Revision 1.51.2.9: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:27 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.51.2.8: preferred, colored; branchpoint 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51.2.8: +109 -39 lines
Sync with HEAD

Revision 1.101: download - view: text, markup, annotated - select for diffs
Fri Jun 23 08:43:59 2017 UTC (7 years, 5 months ago) by ryo
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, 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, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +35 -36 lines
fix problem for ESDHC/USDHC due to change of r1.96

on ESDHC/USDHC, even if the iosize is less than SDHC_HOST_CTL_VERSION,
specver must be an appropriate value.

Revision 1.94.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 26 02:53:23 2017 UTC (7 years, 7 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.94.2.1: preferred, colored; branchpoint 1.94: preferred, colored; next MAIN 1.95: preferred, colored
Changes since revision 1.94.2.1: +18 -4 lines
Sync with HEAD

Revision 1.100: download - view: text, markup, annotated - select for diffs
Sat Apr 22 21:49:41 2017 UTC (7 years, 7 months ago) by jmcneill
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: netbsd-8
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +18 -4 lines
Add a vendor callback for setting signal voltage.

Revision 1.97.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:53 2017 UTC (7 years, 7 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.97: preferred, colored; next MAIN 1.98: preferred, colored
Changes since revision 1.97: +60 -3 lines
Sync with HEAD

Revision 1.94.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:38 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +101 -32 lines
Sync with HEAD

Revision 1.99: download - view: text, markup, annotated - select for diffs
Fri Feb 17 10:51:48 2017 UTC (7 years, 9 months ago) by nonaka
Branches: MAIN
CVS tags: pgoyette-localcount-20170320, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +50 -2 lines
sdhc(4): hardware reset support for Intel eMMC controller

Revision 1.98: download - view: text, markup, annotated - select for diffs
Fri Feb 17 10:50:43 2017 UTC (7 years, 9 months ago) by nonaka
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +12 -3 lines
sdhc(4), sdmmc(4): Added MMC HS DDR52 support.

Revision 1.51.2.8: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:46 2017 UTC (7 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.51.2.7: preferred, colored; branchpoint 1.51: preferred, colored
Changes since revision 1.51.2.7: +43 -31 lines
Sync with HEAD

Revision 1.97: download - view: text, markup, annotated - select for diffs
Sat Jan 7 15:05:08 2017 UTC (7 years, 10 months ago) by kiyohara
Branches: MAIN
CVS tags: nick-nhusb-base-20170204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +13 -5 lines
Add flags SDHC_FLAG_NO_AUTO_STOP and SDHC_FLAG_NO_BUSY_INTR.

Revision 1.96: download - view: text, markup, annotated - select for diffs
Sat Jan 7 15:00:38 2017 UTC (7 years, 10 months ago) by kiyohara
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +32 -28 lines
Don't access SDHC_HOST_CTL_VERSION, if iosize less than this.

Revision 1.51.2.7: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:55:56 2016 UTC (8 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.51.2.6: preferred, colored; branchpoint 1.51: preferred, colored
Changes since revision 1.51.2.6: +4 -4 lines
Sync with HEAD

Revision 1.95: download - view: text, markup, annotated - select for diffs
Wed Aug 10 04:24:17 2016 UTC (8 years, 3 months ago) by nonaka
Branches: MAIN
CVS tags: pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20161204, nick-nhusb-base-20161004, localcount-20160914
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +4 -4 lines
Use 1.65-1.95 voltage window for 1.8V support.

Revision 1.51.2.6: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:15 2016 UTC (8 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.51.2.5: preferred, colored; branchpoint 1.51: preferred, colored
Changes since revision 1.51.2.5: +3 -2 lines
Sync with HEAD

Revision 1.94: download - view: text, markup, annotated - select for diffs
Sun Jul 3 11:55:27 2016 UTC (8 years, 5 months ago) by kiyohara
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +3 -2 lines
Please more delay, if timeout in sdhc_wait_intr().

Revision 1.51.2.5: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:19 2016 UTC (8 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.51.2.4: preferred, colored; branchpoint 1.51: preferred, colored
Changes since revision 1.51.2.4: +130 -26 lines
Sync with HEAD

Revision 1.93: download - view: text, markup, annotated - select for diffs
Thu Dec 31 11:53:19 2015 UTC (8 years, 11 months ago) by ryo
Branches: MAIN
CVS tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +129 -25 lines
add support iMX6 uSDHC
- some UHS-I/SDR104 card are not stable
- eMMC doesn't work yet

Revision 1.92: download - view: text, markup, annotated - select for diffs
Mon Dec 28 16:47:11 2015 UTC (8 years, 11 months ago) by ryo
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +3 -3 lines
fix typo. use pmask for SDHC_PRESENT_STATE.

Revision 1.51.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:09:58 2015 UTC (8 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.51.2.3: preferred, colored; branchpoint 1.51: preferred, colored
Changes since revision 1.51.2.3: +30 -15 lines
Sync with HEAD (as of 26th Dec)

Revision 1.44.2.9: download - view: text, markup, annotated - select for diffs
Sun Nov 8 01:22:54 2015 UTC (9 years ago) by riz
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1
Diff to: previous 1.44.2.8: preferred, colored; branchpoint 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44.2.8: +8 -2 lines
Pull up following revision(s) (requested by jmcneill in ticket #1022):
	sys/dev/sdmmc/sdhc.c: revision 1.89
	sys/arch/arm/omap/omap3_sdhc.c: revision 1.19
	sys/dev/sdmmc/sdhcvar.h: revision 1.25
	sys/arch/evbarm/beagle/beagle_machdep.c: revision 1.62
allow vendor specific code to hook into bus width changes
Support 8-bit eMMC for TI AM335x. On my BeagleBone Black,
Before: 134217728 bytes transferred in 9.410 secs (14263307 bytes/sec)
After:  134217728 bytes transferred in 7.518 secs (17852850 bytes/sec)
enable 8-bit mode on AM335X SDMMC2

Revision 1.91: download - view: text, markup, annotated - select for diffs
Tue Nov 3 07:59:29 2015 UTC (9 years, 1 month ago) by mlelstv
Branches: MAIN
CVS tags: nick-nhusb-base-20151226
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +3 -3 lines
Also wait for DAT when sending RSP_BSY commands. Fixes PR 50388.

Revision 1.90: download - view: text, markup, annotated - select for diffs
Tue Nov 3 06:49:39 2015 UTC (9 years, 1 month ago) by mlelstv
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +4 -3 lines
fix timeout path in soft reset when building with SDHC_DEBUG

Revision 1.89: download - view: text, markup, annotated - select for diffs
Mon Nov 2 22:18:45 2015 UTC (9 years, 1 month ago) by jmcneill
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +8 -2 lines
allow vendor specific code to hook into bus width changes

Revision 1.88: download - view: text, markup, annotated - select for diffs
Tue Oct 6 14:32:51 2015 UTC (9 years, 1 month ago) by mlelstv
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +21 -13 lines
support hiding command timeout messages with a new command flag and use this
when probing for cards. Should fix PR 50302.

Revision 1.51.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:00 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.51.2.2: preferred, colored; branchpoint 1.51: preferred, colored
Changes since revision 1.51.2.2: +567 -121 lines
Sync with HEAD

Revision 1.87: download - view: text, markup, annotated - select for diffs
Wed Sep 9 08:09:28 2015 UTC (9 years, 2 months ago) by mlelstv
Branches: MAIN
CVS tags: nick-nhusb-base-20150921
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +6 -2 lines
The iMX uSDHC controller doesn't have an interrupt error status flag,
the bit position is reserved and reads as value 0.
- Fake the flag if any of the error bits is set.
- uSDHC supports the 32bit access, the 16bit path doesn't need that quirk.

Revision 1.86: download - view: text, markup, annotated - select for diffs
Wed Sep 9 08:06:47 2015 UTC (9 years, 2 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +3 -4 lines
Don't test flags from error value in status value. Instead test the
error interrupt status.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Wed Sep 9 08:04:33 2015 UTC (9 years, 2 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +4 -3 lines
fix DPRINTF parameters

Revision 1.84: download - view: text, markup, annotated - select for diffs
Sun Aug 9 13:46:50 2015 UTC (9 years, 3 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +74 -27 lines
Ignore data inhibit for commands that do not use the DAT line.
Do a soft reset when the inhibit condition persists for better
error recovery.

Simplify interrupt handling and print errors reported by the controller.

Add more specific debug messages for timeout errors.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Sun Aug 9 13:39:18 2015 UTC (9 years, 3 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +21 -9 lines
Protect the whole tuning operation including the register setup.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Sun Aug 9 13:24:39 2015 UTC (9 years, 3 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +11 -2 lines
Add a quirk for Ricoh 5U823 controller. Operation with a 100MHz
bus clock for SDR50 seems to be unstable, reduce frequency one notch
(effectively down to 66MHz with divisor = 3).

Revision 1.81: download - view: text, markup, annotated - select for diffs
Thu Aug 6 09:30:55 2015 UTC (9 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +4 -4 lines
don't hold intr_lock while calling sdhc_execute_tuning

Revision 1.80: download - view: text, markup, annotated - select for diffs
Wed Aug 5 12:28:47 2015 UTC (9 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +58 -2 lines
support re-tuning modes 1 and 2

Revision 1.79: download - view: text, markup, annotated - select for diffs
Wed Aug 5 10:30:25 2015 UTC (9 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +101 -7 lines
Implement SDHC sampling clock tuning procedure.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Wed Aug 5 07:31:52 2015 UTC (9 years, 4 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +10 -2 lines
lock more hardware accesses

Revision 1.77: download - view: text, markup, annotated - select for diffs
Mon Aug 3 12:11:36 2015 UTC (9 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +4 -2 lines
Add SDHC_FLAG_POLL_CARD_DET flag which lets the bus glue request polling
instead of standard SDHC card insert / detach events.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Mon Aug 3 10:08:51 2015 UTC (9 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +25 -11 lines
Add support for DDR50 transfer modes.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Mon Aug 3 05:24:37 2015 UTC (9 years, 4 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +4 -4 lines
better error message

Revision 1.74: download - view: text, markup, annotated - select for diffs
Mon Aug 3 00:44:52 2015 UTC (9 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +3 -3 lines
don't select SDR12 mode if we are <= 400 kHz

Revision 1.73: download - view: text, markup, annotated - select for diffs
Mon Aug 3 00:19:27 2015 UTC (9 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +3 -3 lines
dont confuse signaling voltage and bus voltage

Revision 1.72: download - view: text, markup, annotated - select for diffs
Sun Aug 2 22:01:28 2015 UTC (9 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +8 -7 lines
let SDHC_FLAG_HOSTCAPS override SDHC_CAPABILITIES2 as well

Revision 1.71: download - view: text, markup, annotated - select for diffs
Sun Aug 2 21:45:12 2015 UTC (9 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +61 -9 lines
add support for UHS-I modes on capable 3.0+ controllers

Revision 1.70: download - view: text, markup, annotated - select for diffs
Sun Aug 2 11:28:01 2015 UTC (9 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +3 -3 lines
bus_dma_segment_t ds_addr is bus_addr_t not paddr_t (another case of it)

Revision 1.69: download - view: text, markup, annotated - select for diffs
Sun Aug 2 11:26:21 2015 UTC (9 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +3 -3 lines
bus_dma_segment_t ds_addr is bus_addr_t not paddr_t

Revision 1.68: download - view: text, markup, annotated - select for diffs
Sun Aug 2 07:14:10 2015 UTC (9 years, 4 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +9 -5 lines
Be more verbose about error conditions.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Sun Aug 2 07:07:02 2015 UTC (9 years, 4 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -3 lines
correct (the commented out) calculation of bus frequency.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Sun Aug 2 00:24:24 2015 UTC (9 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +6 -2 lines
return MMC_OCR_HCS bit from host_ocr if the controller supports high-speed mode

Revision 1.65: download - view: text, markup, annotated - select for diffs
Fri Jul 31 15:00:08 2015 UTC (9 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +52 -64 lines
Simplify sdhc(4) locking

Revision 1.64: download - view: text, markup, annotated - select for diffs
Thu Jul 30 15:03:14 2015 UTC (9 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +7 -3 lines
print "platform DMA" instead of "SDMA" when using external DMA engine

Revision 1.63: download - view: text, markup, annotated - select for diffs
Wed Jul 29 12:11:13 2015 UTC (9 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +146 -8 lines
Add ADMA2 support, which enables scatter gather DMA for data transfers on
controllers that support it.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Tue Jul 28 07:14:48 2015 UTC (9 years, 4 months ago) by skrll
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +2 -3 lines
Remove unnecessary #include

Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:52:54 2015 UTC (9 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +15 -4 lines
Add a SDHC_FLAG_NO_TIMEOUT quirk to handle spurious timeouts on Tegra K1
during data transfers. While here, increase the soft timeout for DMA
transfers from 1s to 3s.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Wed Jul 22 09:54:42 2015 UTC (9 years, 4 months ago) by skrll
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +15 -16 lines
Use C99 designated initializers.

No functional change.

Revision 1.51.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:13 2015 UTC (9 years, 5 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.51.2.1: preferred, colored; branchpoint 1.51: preferred, colored
Changes since revision 1.51.2.1: +60 -25 lines
Sync with HEAD

Revision 1.59: download - view: text, markup, annotated - select for diffs
Sat May 30 17:52:07 2015 UTC (9 years, 6 months ago) by jmcneill
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +9 -3 lines
support 8-bit mode for SDHC 3.0+ controllers

Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun May 3 22:37:27 2015 UTC (9 years, 7 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +17 -10 lines
print some useful information at attach time

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun May 3 11:46:25 2015 UTC (9 years, 7 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +16 -9 lines
Add SDHC_FLAG_SINGLE_POWER_WRITE flag, that tells the driver to update
the SDHC_POWER_CTL register with a single write rather than in multiple
steps. Required for Tegra K1 SDHC.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sat May 2 12:10:24 2015 UTC (9 years, 7 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +11 -6 lines
support SDHC 4.0, allow for overriding clk base frequency

Revision 1.44.2.8: download - view: text, markup, annotated - select for diffs
Sun Apr 19 04:31:40 2015 UTC (9 years, 7 months ago) by msaitoh
Branches: netbsd-7
CVS tags: netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Diff to: previous 1.44.2.7: preferred, colored; branchpoint 1.44: preferred, colored
Changes since revision 1.44.2.7: +15 -5 lines
Pull up following revision(s) (requested by bouyer in ticket #703):
	sys/dev/sdmmc/sdhcvar.h: revision 1.16
	sys/dev/sdmmc/sdhc.c: revision 1.55
Add a new SDHC_FLAG, SDHC_FLAG_EXTDMA_DMAEN, which request that the
SDHC_DMA_ENABLE bit be set in the command, even if we're using an
external DMA engine. Needed by the upcoming DMA support for AM335x
(beaglebone).

Revision 1.55: download - view: text, markup, annotated - select for diffs
Tue Apr 14 18:34:29 2015 UTC (9 years, 7 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +15 -5 lines
Add a new SDHC_FLAG, SDHC_FLAG_EXTDMA_DMAEN, which request that the
SDHC_DMA_ENABLE bit be set in the command, even if we're using an
external DMA engine. Needed by the upcoming DMA support for AM335x
(beaglebone).

Revision 1.51.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:13 2015 UTC (9 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +11 -5 lines
Sync with HEAD

Revision 1.44.2.7: download - view: text, markup, annotated - select for diffs
Mon Mar 9 09:29:33 2015 UTC (9 years, 8 months ago) by snj
Branches: netbsd-7
Diff to: previous 1.44.2.6: preferred, colored; branchpoint 1.44: preferred, colored
Changes since revision 1.44.2.6: +5 -3 lines
Pull up following revision(s) (requested by nonaka in ticket #577):
	sys/arch/powerpc/booke/dev/pq3sdhc.c: revision 1.6
	sys/dev/sdmmc/sdhc.c: revision 1.54
	sys/dev/sdmmc/sdmmc.c: revision 1.24
eSDHC has no DMA_BOUNDARY in BLOCK_SIZE register.
So clear multi segment DMA transfer support bit.
--
fix to simulate multi-segment dma transfer for pq3sdhc(4).
--
pq3sdhc: Enable DMA transfer.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Fri Feb 27 15:53:09 2015 UTC (9 years, 9 months ago) by nonaka
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +5 -3 lines
eSDHC has no DMA_BOUNDARY in BLOCK_SIZE register.
So clear multi segment DMA transfer support bit.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Fri Feb 27 01:52:15 2015 UTC (9 years, 9 months ago) by nonaka
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3 lines
Don't clear other bits. pq3sdhc is set more bits.

Revision 1.44.2.6: download - view: text, markup, annotated - select for diffs
Tue Jan 27 08:17:09 2015 UTC (9 years, 10 months ago) by martin
Branches: netbsd-7
Diff to: previous 1.44.2.5: preferred, colored; branchpoint 1.44: preferred, colored
Changes since revision 1.44.2.5: +7 -3 lines
Pull up following revision(s) (requested by nonaka in ticket #460):
	sys/dev/sdmmc/sdhcreg.h: revision 1.12
	sys/dev/sdmmc/sdhc.c: revision 1.52
eSDHC has non standard Host Controller Version Register offset.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Mon Jan 26 04:56:56 2015 UTC (9 years, 10 months ago) by nonaka
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +7 -3 lines
eSDHC has non standard Host Controller Version Register offset.

Revision 1.44.2.5: download - view: text, markup, annotated - select for diffs
Sun Oct 5 20:00:54 2014 UTC (10 years, 2 months ago) by martin
Branches: netbsd-7
Diff to: previous 1.44.2.4: preferred, colored; branchpoint 1.44: preferred, colored
Changes since revision 1.44.2.4: +4 -3 lines
Pull up following revision(s) (requested by skrll in ticket #129):
	sys/dev/sdmmc/sdhcvar.h: revision 1.15
	sys/dev/sdmmc/sdhc.c: revision 1.51
	sys/arch/arm/broadcom/bcm2835_emmc.c: revision 1.19
Pass sdhc_softc instead of sdhc_host to sc_vendor_transfer_data_dma,
since the vendor specific code has no access to it otherwise,
but can easily do device_private(sdhc_softc->sc_dev).

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sat Oct 4 18:09:32 2014 UTC (10 years, 2 months ago) by jmcneill
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -3 lines
pass sdhc_softc instead of sdhc_host to sc_vendor_transfer_data_dma, since the vendor specific code has no visibility into struct sdhc_host and can easily do device_private(sdhc_softc->sc_dev)

Revision 1.44.2.4: download - view: text, markup, annotated - select for diffs
Sat Oct 4 08:20:11 2014 UTC (10 years, 2 months ago) by martin
Branches: netbsd-7
Diff to: previous 1.44.2.3: preferred, colored; branchpoint 1.44: preferred, colored
Changes since revision 1.44.2.3: +3 -4 lines
Pull up following revision(s) (requested by skrll in ticket #127):
	sys/dev/sdmmc/sdhc.c: revision 1.50
Fix divisor calculation for SDHC 3.0.

Revision 1.44.2.3: download - view: text, markup, annotated - select for diffs
Fri Oct 3 18:53:56 2014 UTC (10 years, 2 months ago) by martin
Branches: netbsd-7
Diff to: previous 1.44.2.2: preferred, colored; branchpoint 1.44: preferred, colored
Changes since revision 1.44.2.2: +23 -12 lines
Pull up following revision(s) (requested by skrll in ticket #126):
	sys/arch/evbarm/rpi/rpi_machdep.c: revision 1.47
	sys/arch/arm/broadcom/bcm2835reg.h: revision 1.12
	sys/arch/evbarm/conf/RPI: revision 1.52
	sys/arch/evbarm/conf/RPI: revision 1.53
	sys/arch/evbarm/conf/RPI: revision 1.54
	sys/arch/arm/broadcom/bcm2835_emmc.c: revision 1.10
	sys/arch/arm/broadcom/bcm2835_emmc.c: revision 1.11
	sys/arch/arm/broadcom/bcm2835_emmc.c: revision 1.12
	sys/arch/arm/broadcom/bcm2835_emmc.c: revision 1.13
	sys/arch/arm/broadcom/bcm2835_emmc.c: revision 1.14
	sys/arch/arm/broadcom/bcm2835_emmc.c: revision 1.15
	sys/arch/arm/broadcom/bcm2835_dmac.c: revision 1.3
	sys/arch/arm/broadcom/bcm2835_dmac.c: revision 1.4
	sys/arch/arm/broadcom/bcm2835_dmac.h: revision 1.2
	sys/arch/arm/broadcom/bcm2835_dmac.c: revision 1.5
	sys/arch/arm/broadcom/bcm2835_emmc.c: revision 1.18
	sys/arch/arm/broadcom/bcm2835_dmac.h: revision 1.3
	sys/arch/arm/broadcom/bcm2835_dmac.c: revision 1.6
	sys/arch/arm/broadcom/bcm2835_dmac.c: revision 1.7
	sys/arch/arm/broadcom/bcm2835_dmac.c: revision 1.8
	sys/arch/arm/broadcom/bcm2835_dmac.c: revision 1.9
	sys/arch/arm/broadcom/files.bcm2835: revision 1.23
	sys/dev/sdmmc/sdhc.c: revision 1.45
	sys/dev/sdmmc/sdhc.c: revision 1.46
	sys/dev/sdmmc/sdhc.c: revision 1.47
	sys/dev/sdmmc/sdhcvar.h: revision 1.14
Various RPI DMAC and sdhc improvements.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Thu Oct 2 18:14:38 2014 UTC (10 years, 2 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -4 lines
Fix divisor calculation for SDHC 3.0.
1/1   -> 0
1/2   -> 1
1/4   -> 2
...
1/2*N -> N

Revision 1.44.2.2: download - view: text, markup, annotated - select for diffs
Thu Oct 2 14:42:53 2014 UTC (10 years, 2 months ago) by martin
Branches: netbsd-7
Diff to: previous 1.44.2.1: preferred, colored; branchpoint 1.44: preferred, colored
Changes since revision 1.44.2.1: +4 -2 lines
Pull up following revision(s) (requested by jmcneill in ticket #124):
	sys/dev/sdmmc/sdhc.c: revision 1.49
Correct clk div calculation for SD 3.0 controllers.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Wed Oct 1 20:59:37 2014 UTC (10 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +4 -2 lines
correct clk div calculation for SD 3.0 controllers

Revision 1.44.2.1: download - view: text, markup, annotated - select for diffs
Wed Oct 1 08:53:43 2014 UTC (10 years, 2 months ago) by martin
Branches: netbsd-7
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +5 -4 lines
Pull up following revision(s) (requested by jmcneill in ticket #123):
	sys/dev/sdmmc/sdhc.c: revision 1.48
Don't check slot type for pre-3.0 controllers, the bits were reserved at
the time. If an older controller advertises 1.8V support, just use it.
This fixes high-speed mode support for me on BeagleBone Black.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Wed Oct 1 00:25:43 2014 UTC (10 years, 2 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +5 -4 lines
Don't check slot type for pre-3.0 controllers, the bits were reserved at
the time. If an older controller advertises 1.8V support, just use it.
This fixes high-speed mode support for me on BeagleBone Black.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sun Sep 14 08:47:08 2014 UTC (10 years, 2 months ago) by skrll
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +18 -13 lines
When doing vendor dma transfer wait for SDHC_TRANSFER_COMPLETE.

From jmcneill@ with some layout changes from me.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Fri Sep 12 19:47:40 2014 UTC (10 years, 2 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +5 -3 lines
Avoid NULL deref when sdhc(4) attaches via config_interrupts().

Revision 1.45: download - view: text, markup, annotated - select for diffs
Fri Sep 12 19:45:16 2014 UTC (10 years, 2 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +8 -4 lines
Allow sdhc(4) to use a non-integrated DMA engine.

Revision 1.30.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:50 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.30.2.2: preferred, colored
Changes since revision 1.30.2.2: +6 -4 lines
Rebase to HEAD as of a few days ago.

Revision 1.43.10.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:58 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43: +6 -4 lines
Rebase.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sat May 24 12:10:32 2014 UTC (10 years, 6 months ago) by hkenken
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +6 -4 lines
eSDHC Controller doesn't have "Host SDMA Buffer Boundary" bit field

Revision 1.7.2.6: download - view: text, markup, annotated - select for diffs
Sat Feb 15 03:33:40 2014 UTC (10 years, 9 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.7.2.5: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.2.5: +5 -5 lines
HAS_CGM -> HAVE_CGM (like current)
Add 32BIT_ACCESS

Revision 1.7.2.5: download - view: text, markup, annotated - select for diffs
Tue Nov 5 18:35:35 2013 UTC (11 years ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.7.2.4: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.4: +3 -3 lines
turn off debug

Revision 1.30.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:31 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.30.2.1: preferred, colored
Changes since revision 1.30.2.1: +138 -54 lines
resync with head

Revision 1.10.2.5: download - view: text, markup, annotated - select for diffs
Wed Feb 13 01:36:15 2013 UTC (11 years, 9 months ago) by riz
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1
Diff to: previous 1.10.2.4: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.2.4: +4 -3 lines
Pull up following revision(s) (requested by skrll in ticket #813):

etc/MAKEDEV.tmpl					1.160
etc/etc.evbarm/MAKEDEV.conf				1.9
external/broadcom/rpi-firmware/dist/LICENCE.broadcom	1.1
external/broadcom/rpi-firmware/dist/bootcode.bin	1.1
external/broadcom/rpi-firmware/dist/bootcode.bin	1.2
external/broadcom/rpi-firmware/dist/fixup.dat		1.1
external/broadcom/rpi-firmware/dist/fixup.dat		1.2
external/broadcom/rpi-firmware/dist/fixup_cd.dat	1.1
external/broadcom/rpi-firmware/dist/fixup_cd.dat	1.2
external/broadcom/rpi-firmware/dist/start.elf		1.1
external/broadcom/rpi-firmware/dist/start.elf		1.2
external/broadcom/rpi-firmware/dist/start_cd.elf	1.1
external/broadcom/rpi-firmware/dist/start_cd.elf	1.2
sys/arch/arm/broadcom/bcm2835_bsc.c			1.1 via patch
sys/arch/arm/broadcom/bcm2835_bscreg.h			1.1 via patch
sys/arch/arm/broadcom/bcm2835_dotg.c			1.1 via patch
sys/arch/arm/broadcom/bcm2835_emmc.c			1.7 via patch
sys/arch/arm/broadcom/bcm2835_genfb.c			1.4 via patch
sys/arch/arm/broadcom/bcm2835_gpio_subr.c		1.2 via patch
sys/arch/arm/broadcom/bcm2835_gpio_subr.h		1.1 via patch
sys/arch/arm/broadcom/bcm2835_gpioreg.h			1.1 via patch
sys/arch/arm/broadcom/bcm2835_intr.c			1.3 via patch
sys/arch/arm/broadcom/bcm2835_mbox.c			1.5 via patch
sys/arch/arm/broadcom/bcm2835_mbox.h			1.4 via patch
sys/arch/arm/broadcom/bcm2835_obio.c			1.17 via patch
sys/arch/arm/broadcom/bcm2835_pm.c			1.2 via patch
sys/arch/arm/broadcom/bcm2835_rng.c			1.3 via patch
sys/arch/arm/broadcom/bcm2835_space.c			1.5 via patch
sys/arch/arm/broadcom/bcm2835_spi.c			1.1 via patch
sys/arch/arm/broadcom/bcm2835_spireg.h			1.1 via patch
sys/arch/arm/broadcom/bcm2835_tmr.c			1.3 via patch
sys/arch/arm/broadcom/bcm2835reg.h			1.10 via patch
sys/arch/arm/broadcom/files.bcm2835			1.14 via patch
sys/arch/evbarm/conf/RPI				1.23 via patch
sys/arch/evbarm/conf/files.rpi				1.3 via patch
sys/arch/evbarm/conf/mk.rpi				1.2 via patch
sys/arch/evbarm/conf/std.rpi				1.4 via patch
sys/arch/evbarm/rpi/rpi_machdep.c			1.34 via patch
sys/arch/evbarm/rpi/rpi_start.S				1.7 via patch
sys/arch/evbarm/rpi/rpi_vcmbox.c			1.2 via patch
sys/arch/evbarm/rpi/vcio.h				1.1 via patch
sys/arch/evbarm/rpi/vcprop.h				1.7 via patch
sys/conf/files						patch
sys/dev/sdmmc/sdhc.c					1.43
sys/dev/sdmmc/sdhcvar.h					1.13
sys/dev/usb/dwc_otg.c					1.45 via patch
sys/dev/usb/dwc_otgreg.h				1.5 via patch
sys/dev/usb/dwc_otgvar.h				1.11 via patch
sys/dev/usb/files.usb					1.126 via patch
sys/dev/usb/if_smsc.c					1.7 via patch
sys/dev/usb/if_smscreg.h				1.1 via patch
sys/dev/usb/if_smscvar.h				1.1 via patch
sys/dev/usb/usbdevices.config				patch
sys/dev/usb/usbdevs					1.633 via patch
sys/dev/usb/usbdevs.h					regen
sys/dev/usb/usbdevs_data.h				regen
sys/dev/wscons/wsconsio.h				1.105,1.107 via patch
sys/dev/wscons/wsdisplayvar.h				1.50
sys/dev/wscons/wsdisplay_util.c				1.2
sys/dev/videomode/edid.c				1.12 via patch

	Greatly improved Raspberry Pi support.  USB and onboard
	Ethernet should work.
	[skrll, ticket #813]

Revision 1.9.2.4: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:06:09 2013 UTC (11 years, 10 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.9.2.3: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.2.3: +89 -31 lines
sync with head

Revision 1.9.2.3: download - view: text, markup, annotated - select for diffs
Wed Jan 16 05:33:32 2013 UTC (11 years, 10 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.9.2.2: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.2.2: +51 -25 lines
sync with (a bit old) head

Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Jan 10 17:19:33 2013 UTC (11 years, 10 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-pagecache-base9, yamt-pagecache-base8, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-earlyentropy
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +4 -3 lines
add SDHC_FLAG_NO_HS_BIT flag to prevent sdhc driver from setting the SDHC_HIGH_SPEED bit in SDHC_HOST_CTL, required to get many high speed cards working on rpi

Revision 1.42: download - view: text, markup, annotated - select for diffs
Tue Jan 8 19:36:38 2013 UTC (11 years, 10 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +8 -2 lines
If the command protocol calls for a trailing busy signal,
wait (up to 10 seconds) for it to be released.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Jan 7 02:56:24 2013 UTC (11 years, 10 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +7 -4 lines
Find correct slot index in sdhc_cfprint().

Revision 1.10.2.4: download - view: text, markup, annotated - select for diffs
Wed Jan 2 23:34:56 2013 UTC (11 years, 11 months ago) by riz
Branches: netbsd-6
Diff to: previous 1.10.2.3: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.3: +53 -26 lines

sys/dev/sdmmc/sdhc.c				patch
sys/dev/sdmmc/sdhcreg.h				patch

	Support SDHC version 3 clocks.
	[skrll, ticket #759]

Revision 1.40: download - view: text, markup, annotated - select for diffs
Mon Dec 24 06:09:50 2012 UTC (11 years, 11 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +4 -3 lines
SDHC_VOLTAGE_SUPP_1_8V is only valid in the presence of SDHC_EMBEDDED_SLOT.
Fixes probing of full-size 1GB Toshiba card made in 2008 that fails to
respond with a 1.8V supply.  (JMB389 (in TS-RDF1) host claims
SDHC_VOLTAGE_SUPP_1_8V but does not claim SDHC_EMBEDDED_SLOT.)

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Dec 23 22:33:09 2012 UTC (11 years, 11 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -6 lines
SMC_CAPS_DMA without SMC_CAPS_MULTI_SEG_DMA means we as a host driver only
can support one segment per operation.  This is not the case with SDHCI SDMA,
the only SDHCI DMA mechanism we currently support in sdhc(4).  Should fix
corrupt data on DMA-enabled SDHCI controllers claiming conformance to a SDHCI
Specification other than 1.0.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Dec 22 03:56:58 2012 UTC (11 years, 11 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +39 -11 lines
Add support for SDHCI 3.0 bus clock generation, which unlike 1.0 and 2.0
has support for non-power-of-two divisors from 1 to 1023. Additionally
restore finding the correct power-of-two divisor for standard-compliant
pre-3.0 SDHCI parts.  Also, calculate minimum divided clock for the
clkmsk-quirk parts correctly.

XXX Will future standard-compliant SDHCI versions have a SDHCI 3.0
backwards-compatible clock generator, or just SDHCI 1.0/2.0?

Revision 1.37: download - view: text, markup, annotated - select for diffs
Thu Dec 20 22:56:38 2012 UTC (11 years, 11 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3 lines
If we get a SDMA boundary-crossing interrupt at the end of the final
segment, the transfer is not implicitly complete; we still need to wait
for the transfer complete interrupt so that we can issue new commands
successfully.

This fixes the problem my Ricoh R5C822 was having where all writes after
a larger (64KiB) write were failing because we attempted to issue CMD13
(to check the status of the aformentioned write) too soon afterwards.

I suspect this fix to apply to other Ricoh SDHCI controllers I've heard
people have had trouble with.  Sorry I didn't look at this sooner.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Dec 20 14:37:00 2012 UTC (11 years, 11 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +35 -13 lines
Change sdhc_detach so that it detaches all host controllers at once.
This should make multiple slot controllers, for example those with
a controller on more than one PCI/CardBus BAR, detach with fewer bugs.
Tested with as-of-yet-uncommited sdhc_pci changes on a single-host
ExpressCard JMicron JMB38[89].

Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Dec 13 06:43:37 2012 UTC (11 years, 11 months ago) by riastradh
Branches: MAIN
CVS tags: yamt-pagecache-base7
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +24 -4 lines
Implement TI AM335x's SDHC reset quirk.  Beaglebone SDHC works now!

On the AM335x, we first must wait for the controller to acknowledge
the reset; then we can wait for the reset to complete.

I believe this quirk also applies to the OMAP4 ES, but I don't have
one of those to test and we don't seem to have an obvious conditional
for it anyway.

This quirk may work for controllers that don't require it too, but I
am nervous about doing it by default because if we miss the reset
acknowledgement, then we'll just time out even though everything is
really hunky-dory.

Also, for all sdhc, don't bother writing 0 in sdhc_soft_reset while
waiting for the reset to complete; there is no need.

ok matt

Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Dec 12 15:15:31 2012 UTC (11 years, 11 months ago) by matt
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +8 -2 lines
Add sc_vendor_bus_clock hook
From jmcneill.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Wed Dec 12 06:24:01 2012 UTC (11 years, 11 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +23 -23 lines
Avoid the 16-bit read in sdhc_host_found for 32-bit-only devices.

This change makes sdhc_host_found allocate hp up front before showing
the identification, in order to avoid having to open-code a copy of
HREAD2 before hp is available.

Revision 1.30.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:02:33 2012 UTC (12 years ago) by tls
Branches: tls-maxphys
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +42 -14 lines
Resync to 2012-11-19 00:00:00 UTC

Revision 1.9.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:22:01 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.9.2.1: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.2.1: +183 -103 lines
sync with head

Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Oct 29 13:30:25 2012 UTC (12 years, 1 month ago) by kiyohara
Branches: MAIN
CVS tags: yamt-pagecache-base6
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +41 -13 lines
Support omap3 SDHC driver.  tested on OVERO only.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Sep 13 21:44:50 2012 UTC (12 years, 2 months ago) by joerg
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -3 lines
Don't use const foo const as type, one const is enough.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Fri Aug 31 01:44:20 2012 UTC (12 years, 3 months ago) by matt
Branches: MAIN
Branch point for: tls-maxphys
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +7 -3 lines
Support deciphering SDHCv3 clock rates.

Revision 1.10.2.3: download - view: text, markup, annotated - select for diffs
Thu Aug 9 06:36:48 2012 UTC (12 years, 3 months ago) by jdc
Branches: netbsd-6
CVS tags: netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Diff to: previous 1.10.2.2: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.2: +11 -6 lines
Pull up revisions:
  src/sys/arch/evbarm/dev/plcomreg.h revisions 1.2,1.3,1.4
  src/sys/arch/evbarm/conf/INTEGRATOR revision 1.65
  src/sys/arch/evbarm/dev/plcom.c revisions 1.34,1.35,1.36,1.37,1.38,1.39,1.40
  src/sys/arch/evbarm/ifpga/plcom_ifpga.c revisions 1.12,1.13,1.14
  src/sys/arch/evbarm/dev/plcomvar.h revisions 1.9,1.10,1.11
  src/sys/arch/evbarm/ifpga/plcom_ifpgavar.h revision 1.2
  src/sys/arch/arm/arm/cpufunc.c revisions 1.105,1.108
  src/sys/arch/arm/arm32/cpu.c revision 1.79
  src/sys/arch/arm/include/armreg.h revisions 1.49,1.54
  src/sys/arch/arm/arm32/pmap.c revision 1.229
  src/sys/arch/arm/arm32/arm32_machdep.c revision 1.77
  src/sys/arch/arm/include/cpu.h revision 1.64
  src/sys/arch/arm/arm/cpufunc_asm_arm1136.S revision 1.3
  src/sys/arch/arm/arm/cpufunc_asm_arm11x6.S revision 1.1
  src/sys/arch/arm/conf/files.arm revision 1.106
  src/sys/arch/arm/include/cpufunc.h revision 1.57
  src/sys/dev/sdmmc/sdhc.c revisions 1.14,1.24
  src/sys/dev/sdmmc/sdhcvar.h revisions 1.7,1.8
  src/sys/arch/evbarm/ifpga/ifpgareg.h revision 1.4
  src/sys/arch/evbarm/integrator/integrator_machdep.c revision 1.69
  src/sys/arch/arm/broadcom/bcm2835_dma.c revision 1.1
  src/sys/arch/arm/broadcom/bcm2835_emmc.c revision 1.1
  src/sys/arch/arm/broadcom/bcm2835_intr.c revision 1.1
  src/sys/arch/arm/broadcom/bcm2835_intr.h revision 1.1
  src/sys/arch/arm/broadcom/bcm2835_obio.c revision 1.1
  src/sys/arch/arm/broadcom/bcm2835_plcom.c revision 1.1
  src/sys/arch/arm/broadcom/bcm2835_pm.c revision 1.1
  src/sys/arch/arm/broadcom/bcm2835_pmvar.h revision 1.1
  src/sys/arch/arm/broadcom/bcm2835_space.c revision 1.1
  src/sys/arch/arm/broadcom/bcm2835_tmr.c revision 1.1
  src/sys/arch/arm/broadcom/bcm2835reg.h revision 1.1
  src/sys/arch/arm/broadcom/bcm2835var.h revision 1.1
  src/sys/arch/arm/broadcom/bcm_amba.h revision 1.1
  src/sys/arch/arm/broadcom/files.bcm2835 revision 1.1
  src/sys/arch/evbarm/Makefile revision 1.9
  src/sys/arch/evbarm/conf/RPI revision 1.1
  src/sys/arch/evbarm/conf/files.rpi revision 1.1
  src/sys/arch/evbarm/conf/mk.rpi revision 1.1
  src/sys/arch/evbarm/conf/std.rpi revision 1.1
  src/sys/arch/evbarm/rpi/genassym.cf revision 1.1
  src/sys/arch/evbarm/rpi/rpi.h revision 1.1
  src/sys/arch/evbarm/rpi/rpi_machdep.c revision 1.1
  src/sys/arch/evbarm/rpi/rpi_start.S revision 1.1,1.2
  src/etc/etc.evbarm/Makefile.inc revision 1.28
(requested by skrll in ticket #454).

don't mix #define<TAB> and #define<SPACE> in a file.

avoid warning with options PLCOM_DEBUG for INTEGRATOR.

Rename register values. No functional change - same code before and after.

Existing names are prefixed with PL01X_ where they're common between the
PL010 and the PL011. The PL010_/PL011_ prefixes are added where they're
found only on the respective chips.

Replace the simple_lock with a kmutex_t.  Update the locking to match
com(4) in the few places it didn't already.

DOH.  Replace a line that got accidently deleted in the last commit.

device_t/softc split
struct device * -> device_t
struct cfdata * -> cfdata_t

Add the 'Z' to the 1176 cpu product name.

ok matt@

Fix locking botch introduced in 1.36.

Fix a KASSERT. From/OK'ed by matt@

Fix racy softint dispatch that lead to KASSERT(si->si_active) in
softint_execute

Discussed with matt@. "Looks good to me"

Add the documented ARM11[37]6 Auxiliary control register defines.

Add support for the ARM1176JZS

Add a flag for the lack of LED_ON in HOST_CTL (ti omap3 doesn't do that).

Provide a method for attachments to specify capabilites.

Add support for the PL011 to plcom. Pull across a bunch of fixes from
com(4) while I'm here and do some other tidyup.

Tested on a RaspberryPi.

PL010 not tested.

Initial commit of support for the RaspberryPI (www.raspberrypi.org)

This is enough for serial console via the gpio header pins and to get to
multiuser.

A huge thank you to Matt Thomas for all his help.

Add RPI to KERNEL_SETS

Remove #if 0 code.

Revision 1.10.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 8 06:18:59 2012 UTC (12 years, 3 months ago) by jdc
Branches: netbsd-6
Diff to: previous 1.10.2.1: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.1: +43 -16 lines
Pull up revisions:
  src/sys/dev/sdmmc/sdhc.c revisions 1.16,1.20,1.21,1.22,1.23 via patch,1.25
  src/sys/dev/sdmmc/sdhcreg.h revision 1.8
  src/sys/dev/sdmmc/sdmmc_mem.c revisions 1.21,1.22
  src/sys/dev/sdmmc/sdmmcreg.h revisions 1.10,1.11,1.12
(requested by matt in ticket 441).

SDHCI byte swaps the BE response on the wire into LE registers.
As we always want response data in LE, use bus_space_read_stream.
Additonally, read response data in 1 or 4 4-byte chunks, instead of
one 4-byte chunk or 15 1-byte chunks.

bus_space_*_stream_N() functions are not universally available.
Provite alternate implementation for when they are unavailable.

Handle interrupt acknowledgement in the SDHC_FLAG_32BIT_ACCESS case in
the same way as non-SDHC_FLAG_32BIT_ACCESS case.

If there was an error in 32-bit mode, just set ERROR_INTERRUPT otherwise
see if matched anything we care about.

Add use of watermark register when PIO to an ESDHC.  After every kill or
drain of watermask words, pause a bit to give time for the fifo to recover.
Always the command response in BE byteorder.  Rewrite __bitfield to deal
with this.

Responses are actually in host order (except SCR which is return in
big endian so that's convert to host order).

Fix comments about __bitfield.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Mon Jul 30 00:56:01 2012 UTC (12 years, 4 months ago) by matt
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +23 -14 lines
Make PIO on normal SDHC devices work correctly on big-endian machines.
Add locking around interrupt manipulation (it should now be MP safe).

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Jul 28 23:02:57 2012 UTC (12 years, 4 months ago) by matt
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +8 -6 lines
Only SDHC 1.0 controllers can do that fucky MULTI_SEG stuff.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Jul 28 20:08:51 2012 UTC (12 years, 4 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +7 -9 lines
sdhc(4) currently only implements support for the SDHC 1.0 DMA mechanism, so
only enable in that case.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Jul 26 18:36:09 2012 UTC (12 years, 4 months ago) by matt
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +11 -9 lines
MULTI_SEG does not for ESDHC.  (Don't know how it works at all on any SDHC
but ...)

Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Jul 23 13:32:19 2012 UTC (12 years, 4 months ago) by matt
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3 lines
Responses are actually in host order (except SCR which is return in
big endian so that's convert to host order).

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Jul 21 16:14:05 2012 UTC (12 years, 4 months ago) by skrll
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +9 -5 lines
Provide a method for attachments to specify capabilites.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Jul 20 02:04:13 2012 UTC (12 years, 4 months ago) by matt
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +34 -16 lines
Add use of watermark register when PIO to an ESDHC.  After every kill or
drain of watermask words, pause a bit to give time for the fifo to recover.
Always the command response in BE byteorder.  Rewrite __bitfield to deal
with this.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Jul 17 21:35:26 2012 UTC (12 years, 4 months ago) by matt
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +5 -4 lines
If there was an error in 32-bit mode, just set ERROR_INTERRUPT otherwise
see if matched anything we care about.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Jul 17 05:57:49 2012 UTC (12 years, 4 months ago) by skrll
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3 lines
Handle interrupt acknowledgement in the SDHC_FLAG_32BIT_ACCESS case in
the same way as non-SDHC_FLAG_32BIT_ACCESS case.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Jul 12 23:07:06 2012 UTC (12 years, 4 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +7 -2 lines
bus_space_*_stream_N() functions are not universally available.
Provite alternate implementation for when they are unavailable.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Jul 12 17:27:42 2012 UTC (12 years, 4 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +39 -46 lines
Completely rework (and enable) SDHC 1.0 DMA data transfer.

While without a large physically-contiguous buffer the performance
suffers severly, this should still be better than PIO.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Jul 12 17:15:27 2012 UTC (12 years, 4 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +7 -3 lines
No need to panic on failure to find a divisor.
Additionally, add commented out calculation of actual clock frequency.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Jul 12 16:58:50 2012 UTC (12 years, 4 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +18 -3 lines
SDHC can have multiple slots, note which slot a specific sdmmc(4) attaches to.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Jul 12 16:46:48 2012 UTC (12 years, 4 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +9 -9 lines
SDHCI byte swaps the BE response on the wire into LE registers.
As we always want response data in LE, use bus_space_read_stream.
Additonally, read response data in 1 or 4 4-byte chunks, instead of
one 4-byte chunk or 15 1-byte chunks.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Jul 12 16:32:34 2012 UTC (12 years, 4 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +9 -13 lines
Always enable and set block count register.  We never do infinite transfers.
The old way seemed to be causing issues on a R5C822, at least with DMA enabled.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Jul 12 03:05:49 2012 UTC (12 years, 4 months ago) by matt
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -3 lines
Add a flag for the lack of LED_ON in HOST_CTL (ti omap3 doesn't do that).

Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 11 17:45:32 2012 UTC (12 years, 5 months ago) by riz
Branches: netbsd-6
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +507 -186 lines
Pull up following revision(s) (requested by matt in ticket #254):
	sys/arch/powerpc/booke/dev/pq3sdhc.c: revision 1.4
	sys/dev/sdmmc/sdhc.c: revision 1.11
	sys/dev/sdmmc/sdhc.c: revision 1.13
Use the new 32-bit and ESDHC support in sdhc.c
Support 32-bit only access to the SDHC registers.
Add support for FreeScale &quot;Enhanced&quot; SDHC port.
Add support for CGM mode (XLP and BCM2835 (Arason)).
Do not read past array end, found by gcc -O3.
This could cause to HWRITE4() a bad value, but maybe last 2 bytes are
probably ignored by hardware anyway.

Revision 1.9.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:03 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +543 -207 lines
sync with head

Revision 1.9.6.6: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:33:33 2012 UTC (12 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.9.6.5: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.6.5: +17 -9 lines
sync to latest -current.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Mar 15 18:37:43 2012 UTC (12 years, 8 months ago) by bouyer
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +17 -9 lines
Do not read past array end, found by gcc -O3.
This could cause to HWRITE4() a bad value, but maybe last 2 bytes are
probably ignored by hardware anyway.

Revision 1.9.6.5: download - view: text, markup, annotated - select for diffs
Tue Mar 6 18:26:46 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.9.6.4: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.6.4: +60 -49 lines
sync to -current

Revision 1.9.6.4: download - view: text, markup, annotated - select for diffs
Tue Mar 6 09:56:22 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.9.6.3: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.6.3: +49 -60 lines
sync to -current

Revision 1.9.6.3: download - view: text, markup, annotated - select for diffs
Sun Mar 4 00:46:27 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.9.6.2: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.6.2: +58 -47 lines
sync to latest -current.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Mar 2 18:20:33 2012 UTC (12 years, 9 months ago) by nonaka
Branches: MAIN
CVS tags: jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base4
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +60 -49 lines
Added Ricoh 5U822/5U823 SD/MMC Controller support.

Revision 1.9.6.2: download - view: text, markup, annotated - select for diffs
Fri Feb 24 09:11:42 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.9.6.1: preferred, colored; branchpoint 1.9: preferred, colored
Changes since revision 1.9.6.1: +499 -186 lines
sync to -current.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Feb 23 21:06:21 2012 UTC (12 years, 9 months ago) by matt
Branches: MAIN
CVS tags: jmcneill-usbmp-base5, jmcneill-usbmp-base3
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +499 -186 lines
Support 32-bit only access to the SDHC registers.
Add support for FreeScale "Enhanced" SDHC port.
Add support for CGM mode (XLP and BCM2835 (Arason)).

Revision 1.9.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:00 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +6 -2 lines
merge to -current.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Feb 2 22:49:17 2012 UTC (12 years, 10 months ago) by nonaka
Branches: MAIN
CVS tags: netbsd-6-base, jmcneill-usbmp-base2
Branch point for: netbsd-6
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +6 -2 lines
Use "opt_sdmmc.h" for SDHC_DEBUG.

Revision 1.7.2.4: download - view: text, markup, annotated - select for diffs
Tue Dec 27 17:12:47 2011 UTC (12 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.7.2.3: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.3: +27 -7 lines
Sync/merge with changes from matt-nb5-pq3

Revision 1.7.2.3: download - view: text, markup, annotated - select for diffs
Sat Dec 24 01:33:58 2011 UTC (12 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.7.2.2: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.2: +54 -11 lines
Add support for >63MHZ speeds.
Add support for extended clock division via CGM.

Revision 1.3.2.2.4.1: download - view: text, markup, annotated - select for diffs
Tue Jul 26 03:22:29 2011 UTC (13 years, 4 months ago) by matt
Branches: matt-nb5-pq3
Diff to: previous 1.3.2.2: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.2: +34 -10 lines
Backport flash/nand/nor subsystem from -HEAD.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Jun 29 06:21:16 2011 UTC (13 years, 5 months ago) by matt
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +45 -12 lines
Add some inital changes for the Freescale eSDHC.

Revision 1.6.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:54:05 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.6.2.1: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.2.1: +17 -2 lines
sync with head

Revision 1.5.2.2: download - view: text, markup, annotated - select for diffs
Fri Oct 22 07:22:15 2010 UTC (14 years, 1 month ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.1: +15 -0 lines
Sync with HEAD (-D20101022).

Revision 1.1.4.6: download - view: text, markup, annotated - select for diffs
Sat Oct 9 03:32:24 2010 UTC (14 years, 1 month ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.1.4.5: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.4.5: +17 -2 lines
sync with head

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Oct 7 12:06:10 2010 UTC (14 years, 1 month ago) by kiyohara
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, uebayasi-xip-base4, uebayasi-xip-base3, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +17 -2 lines
Support change Open-drain/Push-pull by bus_rod().

Revision 1.1.4.5: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:11 2010 UTC (14 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.1.4.4: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.4: +80 -13 lines
sync with head.

Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:43 2010 UTC (14 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +80 -13 lines
sync with head

Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:49 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +80 -13 lines
Sync with HEAD.

Revision 1.7.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:27:52 2010 UTC (14 years, 7 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Diff to: previous 1.7.2.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.2.1: +1173 -0 lines
sync to netbsd-5

Revision 1.7.2.1
Sat Mar 27 03:04:52 2010 UTC (14 years, 8 months ago) by matt
Branches: matt-nb5-mips64
FILE REMOVED
Changes since revision 1.7: +0 -1240 lines
file sdhc.c was added on branch matt-nb5-mips64 on 2010-04-21 00:27:52 +0000

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Mar 27 03:04:52 2010 UTC (14 years, 8 months ago) by nonaka
Branches: MAIN
CVS tags: yamt-nfs-mp-base10, uebayasi-xip-base2, uebayasi-xip-base1
Branch point for: matt-nb5-mips64
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +80 -13 lines
Added sdhc at cardbus support.

Revision 1.1.4.4: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:03 2010 UTC (14 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.1.4.3: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.3: +7 -7 lines
sync with head

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Feb 24 22:38:08 2010 UTC (14 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -4 lines
A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Jan 12 08:41:16 2010 UTC (14 years, 10 months ago) by uebayasi
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -4 lines
According to SD Host Controller Simplified Specification Version 2.00, 2.2.10.
Host Control Register (Offset 028h), the "Data Transfer Width" bit is in Host
Control Register (Offset 028h), not Power Control Register (Offset 029h).

Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Jan 8 19:53:10 2010 UTC (14 years, 10 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -4 lines
Expand PMF_FN_* macros.

Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Wed Oct 7 15:41:13 2009 UTC (15 years, 1 month ago) by sborrill
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base
Branch point for: matt-nb5-pq3
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.1: +1173 -0 lines
Pull up the following revisions(s) (requested by jmcneill in ticket #1044):
	distrib/sets/lists/man/mi:		patch
	share/man/man4/Makefile:		patch
	sys/arch/amd64/conf/files.amd64:	1.67
	sys/arch/i386/conf/files.i386:		1.349
	sys/conf/files				1.945
	share/man/man4/sdmmc.4:			1.1-1.4
	sys/dev/sdmmc/Makefile.sdmmcdevs	1.1
	sys/dev/sdmmc/devlist2h.awk		1.1
	sys/dev/sdmmc/files.sdmmc		1.1-1.2
	sys/dev/sdmmc/ld_sdmmc.c		1.1-1.3
	sys/dev/sdmmc/sbt.c			1.1-1.2
	sys/dev/sdmmc/sdhc.c			1.1-1.3
	sys/dev/sdmmc/sdhcreg.h			1.1
	sys/dev/sdmmc/sdhcvar.h			1.1
	sys/dev/sdmmc/sdmmc.c			1.1
	sys/dev/sdmmc/sdmmc_cis.c		1.1
	sys/dev/sdmmc/sdmmc_io.c		1.1
	sys/dev/sdmmc/sdmmc_ioreg.h		1.1
	sys/dev/sdmmc/sdmmc_mem.c		1.1-1.2
	sys/dev/sdmmc/sdmmcchip.h		1.1
	sys/dev/sdmmc/sdmmcdevs			1.1
	sys/dev/sdmmc/sdmmcdevs.h		1.1-1.2
	sys/dev/sdmmc/sdmmcreg.h		1.1-1.3
	sys/dev/sdmmc/sdmmcvar.h		1.1

Add sdmmc framework

Revision 1.3.2.1
Fri Oct 2 04:33:58 2009 UTC (15 years, 2 months ago) by sborrill
Branches: netbsd-5
FILE REMOVED
Changes since revision 1.3: +0 -1173 lines
file sdhc.c was added on branch netbsd-5 on 2009-10-07 15:41:13 +0000

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Oct 2 04:33:58 2009 UTC (15 years, 2 months ago) by uebayasi
Branches: MAIN
CVS tags: matt-premerge-20091211, jym-xensuspend-nbase
Branch point for: netbsd-5
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -3 lines
Typo in comment.

Revision 1.1.6.3: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:32:20 2009 UTC (15 years, 4 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.1.6.2: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.6.2: +11 -5 lines
Sync with HEAD.

Revision 1.1.4.3: download - view: text, markup, annotated - select for diffs
Sat Jun 20 07:20:29 2009 UTC (15 years, 5 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.1.4.2: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.2: +11 -5 lines
sync with head

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun May 17 14:36:46 2009 UTC (15 years, 6 months ago) by cegger
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +11 -5 lines
fix crash with LOCKDEBUG+DIAGNOSTIC kernels:

sdhc_bus_clock() calls mutex_enter().
then in DIAGNOSTIC section, sdhc_bus_clock() calls sdhc_card_detect().
sdhc_card_detect() calls mutex_enter() on the same mutex again.
when LOCKDEBUG is enabled, you get

Mutex error: lockdebug_wantlock: locking against myself

Revision 1.1.6.2: download - view: text, markup, annotated - select for diffs
Wed May 13 17:21:29 2009 UTC (15 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.1.6.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.6.1: +1167 -0 lines
Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.1.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:18 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.1.4.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.4.1: +1167 -0 lines
sync with head.

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:36:33 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.1: +1167 -0 lines
Sync with HEAD.

Revision 1.1.6.1
Tue Apr 21 03:00:30 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
FILE REMOVED
Changes since revision 1.1: +0 -1167 lines
file sdhc.c was added on branch jym-xensuspend on 2009-05-13 17:21:29 +0000

Revision 1.1.4.1
Tue Apr 21 03:00:30 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
FILE REMOVED
Changes since revision 1.1: +0 -1167 lines
file sdhc.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:18 +0000

Revision 1.1.2.1
Tue Apr 21 03:00:30 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
FILE REMOVED
Changes since revision 1.1: +0 -1167 lines
file sdhc.c was added on branch nick-hppapmap on 2009-04-28 07:36:33 +0000

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Apr 21 03:00:30 2009 UTC (15 years, 7 months ago) by nonaka
Branches: MAIN
CVS tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jym-xensuspend-base
Branch point for: yamt-nfs-mp, nick-hppapmap, jym-xensuspend
Added SD/MMC support from OpenBSD.
tested on i386, amd64 at current-users ML by pgoyette@.
tested on zaurus by myself.

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>