From: Minkyu Kang <mk7.kang@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/3] samsung: board: support eMMC reset using DT
Date: Fri, 09 Jan 2015 16:48:30 +0900 [thread overview]
Message-ID: <54AF87CE.5030806@samsung.com> (raw)
In-Reply-To: <54AF83BE.2050905@samsung.com>
On 09/01/15 16:31, Joonyoung Shim wrote:
> +Cc Jaehoon,
>
> On 01/09/2015 03:18 AM, Simon Glass wrote:
>> Hi Joonyoung,
>>
>> On 7 January 2015 at 22:44, Joonyoung Shim <jy0922.shim@samsung.com> wrote:
>>> Some exynos boards require special handling of SD4_nRESET_OUT line for
>>> eMMC memory to perform complete reboot e.g. Odroid X2/U3/XU3 boards.
>>>
>>> This will support eMMC reset using DT from reset_misc of samsung common
>>> board file and each board files can support eMMC reset on non DT case.
>>>
>>> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
>>> ---
>>> board/samsung/common/board.c | 27 ++++++++++++++++++++++++++
>>> board/samsung/odroid/odroid.c | 2 +-
>>> doc/device-tree-bindings/exynos/emmc-reset.txt | 15 ++++++++++++++
>>> 3 files changed, 43 insertions(+), 1 deletion(-)
>>> create mode 100644 doc/device-tree-bindings/exynos/emmc-reset.txt
>>>
>>> diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c
>>> index c04ab3c..3218463 100644
>>> --- a/board/samsung/common/board.c
>>> +++ b/board/samsung/common/board.c
>>> @@ -40,6 +40,8 @@ __weak int exynos_power_init(void)
>>> return 0;
>>> }
>>>
>>> +__weak void exynos_reset_misc(void) {}
>>> +
>>> #if defined CONFIG_EXYNOS_TMU
>>> /* Boot Time Thermal Analysis for SoC temperature threshold breach */
>>> static void boot_temp_check(void)
>>> @@ -400,3 +402,28 @@ int misc_init_r(void)
>>> return 0;
>>> }
>>> #endif
>>> +
>>> +void reset_misc(void)
>>> +{
>>> +#ifdef CONFIG_OF_CONTROL
>>
>> I think all Samsung boards have this defined, so this #ifdef can be removed.
>>
>
> OK, if it is true, we can remove this and i will not to support non DT case.
It's OK.
Thanks,
Minkyu Kang.
next prev parent reply other threads:[~2015-01-09 7:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-08 5:44 [U-Boot] [PATCH 1/3] samsung: board: support eMMC reset using DT Joonyoung Shim
2015-01-08 5:44 ` [U-Boot] [PATCH 2/3] Odroid: Add eMMC-reset node on DT Joonyoung Shim
2015-01-08 18:20 ` Simon Glass
2015-01-09 7:30 ` Joonyoung Shim
2015-01-08 5:44 ` [U-Boot] [PATCH 3/3] Odroid-XU3: " Joonyoung Shim
2015-01-08 18:18 ` [U-Boot] [PATCH 1/3] samsung: board: support eMMC reset using DT Simon Glass
2015-01-09 7:31 ` Joonyoung Shim
2015-01-09 7:48 ` Minkyu Kang [this message]
2015-01-09 11:13 ` Jaehoon Chung
2015-01-10 6:53 ` Joonyoung Shim
2015-01-10 17:46 ` Simon Glass
2015-01-12 1:45 ` Jaehoon Chung
2015-01-12 4:45 ` Joonyoung Shim
2015-01-12 15:54 ` Simon Glass
2015-01-08 23:23 ` Sjoerd Simons
2015-01-09 4:21 ` Jaehoon Chung
2015-01-09 7:42 ` Joonyoung Shim
2015-01-09 7:50 ` Sjoerd Simons
2015-01-10 6:41 ` Joonyoung Shim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54AF87CE.5030806@samsung.com \
--to=mk7.kang@samsung.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox