public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Minkyu Kang <mk7.kang@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/3] board: samsung: reserve memory for the secure firmware
Date: Wed, 04 Mar 2015 21:27:38 +0900	[thread overview]
Message-ID: <54F6FA3A.2040103@samsung.com> (raw)
In-Reply-To: <54F6F861.9030000@samsung.com>

Hi,

On 04/03/15 21:19, Przemyslaw Marczak wrote:
> Hello Minkyu,
> 
> On 02/17/2015 02:50 PM, Przemyslaw Marczak wrote:
>> Since more than one board requires memory reservation
>> for the secure firmware, the reservation code can be
>> made in a common code.
>> Now, to reserve some part of the the last bank,
>> board config should define:
>> - CONFIG_TZSW_RESERVED_DRAM - len in bytes
>> - CONFIG_NR_DRAM_BANKS - number of memory banks
>>
>> Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
>> Cc: Akshay Saraswat <akshay.s@samsung.com>
>> Cc: Hyungwon Hwang <human.hwang@samsung.com>
>> Cc: Minkyu Kang <mk7.kang@samsung.com>
>> ---
>>   board/samsung/common/board.c | 6 ++++++
>>   1 file changed, 6 insertions(+)
>>
>> diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c
>> index da2245f..a2123cd 100644
>> --- a/board/samsung/common/board.c
>> +++ b/board/samsung/common/board.c
>> @@ -82,7 +82,13 @@ int board_init(void)
>>       }
>>       boot_temp_check();
>>   #endif
>> +#ifdef CONFIG_TZSW_RESERVED_DRAM_SIZE
>> +    /* The last few MB of memory can be reserved for secure firmware */
>> +    ulong size = CONFIG_TZSW_RESERVED_DRAM_SIZE;
>>
>> +    gd->ram_size -= size;
>> +    gd->bd->bi_dram[CONFIG_NR_DRAM_BANKS - 1].size -= size;
>> +#endif
>>       return exynos_init();
>>   }
>>
>>
> 
> There are no comments, so can you apply this patchset?
> 
> Best regards,

applied to u-boot-samsung.

Thanks,
Minkyu Kang.

  reply	other threads:[~2015-03-04 12:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-17 13:50 [U-Boot] [PATCH 0/3] samsung: board: reserve dram for the secure firmware Przemyslaw Marczak
2015-02-17 13:50 ` [U-Boot] [PATCH 1/3] board: samsung: reserve memory " Przemyslaw Marczak
2015-03-04 12:19   ` Przemyslaw Marczak
2015-03-04 12:27     ` Minkyu Kang [this message]
2015-02-17 13:50 ` [U-Boot] [PATCH 2/3] Odroid-XU3: enable the last dram bank and reserve 22MiB Przemyslaw Marczak
2015-02-17 13:50 ` [U-Boot] [PATCH 3/3] Odroid U3: use common code for dram reservation Przemyslaw Marczak

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=54F6FA3A.2040103@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