From: Minkyu Kang <mk7.kang@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 01/11] Exynos542x: Config: Add various configs
Date: Fri, 16 Jan 2015 15:31:59 +0900 [thread overview]
Message-ID: <54B8B05F.6020808@samsung.com> (raw)
In-Reply-To: <1421328824-15450-2-git-send-email-akshay.s@samsung.com>
On 15/01/15 22:33, Akshay Saraswat wrote:
> This patch adds "iRAM, CPU state and low power" configs
> which are the addresses acting as flag registers.
>
> iROM code checks CONFIG_LOWPOWER_FLAG address. If it is equal
> to CONFIG_LOWPOWER_EN then it jumps to the address (0x02020000+CPUID*4).
> This is a part of iROM logic. Rest other flags are being used at
> various places during kernel switching and reset.
> They are nowhere documented because they are part programming.
> These configs are serving as flags for us because they are
> representing the addresses in iRAM which we are using for
> storing and extracting CPU Status and GIC status.
>
> Signed-off-by: Akshay Saraswat <akshay.s@samsung.com>
> ---
> include/configs/exynos5-common.h | 28 ++++++++++++++++++++++++++++
> 1 file changed, 28 insertions(+)
>
> diff --git a/include/configs/exynos5-common.h b/include/configs/exynos5-common.h
> index ad63f3c..831bfd3 100644
> --- a/include/configs/exynos5-common.h
> +++ b/include/configs/exynos5-common.h
> @@ -231,4 +231,32 @@
> MEM_LAYOUT_ENV_SETTINGS \
> BOOTENV
>
> +/* iRAM */
> +#define CONFIG_PHY_IRAM_BASE 0x02020000
> +#define CONFIG_SEC_IRAM_SIZE 0x53000 /* 332KB */
> +
> +#define CONFIG_EXYNOS_RELOCATE_CODE_BASE (CONFIG_PHY_IRAM_BASE \
> + + CONFIG_SEC_IRAM_SIZE)
> +
> +/*
> + * Low Power settings
> + */
> +#define CONFIG_LOWPOWER_FLAG 0x02020028
> +#define CONFIG_LOWPOWER_ADDR 0x0202002C
> +#define CONFIG_LOWPOWER_EN 0xc9cfcfcf
> +
> +/*
> + * CPU State Settings
> + */
> +#define CONFIG_CPU_STATE (CONFIG_EXYNOS_RELOCATE_CODE_BASE + 0x28)
> +#define CONFIG_GIC_STATE (CONFIG_EXYNOS_RELOCATE_CODE_BASE + 0x38)
> +
> +#define CONFIG_CPU0_STATE (CONFIG_CPU_STATE + 0x0)
> +#define CONFIG_CPU1_STATE (CONFIG_CPU_STATE + 0x4)
> +#define CONFIG_CPU2_STATE (CONFIG_CPU_STATE + 0x8)
> +#define CONFIG_CPU3_STATE (CONFIG_CPU_STATE + 0xC)
> +
> +#define RESET (1 << 0)
> +#define SECONDARY_RESET (1 << 1)
> +
These two defines looks very common.
Please modify the name.
Thanks,
Minkyu Kang.
next prev parent reply other threads:[~2015-01-16 6:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-15 13:33 [U-Boot] [PATCH 00/11] Add support for booting multiple cores Akshay Saraswat
2015-01-15 13:33 ` [U-Boot] [PATCH 01/11] Exynos542x: Config: Add various configs Akshay Saraswat
2015-01-16 6:31 ` Minkyu Kang [this message]
2015-01-28 4:09 ` Simon Glass
2015-01-20 22:33 ` [U-Boot] [PATCH 00/11] Add support for booting multiple cores Kevin Hilman
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=54B8B05F.6020808@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.