From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 13/15] arm, da850evm: Add an SPL for SPI boot
Date: Mon, 28 Nov 2011 11:00:20 +0100 [thread overview]
Message-ID: <4ED35BB4.3050801@denx.de> (raw)
In-Reply-To: <1322224664-3747-14-git-send-email-christian.riesch@omicron.at>
Hello Christian,
Christian Riesch wrote:
> Signed-off-by: Christian Riesch <christian.riesch@omicron.at>
> Cc: Heiko Schocher <hs@denx.de>
> Cc: Sandeep Paulraj <s-paulraj@ti.com>
> Cc: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
> ---
> board/davinci/da8xxevm/da850evm.c | 4 +-
> board/davinci/da8xxevm/u-boot-spl.lds | 73 +++++++++++++++++++++++++++++++++
> include/configs/da850evm.h | 53 ++++++++++++++++++++++++
> 3 files changed, 129 insertions(+), 1 deletions(-)
> create mode 100644 board/davinci/da8xxevm/u-boot-spl.lds
>
[...]
> diff --git a/include/configs/da850evm.h b/include/configs/da850evm.h
> index 2e2aa19..23eed0f 100644
> --- a/include/configs/da850evm.h
> +++ b/include/configs/da850evm.h
> @@ -65,6 +65,41 @@
> #define CONFIG_NR_DRAM_BANKS 1 /* we have 1 bank of DRAM */
> #define CONFIG_STACKSIZE (256*1024) /* regular stack */
>
> +#define CONFIG_SYS_DA850_SYSCFG_SUSPSRC ((1 << 27) | (1 << 22) | (1 << 20) | \
> + (1 << 5) | (1 << 16))
Please use here the DAVINCI_SYSCFG_SUSPSRC_* defines from
arch/arm/include/asm/arch-davinci/hardware.h
> +
> +/*
> + * PLL configuration
> + */
> +#define CONFIG_SYS_DV_CLKMODE 0
> +#define CONFIG_SYS_DA850_PLL0_POSTDIV 1
> +#define CONFIG_SYS_DA850_PLL0_PLLDIV1 0x8000
> +#define CONFIG_SYS_DA850_PLL0_PLLDIV2 0x8001
> +#define CONFIG_SYS_DA850_PLL0_PLLDIV3 0x8002
> +#define CONFIG_SYS_DA850_PLL0_PLLDIV4 0x8003
> +#define CONFIG_SYS_DA850_PLL0_PLLDIV5 0x8002
> +#define CONFIG_SYS_DA850_PLL0_PLLDIV6 CONFIG_SYS_DA850_PLL0_PLLDIV1
> +#define CONFIG_SYS_DA850_PLL0_PLLDIV7 0x8005
> +
> +#define CONFIG_SYS_DA850_PLL1_POSTDIV 1
> +#define CONFIG_SYS_DA850_PLL1_PLLDIV1 0x8000
> +#define CONFIG_SYS_DA850_PLL1_PLLDIV2 0x8001
> +#define CONFIG_SYS_DA850_PLL1_PLLDIV3 0x8002
> +
> +#define CONFIG_SYS_DA850_PLL0_PLLM 24
> +#define CONFIG_SYS_DA850_PLL1_PLLM 21
> +
> +/*
> + * DDR2 memory configuration
> + */
> +#define CONFIG_SYS_DA850_DDR2_DDRPHYCR 0x000000C4
> +#define CONFIG_SYS_DA850_DDR2_SDBCR 0x0A034622
> +#define CONFIG_SYS_DA850_DDR2_SDBCR2 0x00000000
> +#define CONFIG_SYS_DA850_DDR2_SDTIMR 0x184929C8
> +#define CONFIG_SYS_DA850_DDR2_SDTIMR2 0xB80FC700
> +#define CONFIG_SYS_DA850_DDR2_SDRCR 0x00000406
Could you use here the DV_DDR_* defines from
arch/arm/include/asm/arch-davinci/ddr2_defs.h
> +#define CONFIG_SYS_DA850_DDR2_PBBPR 0x30
> +
> /*
> * Serial Driver info
> */
> @@ -76,6 +111,7 @@
> #define CONFIG_CONS_INDEX 1 /* use UART0 for console */
> #define CONFIG_BAUDRATE 115200 /* Default baud rate */
> #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
> +#define CONFIG_SYS_DA850_LPSC_UART DAVINCI_LPSC_UART2
>
> #define CONFIG_SPI
> #define CONFIG_SPI_FLASH
> @@ -242,6 +278,23 @@
> #undef CONFIG_CMD_ENV
> #endif
>
> +/* defines for SPL */
> +#define CONFIG_SPL
> +#define CONFIG_SPL_SPI_SUPPORT
> +#define CONFIG_SPL_SPI_FLASH_SUPPORT
> +#define CONFIG_SPL_SPI_LOAD
> +#define CONFIG_SPL_SPI_BUS 0
> +#define CONFIG_SPL_SPI_CS 0
> +#define CONFIG_SPL_SERIAL_SUPPORT
> +#define CONFIG_SPL_LIBCOMMON_SUPPORT
> +#define CONFIG_SPL_LIBGENERIC_SUPPORT
> +#define CONFIG_SPL_LDSCRIPT "$(BOARDDIR)/u-boot-spl.lds"
> +#define CONFIG_SPL_STACK 0x8001ff00
> +#define CONFIG_SPL_TEXT_BASE 0x80000000
> +#define CONFIG_SPL_MAX_SIZE 32768
> +#define CONFIG_SYS_SPI_U_BOOT_OFFS 0x8000
> +#define CONFIG_SYS_SPI_U_BOOT_SIZE 0x30000
> +
> /* additions for new relocation code, must added to all boards */
> #define CONFIG_SYS_SDRAM_BASE 0xc0000000
> #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x1000 - /* Fix this */ \
Could you use here some space from On-Chip RAM?
bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
next prev parent reply other threads:[~2011-11-28 10:00 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-25 12:37 [U-Boot] [PATCH v3 00/15] Add an SPL to boot the da850evm from SPI Christian Riesch
2011-11-25 12:37 ` [U-Boot] [PATCH v3 01/15] arm, davinci: Move pinmux functions from board to arch tree Christian Riesch
2011-11-28 9:49 ` Heiko Schocher
2011-11-28 15:58 ` Nick Thompson
2011-11-25 12:37 ` [U-Boot] [PATCH v3 02/15] arm, hawkboard: Remove obsolete struct pinmux_config i2c_pins Christian Riesch
2011-11-28 9:52 ` Heiko Schocher
2011-11-25 12:37 ` [U-Boot] [PATCH v3 03/15] arm, da850evm: Do pinmux configuration for EMAC together with other pinmuxes Christian Riesch
2011-11-28 9:53 ` Heiko Schocher
2011-11-25 12:37 ` [U-Boot] [PATCH v3 04/15] arm, da850: Add pinmux configurations to the arch tree Christian Riesch
2011-11-28 9:53 ` Heiko Schocher
2011-11-25 12:37 ` [U-Boot] [PATCH v3 05/15] arm, da850evm: Use the pinmux configurations defined in " Christian Riesch
2011-11-28 9:53 ` Heiko Schocher
2011-11-25 12:37 ` [U-Boot] [PATCH v3 06/15] arm, hawkboard: " Christian Riesch
2011-11-28 9:54 ` Heiko Schocher
2011-11-25 12:37 ` [U-Boot] [PATCH v3 07/15] arm, davinci: Remove duplication of pinmux configuration code Christian Riesch
2011-11-28 9:54 ` Heiko Schocher
2011-11-25 12:37 ` [U-Boot] [PATCH v3 08/15] arm, davinci: Fix clear bss loop for zero length bss Christian Riesch
2011-11-25 12:37 ` [U-Boot] [PATCH v3 09/15] arm: printf() is not available in some SPL configurations Christian Riesch
2011-11-26 17:09 ` Andreas Bießmann
2011-11-29 18:22 ` Tom Rini
2011-11-25 12:37 ` [U-Boot] [PATCH v3 10/15] spl: display_options.o is required for SPI flash support in SPL Christian Riesch
2011-11-25 12:37 ` [U-Boot] [PATCH v3 11/15] sf: Add spi_boot() to allow booting from SPI flash in an SPL Christian Riesch
2011-11-25 21:32 ` Mike Frysinger
2011-12-02 15:13 ` Christian Riesch
2011-11-25 12:37 ` [U-Boot] [PATCH v3 12/15] arm, davinci: Add SPL support for DA850 SoCs Christian Riesch
2011-11-29 18:27 ` Tom Rini
2011-11-30 7:22 ` Christian Riesch
2011-11-30 7:41 ` Heiko Schocher
2011-11-30 14:59 ` Christian Riesch
2011-11-30 14:18 ` Tom Rini
2011-11-30 15:02 ` Christian Riesch
2011-12-01 6:38 ` Heiko Schocher
2011-11-30 16:39 ` Christian Riesch
2011-11-30 16:42 ` Tom Rini
2011-11-25 12:37 ` [U-Boot] [PATCH v3 13/15] arm, da850evm: Add an SPL for SPI boot Christian Riesch
2011-11-28 10:00 ` Heiko Schocher [this message]
2011-12-02 15:11 ` Christian Riesch
2011-11-25 12:37 ` [U-Boot] [PATCH v3 14/15] mkimage: Fix variable length header support Christian Riesch
2011-12-02 14:11 ` Stefano Babic
2011-11-25 12:37 ` [U-Boot] [PATCH v3 15/15] arm, davinci: Add support for generating AIS images to the Makefile Christian Riesch
2011-11-25 12:42 ` Christian Riesch
-- strict thread matches above, loose matches on Subject: below --
2011-12-02 16:12 [U-Boot] [PATCH v4 0/6] Add an SPL to boot the da850evm from SPI Christian Riesch
2011-12-02 16:12 ` [U-Boot] [PATCH v4 4/6] arm, da850evm: Add an SPL for SPI boot Christian Riesch
2011-12-02 20:07 ` Tom Rini
2011-12-03 5:49 ` [U-Boot] [PATCH v3 13/15] " Christian Riesch
2011-12-03 14:55 ` Tom Rini
2011-12-05 10:20 ` Christian Riesch
2011-12-05 14:46 ` Tom Rini
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=4ED35BB4.3050801@denx.de \
--to=hs@denx.de \
--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