public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 6/8] mips: ath79: add AP121 reference board
Date: Sun, 27 Dec 2015 07:41:41 +0100	[thread overview]
Message-ID: <201512270741.41666.marex@denx.de> (raw)
In-Reply-To: <BLU437-SMTP98081A06C27331B45B25ADFFFA0@phx.gbl>

On Sunday, December 27, 2015 at 07:36:00 AM, Wills Wang wrote:
> On 12/26/2015 09:52 PM, Daniel Schwierzeck wrote:
> > Am 25.12.2015 um 19:56 schrieb Wills Wang:
> >> Signed-off-by: Wills Wang <wills.wang@live.com>

[...]

> >> diff --git a/configs/ap121_defconfig b/configs/ap121_defconfig
> >> new file mode 100644
> >> index 0000000..cec0bb7
> >> --- /dev/null
> >> +++ b/configs/ap121_defconfig
> >> @@ -0,0 +1,42 @@
> >> +CONFIG_MIPS=y
> >> +CONFIG_TARGET_AP121=y
> >> +CONFIG_SYS_MALLOC_F_LEN=0x2000
> >> +CONFIG_SYS_PROMPT="ap121 # "
> >> +CONFIG_OF_CONTROL=y
> >> +CONFIG_DEFAULT_DEVICE_TREE="ap121"
> >> +CONFIG_DM=y
> > 
> > options like CONFIG_OF_CONTROL and CONFIG_DM should be pre-selected by
> > the mach or SoC specific Kconfig file if you always require it. An user
> > of your board should not be able to disable those options.
> > 
> >> +CONFIG_DM_SERIAL=y
> >> +CONFIG_DM_SPI=y
> >> +CONFIG_DM_SPI_FLASH=y
> >> +CONFIG_ATH79_SPI=y
> >> +CONFIG_SPI_FLASH=y
> >> +CONFIG_SPI_FLASH_BAR=y
> >> +CONFIG_SPI_FLASH_ATMEL=y
> >> +CONFIG_SPI_FLASH_EON=y
> >> +CONFIG_SPI_FLASH_GIGADEVICE=y
> >> +CONFIG_SPI_FLASH_MACRONIX=y
> >> +CONFIG_SPI_FLASH_SPANSION=y
> >> +CONFIG_SPI_FLASH_STMICRO=y
> >> +CONFIG_SPI_FLASH_SST=y
> >> +CONFIG_SPI_FLASH_WINBOND=y
> >> +CONFIG_SPI_FLASH_USE_4K_SECTORS=y
> >> +CONFIG_SPI_FLASH_DATAFLASH=y
> >> +CONFIG_SPI_FLASH_MTD=y
> >> +CONFIG_CMD_DM=y
> >> +CONFIG_CMD_SF=y
> >> +CONFIG_CMD_SPI=y
> >> +# CONFIG_NET is not set
> >> +# CONFIG_CMD_BDI is not set
> >> +# CONFIG_CMD_CONSOLE is not set
> >> +# CONFIG_CMD_IMLS is not set
> >> +# CONFIG_CMD_XIMG is not set
> >> +# CONFIG_CMD_ELF is not set
> >> +# CONFIG_CMD_EXPORTENV is not set
> >> +# CONFIG_CMD_IMPORTENV is not set
> >> +# CONFIG_CMD_EDITENV is not set
> >> +# CONFIG_CMD_CRC32 is not set
> >> +# CONFIG_CMD_FLASH is not set
> >> +# CONFIG_CMD_FPGA is not set
> >> +# CONFIG_CMD_NFS is not set
> >> +# CONFIG_CMD_NET is not set
> >> +CONFIG_USE_PRIVATE_LIBGCC=y

Why is private libgcc enabled here ? Is your toolchain buggy ?

