mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: Antony Pavlov <antonynpavlov@gmail.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 3/4] MIPS: add qemu malta board support to barebox
Date: Thu, 30 Jun 2011 04:58:44 +0200	[thread overview]
Message-ID: <20110630025844.GK17355@game.jcrosoft.org> (raw)
In-Reply-To: <1309317858-11861-3-git-send-email-antonynpavlov@gmail.com>

> +
> +/** to work with the 8250 UART driver implementation we need this function */
> +static unsigned int malta_uart_read(unsigned long base, unsigned char reg_idx)
> +{
> +	return readb((char *)base + reg_idx);
> +}
> +
> +/** to work with the 8250 UART driver implementation we need this function */
> +static void malta_uart_write(unsigned int val, unsigned long base, unsigned char reg_idx)
> +{
> +	writeb(val, (char *)base + reg_idx);
> +}
> +
> +static struct NS16550_plat serial_plat = {
> +       .clock = 1843200, /* no matter */
why no matter?
> +       .f_caps = CONSOLE_STDIN | CONSOLE_STDOUT | CONSOLE_STDERR,
> +       .reg_read = malta_uart_read,
> +       .reg_write = malta_uart_write,
plewase tab for indent
> +};
> +
> +/* we are expecting always one serial interface */
> +static struct device_d generic_malta_serial_device = {
> +       .name = "serial_ns16550",
> +       .map_base = DEBUG_LL_UART_ADDR,
> +       .size = 8,
> +       .platform_data = (void *)&serial_plat,
> +};
> +
> +static int malta_console_init(void)
> +{
> +       /* Register the serial port */
> +       return register_device(&generic_malta_serial_device);
> +}
> +console_initcall(malta_console_init);
> diff --git a/arch/mips/configs/qemu-malta_defconfig b/arch/mips/configs/qemu-malta_defconfig
> new file mode 100644
> index 0000000..507df8a
> --- /dev/null
> +++ b/arch/mips/configs/qemu-malta_defconfig
> @@ -0,0 +1,46 @@
> +CONFIG_STACK_SIZE=0x7000
> +CONFIG_BROKEN=y
> +CONFIG_EXPERIMENTAL=y
> +CONFIG_PROMPT="uboot:"
barebox
> +CONFIG_LONGHELP=y
> +CONFIG_HUSH_FANCY_PROMPT=y
> +CONFIG_HUSH_GETOPT=y
> +CONFIG_CMDLINE_EDITING=y
> +CONFIG_AUTO_COMPLETE=y
> +CONFIG_MENU=y
> +CONFIG_PASSWORD=y
> +CONFIG_PARTITION=y
> +# CONFIG_DEFAULT_ENVIRONMENT is not set
Best Regards,
J.

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2011-06-30  3:13 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-29  3:24 [PATCH 1/4] Add MIPS arch " Antony Pavlov
2011-06-29  3:24 ` [PATCH 2/4] MIPS: add Malta machine " Antony Pavlov
2011-06-30  3:02   ` Jean-Christophe PLAGNIOL-VILLARD
2011-07-02 14:41   ` Shinya Kuribayashi
2011-07-02 16:45     ` Jean-Christophe PLAGNIOL-VILLARD
2011-07-03 20:44       ` Antony Pavlov
2011-07-04  5:11         ` Jean-Christophe PLAGNIOL-VILLARD
2011-07-04  8:54       ` Antony Pavlov
2011-07-04  8:52         ` Jean-Christophe PLAGNIOL-VILLARD
2011-07-03 20:50     ` Antony Pavlov
2011-06-29  3:24 ` [PATCH 3/4] MIPS: add qemu malta board " Antony Pavlov
2011-06-30  2:58   ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2011-06-30  9:12     ` Antony Pavlov
2011-06-30  9:38   ` Jean-Christophe PLAGNIOL-VILLARD
2011-06-30 10:34     ` Antony Pavlov
2011-06-29  3:24 ` [PATCH 4/4] MISP: add documentation template Antony Pavlov
2011-06-29  5:40 ` [PATCH 1/4] Add MIPS arch support to barebox Jean-Christophe PLAGNIOL-VILLARD
2011-06-29  7:53   ` Antony Pavlov
2011-06-30  2:52 ` Jean-Christophe PLAGNIOL-VILLARD
2011-06-30  7:12   ` Franck JULLIEN
2011-06-30  9:18     ` Jean-Christophe PLAGNIOL-VILLARD
2011-06-30  9:13   ` Antony Pavlov
2011-07-02 13:47 ` Shinya Kuribayashi
2011-07-02 16:46   ` Jean-Christophe PLAGNIOL-VILLARD
2011-07-03 20:40   ` Antony Pavlov

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=20110630025844.GK17355@game.jcrosoft.org \
    --to=plagnioj@jcrosoft.com \
    --cc=antonynpavlov@gmail.com \
    --cc=barebox@lists.infradead.org \
    /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