From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCHv2 2/6] am33xx: move ti i2c baseboard header handling to board/ti/am335x/
Date: Thu, 18 Oct 2012 10:12:58 -0700 [thread overview]
Message-ID: <20121018171258.GT27770@bill-the-cat> (raw)
In-Reply-To: <1350559273-7280-3-git-send-email-peter.korsgaard@barco.com>
On Thu, Oct 18, 2012 at 01:21:09PM +0200, Peter Korsgaard wrote:
> The i2c header is specific to ti(-derived) boards, and not generic for all
> am335x boards.
>
> Signed-off-by: Peter Korsgaard <peter.korsgaard@barco.com>
[snip]
> -/*
> - * early system init of muxing and clocks.
> - */
> -void s_init(void)
> -{
> - /* WDT1 is already running when the bootloader gets control
> - * Disable it to avoid "random" resets
> - */
> - writel(0xAAAA, &wdtimer->wdtwspr);
> - while (readl(&wdtimer->wdtwwps) != 0x0)
> - ;
> - writel(0x5555, &wdtimer->wdtwspr);
> - while (readl(&wdtimer->wdtwwps) != 0x0)
> - ;
> -
> -#ifdef CONFIG_SPL_BUILD
> - /* Setup the PLLs and the clocks for the peripherals */
> - pll_init();
> -
> - /* UART softreset */
> - u32 regVal;
> -
> - enable_uart0_pin_mux();
> -
> - regVal = readl(&uart_base->uartsyscfg);
> - regVal |= UART_RESET;
> - writel(regVal, &uart_base->uartsyscfg);
> - while ((readl(&uart_base->uartsyssts) &
> - UART_CLK_RUNNING_MASK) != UART_CLK_RUNNING_MASK)
> - ;
> -
> - /* Disable smart idle */
> - regVal = readl(&uart_base->uartsyscfg);
> - regVal |= UART_SMART_IDLE_EN;
> - writel(regVal, &uart_base->uartsyscfg);
> -
> - gd = &gdata;
> -
> - preloader_console_init();
> -
> - /* Initalize the board header */
> - enable_i2c0_pin_mux();
> - i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
> - if (read_eeprom() < 0)
> - puts("Could not get board ID.\n");
> -
> - enable_board_pin_mux(&header);
> - if (board_is_evm_sk()) {
> - /*
> - * EVM SK 1.2A and later use gpio0_7 to enable DDR3.
> - * This is safe enough to do on older revs.
> - */
> - gpio_request(GPIO_DDR_VTT_EN, "ddr_vtt_en");
> - gpio_direction_output(GPIO_DDR_VTT_EN, 1);
> - }
> -
> - config_ddr(board_memory_type());
> -#endif
> -}
My concern is that a lot of this should be general. But I'm willing to
re-investigate how to do things once you're able to fully move your
platform to mainline.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121018/fa05ea02/attachment.pgp>
next prev parent reply other threads:[~2012-10-18 17:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-18 11:21 [U-Boot] [PATCHv2 0/6] am33xx: support non-ti boards Peter Korsgaard
2012-10-18 11:21 ` [U-Boot] [PATCHv2 1/6] am33xx/board.c: make wdtimer/uart_base static Peter Korsgaard
2012-10-18 11:21 ` [U-Boot] [PATCHv2 2/6] am33xx: move ti i2c baseboard header handling to board/ti/am335x/ Peter Korsgaard
2012-10-18 17:12 ` Tom Rini [this message]
2012-10-18 18:28 ` Peter Korsgaard
2012-10-18 11:21 ` [U-Boot] [PATCHv2 3/6] am33xx/board: use cpu_mmc_init() for default mmc initialization Peter Korsgaard
2012-10-18 11:21 ` [U-Boot] [PATCHv2 4/6] am33xx: move generic parts of pinmux handling out from board/ti/am335x Peter Korsgaard
2012-10-18 11:21 ` [U-Boot] [PATCHv2 5/6] am33xx: support board specific ddr settings Peter Korsgaard
2012-10-18 11:21 ` [U-Boot] [PATCHv2 6/6] am33xx/ddr_defs.h: rename DDR2/DDR3 defines to their actual part numbers Peter Korsgaard
2012-10-24 15:41 ` [U-Boot] [PATCHv2 0/6] am33xx: support non-ti boards Peter Korsgaard
2012-10-24 16:01 ` Tom Rini
2012-10-24 19:20 ` Peter Korsgaard
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=20121018171258.GT27770@bill-the-cat \
--to=trini@ti.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.