<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm63xx/atf/drivers/mmc, branch master</title>
<subtitle>Broadcom-s Trusted Firmware A</subtitle>
<id>https://git.openwrt.org/project/bcm63xx/atf/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/project/bcm63xx/atf/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/atf/'/>
<updated>2019-10-03T09:17:31Z</updated>
<entry>
<title>mmc: increase delay between ACMD41 retries</title>
<updated>2019-10-03T09:17:31Z</updated>
<author>
<name>Yann Gautier</name>
</author>
<published>2019-08-16T14:49:41Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/atf/commit/?id=57f4b6f83974b17e0aae04e17f9d95a5659ac88b'/>
<id>urn:sha1:57f4b6f83974b17e0aae04e17f9d95a5659ac88b</id>
<content type='text'>
In the SD Specification, Power Up Diagram of Card figure, the Timeout
value for initialization process (ACMD41 command retries) is 1 second.
Align to match MMC cards (in mmc_send_op_cond()) and Linux kernel code,
and set the delay between ACMD41 command retries to 10ms.

Change-Id: I2e07cb9944e7d7b72f2d4b13e0505e6751458091
Signed-off-by: Yann Gautier &lt;yann.gautier@st.com&gt;
</content>
</entry>
<entry>
<title>drivers: mmc: Fix some issues with MMC stack</title>
<updated>2019-03-07T03:34:20Z</updated>
<author>
<name>Tien Hock, Loh</name>
</author>
<published>2019-03-07T03:34:20Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/atf/commit/?id=a468e756377ebe73920eb83f4a4425cabab66ebc'/>
<id>urn:sha1:a468e756377ebe73920eb83f4a4425cabab66ebc</id>
<content type='text'>
Some bugs in MMC stack needs to be fixed:
- scr cannot be local as this will cause cache issue when invalidating
after the read DMA transfer is completed
- ACMD41 needs to send voltage information in initialization, otherwise the
command is a query, thus will not initialize the controller
- when checking device state, retry until the retries counter goes to zero
before failing

Signed-off-by: Tien Hock, Loh &lt;tien.hock.loh@intel.com&gt;
</content>
</entry>
<entry>
<title>mmc: correctly check ret in mmc_fill_device_info</title>
<updated>2019-01-17T10:17:05Z</updated>
<author>
<name>Yann Gautier</name>
</author>
<published>2019-01-17T10:17:05Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/atf/commit/?id=5f9984ef5d51ed7db0209f4b0603e2182151392a'/>
<id>urn:sha1:5f9984ef5d51ed7db0209f4b0603e2182151392a</id>
<content type='text'>
In patch 93768644, ret will be MMC_STATE_TRAN (=4), which is a valid value.
We shouldn't exit the function in that case, but only if ret is &lt; 0.

Change-Id: I776693fe847b6b45190af028f12d2e724ca46399
Signed-off-by: Yann Gautier &lt;yann.gautier@st.com&gt;
</content>
</entry>
<entry>
<title>Merge pull request #1724 from jbech-linaro/emmc_enumeration</title>
<updated>2019-01-10T09:23:42Z</updated>
<author>
<name>Antonio Niño Díaz</name>
</author>
<published>2019-01-10T09:23:42Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/atf/commit/?id=34efb683e32254b8c325ac3071c5776d243a7b99'/>
<id>urn:sha1:34efb683e32254b8c325ac3071c5776d243a7b99</id>
<content type='text'>
mmc: increase delay when initializing mmc</content>
</entry>
<entry>
<title>Sanitise includes across codebase</title>
<updated>2019-01-04T10:43:17Z</updated>
<author>
<name>Antonio Nino Diaz</name>
</author>
<published>2018-12-14T00:18:21Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/atf/commit/?id=09d40e0e08283a249e7dce0e106c07c5141f9b7e'/>
<id>urn:sha1:09d40e0e08283a249e7dce0e106c07c5141f9b7e</id>
<content type='text'>
Enforce full include path for includes. Deprecate old paths.

The following folders inside include/lib have been left unchanged:

- include/lib/cpus/${ARCH}
- include/lib/el3_runtime/${ARCH}

The reason for this change is that having a global namespace for
includes isn't a good idea. It defeats one of the advantages of having
folders and it introduces problems that are sometimes subtle (because
you may not know the header you are actually including if there are two
of them).

