public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 2/3] MX31: Add basic support for Freescale	i.MX31 PDK board.
Date: Sun, 10 May 2009 22:32:25 +0200	[thread overview]
Message-ID: <20090510203225.GF21079@game.jcrosoft.org> (raw)
In-Reply-To: <59b21cf20905101232p51558a08i181e8b99759af11f@mail.gmail.com>

> >> +
> >> +/*
> >> + * This is just to keep the linker happy.
> >> + */
> >> +
> >> +.globl lowlevel_init
> >> +
> >> +lowlevel_init:
> >> + ? ? mov ? ? pc, lr
> > why do you need it?
> 
> start.S:cpu_init_crit needs it and I haven't defined SKIP_LOWLEVEL.
> Might be possible to define SKIP_LOWLEVEL_INIT and get rid of the
> above line.
if you do not need to do any lowlevel_init
yes please
> 
> >> diff --git a/board/freescale/mx31pdk/mx31pdk.c b/board/freescale/mx31pdk/mx31pdk.c
> >> new file mode 100644
> >> index 0000000..9eed979
> >> --- /dev/null
> >> +++ b/board/freescale/mx31pdk/mx31pdk.c
> >> @@ -0,0 +1,76 @@
> >> +/*
> >> + *

> >> +
> >> +int board_init(void)
> >> +{
> >> + ? ? /* CS5: CPLD incl. network controller */
> >> + ? ? __REG(CSCR_U(5)) = 0x0000d843;
> >> + ? ? __REG(CSCR_L(5)) = 0x22252521;
> >> + ? ? __REG(CSCR_A(5)) = 0x22220a00;
> >> +
> >> + ? ? /* setup pins for UART1 */
> >> + ? ? mx31_gpio_mux(MUX_RXD1__UART1_RXD_MUX);
> >> + ? ? mx31_gpio_mux(MUX_TXD1__UART1_TXD_MUX);
> >> + ? ? mx31_gpio_mux(MUX_RTS1__UART1_RTS_B);
> >> + ? ? mx31_gpio_mux(MUX_CTS1__UART1_CTS_B);
> > I think it's time to create common device init functions
> > as done for davinci or at91
> 
> I think I prefer the at91 way of doing this, I can create
> cpu/arm1136/mx31/serial.c and spi.c.
as I
tks
please note I'll regroup all devices init fuctions
in one file per cpu
maybe you can create a devices.c
> 
> >> +
> >> + ? ? /* SPI2 */
> >> + ? ? mx31_gpio_mux(MUX_CSPI2_SS2__CSPI2_SS2_B);
> >> + ? ? mx31_gpio_mux(MUX_CSPI2_SCLK__CSPI2_CLK);
> >> + ? ? mx31_gpio_mux(MUX_CSPI2_SPI_RDY__CSPI2_DATAREADY_B);
> >> + ? ? mx31_gpio_mux(MUX_CSPI2_MOSI__CSPI2_MOSI);
> >> + ? ? mx31_gpio_mux(MUX_CSPI2_MISO__CSPI2_MISO);
> >> + ? ? mx31_gpio_mux(MUX_CSPI2_SS0__CSPI2_SS0_B);
> >> + ? ? mx31_gpio_mux(MUX_CSPI2_SS1__CSPI2_SS1_B);
> >> diff --git a/board/freescale/mx31pdk/u-boot.lds b/board/freescale/mx31pdk/u-boot.lds
> >> new file mode 100644
> >> index 0000000..e96509a
> >> --- /dev/null
> >> +++ b/board/freescale/mx31pdk/u-boot.lds
> > I've send a patch that unify all arm lds so this one is not anymore needed
> 
> I'll try it. Are you planning other major changes that will affect
> these patches in the near future?
no
> 
> >> @@ -0,0 +1,59 @@
> >> +/*
> >> + * You should have received a copy of the GNU General Public License
> >> + * along with this program; if not, write to the Free Software
> >> + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
> >> + * MA 02111-1307 USA
> >> + */
> >> +
> >> +#ifndef __CONFIG_H
> >> +#define __CONFIG_H
> >> +
> >> +#include <asm/arch/mx31-regs.h>
> > why?
> 
> So we can use symbolic names for Ethernet base address, SDRAM base
> address. I.e. instead of writing e.g. 0xB6000000 we can write
> CS5_BASE. I can switch to hard coded numerical values and get rid of
> the #include if requested.
if you include it in the final c files
you do not need to include mx31-regs.h always
> 
> >> +/***********************************************************
> >> + * Command definition
> >> + ***********************************************************/
> >> +
> >> +#include <config_cmd_default.h>
> >> +
> >> +#define CONFIG_CMD_MII
> >> +#define CONFIG_CMD_PING
> >> +#define CONFIG_CMD_SPI
> >> +#define CONFIG_CMD_DATE
> >> +
> >> +/* Disabled due to compilation errors in cmd_bootm.c (IMLS seems to require
> >> + * that CFG_NO_FLASH is undefined).
> >> + */
> > please remove the comment
> 
> The comment was added since Wolfgang asked why IMLS was disabled when
> I posted a similar set of patches last year, so I'm going to keep the
> comment.
ok

Best Regards,
J.

  reply	other threads:[~2009-05-10 20:32 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-03 19:56 [U-Boot] [PATCH v2 0/3] MX31: NAND boot for phyCORE and PDK boards Magnus Lilja
2009-05-03 19:56 ` [U-Boot] [PATCH v2 1/3] MX31: Add NAND SPL for i.MX31 Magnus Lilja
2009-05-03 19:56   ` [U-Boot] [PATCH v2 2/3] MX31: Add basic support for Freescale i.MX31 PDK board Magnus Lilja
2009-05-03 19:56     ` [U-Boot] [PATCH v2 3/3] MX31: Add NAND SPL boot support to " Magnus Lilja
2009-05-09 21:28       ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-10 19:33         ` Magnus Lilja
2009-05-10 20:39           ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-10 21:33             ` Wolfgang Denk
2009-05-10 22:18               ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-11  6:52                 ` Wolfgang Denk
2009-05-12  0:27                   ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-11  6:53             ` Magnus Lilja
2009-05-12  0:25               ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-12 20:49             ` Magnus Lilja
2009-05-12 21:02               ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-09 21:17     ` [U-Boot] [PATCH v2 2/3] MX31: Add basic support for Freescale " Jean-Christophe PLAGNIOL-VILLARD
2009-05-10 19:32       ` Magnus Lilja
2009-05-10 20:32         ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2009-05-11  6:47           ` Magnus Lilja
2009-05-09 21:04   ` [U-Boot] [PATCH v2 1/3] MX31: Add NAND SPL for i.MX31 Jean-Christophe PLAGNIOL-VILLARD
2009-05-10 19:31     ` Magnus Lilja
2009-05-10 20:34       ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-11 16:48         ` Magnus Lilja
2009-05-11 19:03         ` Magnus Lilja
2009-05-12  0:22           ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-12  4:03             ` Magnus Lilja
2009-05-12 16:52               ` Scott Wood
2009-05-29 21:34   ` Scott Wood
2009-05-30  7:54     ` Magnus Lilja
2009-06-01 17:06       ` Scott Wood
2009-06-01 20:18         ` Magnus Lilja
2009-06-01 20:21       ` Magnus Lilja
2009-06-01 20:39         ` Scott Wood
2009-06-01 20:42           ` Magnus Lilja

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=20090510203225.GF21079@game.jcrosoft.org \
    --to=plagnioj@jcrosoft.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