> >> diff --git a/include/configs/ap121.h b/include/configs/ap121.h
> >> new file mode 100644
> >> index 0000000..5a01d11
> >> --- /dev/null
> >> +++ b/include/configs/ap121.h
> >> @@ -0,0 +1,82 @@
> >> +#ifndef __CONFIG_H
> >> +#define __CONFIG_H
> >> +
> >> +#include <linux/kconfig.h>
> >> +#include <linux/sizes.h>
> > 
> > those includes are not needed in a board config header file respectively
> > they are already included implicitely
> > 
> >> +
> >> +#define CONFIG_ARCH_ATH79
> >> +#define CONFIG_SOC_AR933X
> > 
> > this is already configured by Kconfig
> > 
> >> +
> >> +#define CONFIG_DISPLAY_CPUINFO
> >> +#define CONFIG_DISPLAY_BOARDINFO
> >> +
> >> +#define CONFIG_OF_LIBFDT
> >> +
> >> +#define CONFIG_SYS_HZ                   1000
> >> +#define CONFIG_SYS_MHZ                  200
> >> +#define CONFIG_SYS_MIPS_TIMER_FREQ      (CONFIG_SYS_MHZ * 1000000)
> >> +
> >> +/* Cache Configuration */
> >> +#define CONFIG_SYS_DCACHE_SIZE          32 * SZ_1K
> >> +#define CONFIG_SYS_ICACHE_SIZE          64 * SZ_1K
> >> +#define CONFIG_SYS_CACHELINE_SIZE       32
> > 
> > you can drop this, the cache sizes will be detected automatically
> 
> My board don't boot up if drop this.

btw please use the [...] to trim your reply to relevant parts only, it's
often real hard to find the relevant one-liner reply in a sea of quoted
text.

[...]

  reply	other threads:[~2015-12-27  6:41 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1451069788-6786-1-git-send-email-wills.wang@live.com>
2015-12-25 18:56 ` [U-Boot] [PATCH v4 1/8] include: Add support for "do_div" macro Wills Wang
2015-12-26  7:24   ` Marek Vasut
2015-12-26 15:48     ` Wills Wang
2015-12-26 13:09   ` Daniel Schwierzeck
2015-12-26 16:54     ` Wills Wang
2015-12-25 18:56 ` [U-Boot] [PATCH v4 2/8] mips: implement to access the KSEG0/1 memory range in map_physmem Wills Wang
2015-12-26  7:25   ` Marek Vasut
2015-12-25 18:56 ` [U-Boot] [PATCH v4 3/8] mips: add base support for atheros ath79 based SOCs Wills Wang
2015-12-26  7:28   ` Marek Vasut
2015-12-26 16:17     ` Wills Wang
2015-12-26 17:01       ` Daniel Schwierzeck
2015-12-26 17:06         ` Marek Vasut
2015-12-27  9:37         ` Wills Wang
2015-12-25 18:56 ` [U-Boot] [PATCH v4 4/8] mips: ath79: add serial driver for ar933x SOC Wills Wang
2015-12-26 13:20   ` Daniel Schwierzeck
2015-12-26 16:54     ` Wills Wang
2015-12-26 17:19       ` Daniel Schwierzeck
2015-12-27  6:28     ` Wills Wang
2015-12-27  8:21       ` Thomas Chou
2015-12-27 13:07         ` Thomas Chou
2015-12-27  8:31     ` Thomas Chou
2015-12-25 18:56 ` [U-Boot] [PATCH v4 5/8] mips: ath79: add spi driver Wills Wang
2015-12-26 13:23   ` Daniel Schwierzeck
2015-12-26 16:56     ` Wills Wang
2015-12-25 18:56 ` [U-Boot] [PATCH v4 6/8] mips: ath79: add AP121 reference board Wills Wang
2015-12-26 13:52   ` Daniel Schwierzeck
2015-12-26 16:59     ` Wills Wang
2015-12-26 17:07       ` Daniel Schwierzeck
2015-12-27  6:36     ` Wills Wang
2015-12-27  6:41       ` Marek Vasut [this message]
2015-12-27  7:03         ` Wills Wang
2015-12-27  7:10           ` Marek Vasut
2015-12-25 18:56 ` [U-Boot] [PATCH v4 7/8] mips: support optimize tuning for same common processor cores Wills Wang
2015-12-26  7:30   ` Marek Vasut
2015-12-26 18:58   ` Daniel Schwierzeck
2015-12-27  3:03     ` Wills Wang
2015-12-25 18:56 ` [U-Boot] [PATCH v4 8/8] mips: move optimize tuning option from deprecated config.mk to Kconfig Wills Wang
2015-12-26  7:30   ` Marek Vasut
2015-12-26 17:33     ` Wills Wang

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=201512270741.41666.marex@denx.de \
    --to=marex@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