For example, this patch had to be created because two headers were
called the same way: e0ea0928d5b7 ("Fix gpio includes of mt8173 platform
to avoid collision."). More recently, this patch has had similar
problems: 46f9b2c3a282 ("drivers: add tzc380 support").

This problem was introduced in commit 4ecca33988b9 ("Move include and
source files to logical locations"). At that time, there weren't too
many headers so it wasn't a real issue. However, time has shown that
this creates problems.

Platforms that want to preserve the way they include headers may add the
removed paths to PLAT_INCLUDES, but this is discouraged.

Change-Id: I39dc53ed98f9e297a5966e723d1936d6ccf2fc8f
Signed-off-by: Antonio Nino Diaz &lt;antonio.ninodiaz@arm.com&gt;
</content>
</entry>
<entry>
<title>mmc: increase delay when initializing mmc</title>
<updated>2018-12-18T09:25:06Z</updated>
<author>
<name>Joakim Bech</name>
</author>
<published>2018-12-18T09:09:02Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/atf/commit/?id=7d6394297dca05165f52232e74c31da85c1c816c'/>
<id>urn:sha1:7d6394297dca05165f52232e74c31da85c1c816c</id>
<content type='text'>
Running TF-A 2.0 and later seems to cause a regression on HiKey 620.

    NOTICE:  BL2: v2.0(release):v2.0
    NOTICE:  BL2: Built : 17:41:23, Dec 17 2018
    NOTICE:  acpu_dvfs_set_freq: set acpu freq success!ERROR:   CMD1 failed after 100 retries
    ERROR:   BL2: Failed to load image (-5)

The reason seems to be that during emmc enumeration when BL2 sends the command
    OCR_SECTOR_MODE | OCR_VDD_MIN_2V7 | OCR_VDD_MIN_1V7

it for some reason takes some more time to get a reply. So a delay with
mdelay(1), seems to not be enough any longer and therefore we increase it to
mdelay(10) instead which makes the device boot as expected again.

Signed-off-by: Joakim Bech &lt;joakim.bech@linaro.org&gt;
</content>
</entry>
<entry>
<title>drivers: mmc: check mmc_reset_to_idle return</title>
<updated>2018-12-04T09:38:41Z</updated>
<author>
<name>Yann Gautier</name>
</author>
<published>2018-11-29T14:43:37Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/atf/commit/?id=77614a99499b7316340fff738ba07b35736bcfe5'/>
<id>urn:sha1:77614a99499b7316340fff738ba07b35736bcfe5</id>
<content type='text'>
Signed-off-by: Yann Gautier &lt;yann.gautier@st.com&gt;
</content>
</entry>
<entry>
<title>mmc: poll eMMC status after EXT_CSD command</title>
<updated>2018-11-26T01:20:23Z</updated>
<author>
<name>Haojian Zhuang</name>
</author>
<published>2018-11-21T01:19:49Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/atf/commit/?id=93768644799a71e391c3676abe6508107df9f997'/>
<id>urn:sha1:93768644799a71e391c3676abe6508107df9f997</id>
<content type='text'>
EXT_CSD command needs to access data from eMMC device. Add the
operation of polling eMMC device status. Make sure the command is
finished.

Signed-off-by: Haojian Zhuang &lt;haojian.zhuang@linaro.org&gt;
</content>
</entry>
<entry>
<title>mmc: Update framework to use standard response type</title>
<updated>2018-09-28T14:48:37Z</updated>
<author>
<name>Yann Gautier</name>
</author>
<published>2018-09-28T14:48:37Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/atf/commit/?id=97d5db8c5cb95c7ce69ff4d36bcda2aeda143576'/>
<id>urn:sha1:97d5db8c5cb95c7ce69ff4d36bcda2aeda143576</id>
<content type='text'>
Respect official response type and update response to follow
official specification.
All the MMC_RESPONSE_R(_x) are replaced with each corresponding define.

Partly revert 2a82a9c95f6c06079f58d69315544a6b49cf64a4 for dw_mmc.c:
Responses R1, R1B and R5 have CRC.

Signed-off-by: Lionel Debieve &lt;lionel.debieve@st.com&gt;
Signed-off-by: Yann Gautier &lt;yann.gautier@st.com&gt;
</content>
</entry>
<entry>
<title>drivers: mmc: Fix R2 response type definition</title>
<updated>2018-09-28T06:37:09Z</updated>
<author>
<name>Shawn Guo</name>
</author>
<published>2018-09-28T06:21:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/atf/commit/?id=a2a69bc89fb7f4badca445e2fe94d60f425de65e'/>
<id>urn:sha1:a2a69bc89fb7f4badca445e2fe94d60f425de65e</id>
<content type='text'>
The Poplar is broken on eMMC initialization because of commit
2a82a9c95f6c ("drivers: emmc: dw_mmc: Add response flag into response ID
definition").  It changes the driver behavior on response type handling
in dw_send_cmd(), because MMC_RESPONSE_R(2) and MMC_RESPONSE_R2 are
different things.  MMC core is still sending the former while we already
changed to check the latter in dw_mmc driver.

This patch fixes R2 response type in MMC core code.  It's the same
thing as what commit 94522ff7f6d2 ("drivers: mmc: Fix R3 response type
definition") does for R3 response.

With this fix, Poplar is back to work.

Signed-off-by: Shawn Guo &lt;shawn.guo@linaro.org&gt;
</content>
</entry>
</feed>
