From 0495f93cc549bd71b74e8f1eaeeabc65a86fd03c Mon Sep 17 00:00:00 2001 From: Jesse Gilles Date: Mon, 10 Sep 2012 14:00:43 -0500 Subject: at91bootstrap: add mt100eocg-pcie-dk machine --- .../at91bootstrap-2.13/memory_bus_1.8v.patch | 22 ++++++ .../at91bootstrap-2.13/mt100eocg-pcie-dk/defconfig | 91 ++++++++++++++++++++++ .../mt100eocg/memory_bus_1.8v.patch | 22 ------ .../at91bootstrap/at91bootstrap_2.13.bbappend | 5 +- 4 files changed, 117 insertions(+), 23 deletions(-) create mode 100644 multitech/recipes/at91bootstrap/at91bootstrap-2.13/memory_bus_1.8v.patch create mode 100644 multitech/recipes/at91bootstrap/at91bootstrap-2.13/mt100eocg-pcie-dk/defconfig delete mode 100644 multitech/recipes/at91bootstrap/at91bootstrap-2.13/mt100eocg/memory_bus_1.8v.patch diff --git a/multitech/recipes/at91bootstrap/at91bootstrap-2.13/memory_bus_1.8v.patch b/multitech/recipes/at91bootstrap/at91bootstrap-2.13/memory_bus_1.8v.patch new file mode 100644 index 0000000..045f255 --- /dev/null +++ b/multitech/recipes/at91bootstrap/at91bootstrap-2.13/memory_bus_1.8v.patch @@ -0,0 +1,22 @@ +Only in at91bootstrap-2.13/build: at91sam9g20nf +Only in at91bootstrap-2.13/config: .depend +Only in at91bootstrap-2.13: .config +diff -ru at91bootstrap-2.13/main.c at91bootstrap-2.13_new/main.c +--- at91bootstrap-2.13/main.c 2010-01-12 15:13:39.000000000 -0600 ++++ at91bootstrap-2.13_new/main.c 2011-03-08 06:26:35.463088000 -0600 +@@ -174,6 +174,14 @@ + user_hw_init(); + #endif + ++#ifdef CONFIG_USER_EBI_1V8 ++//This patch will configure the 9G20 to run a 1.8V memory bus ++ *((int *)AT91C_CCFG_EBICSA) &= ~(0x1 << 16); //1.8V bus ++#else ++ *((int *)AT91C_CCFG_EBICSA) |= (0x1 << 16); //3.3V bus ++#endif ++ ++ + #if defined(CONFIG_SDRAM) || defined(CONFIG_SDDRC) || defined(CONFIG_DDR2) + #if defined(CONFIG_LONG_TEST) + /* This will not work for the CAP9 where RAM in elsewhere */ +Only in at91bootstrap-2.13/result: at91sam9g20nf-nandflashboot-2.13-r0.map diff --git a/multitech/recipes/at91bootstrap/at91bootstrap-2.13/mt100eocg-pcie-dk/defconfig b/multitech/recipes/at91bootstrap/at91bootstrap-2.13/mt100eocg-pcie-dk/defconfig new file mode 100644 index 0000000..8338b3d --- /dev/null +++ b/multitech/recipes/at91bootstrap/at91bootstrap-2.13/mt100eocg-pcie-dk/defconfig @@ -0,0 +1,91 @@ +# +# Automatically generated make config: don't edit +# Tue Jan 12 22:00:36 2010 +# +HAVE_DOT_CONFIG=y +CONFIG_BOARDNAME="at91sam9g20nf" +# CONFIG_AT91SAM9260EK is not set +# CONFIG_AT91SAM9261EK is not set +# CONFIG_AT91SAM9263EK is not set +# CONFIG_AT91SAM9RLEK is not set +# CONFIG_AT91SAM9XEEK is not set +# CONFIG_AT91SAM9G10EK is not set +CONFIG_AT91SAM9G20EK=y +# CONFIG_AT91SAM9G45EK is not set +# CONFIG_AT91SAM9G45EKES is not set +# CONFIG_AT91SAM9M10EK is not set +# CONFIG_AT91CAP9ADK is not set +# CONFIG_AT91CAP9STK is not set +# CONFIG_AFEB9260 is not set +CONFIG_CHIP="AT91SAM9G20" +CONFIG_BOARD="at91sam9g20ek" +CONFIG_MACH_TYPE="0x658" +CONFIG_LINK_ADDR="0x000000" +CONFIG_TOP_OF_MEMORY="0x301000" +CONFIG_BOOTSTRAP_MAXSIZE="13000" +# CONFIG_CRYSTAL_12_000MHZ is not set +# CONFIG_CRYSTAL_16_000MHZ is not set +# CONFIG_CRYSTAL_16_36766MHZ is not set +CONFIG_CRYSTAL_18_432MHZ=y +ALLOW_CRYSTAL_18_432MHZ=y +CONFIG_CRYSTAL="CRYSTAL_18_432MHZ" +# CONFIG_CPU_CLK_166MHZ is not set +# CONFIG_CPU_CLK_180MHZ is not set +# CONFIG_CPU_CLK_200MHZ is not set +# CONFIG_CPU_CLK_240MHZ is not set +# CONFIG_CPU_CLK_266MHZ is not set +CONFIG_CPU_CLK_400MHZ=y +ALLOW_CPU_CLK_400MHZ=y +# DISABLE_CPU_CLK_240MHZ is not set +# CONFIG_BUS_SPEED_83MHZ is not set +# CONFIG_BUS_SPEED_90MHZ is not set +# CONFIG_BUS_SPEED_100MHZ is not set +CONFIG_BUS_SPEED_133MHZ=y + +# +# Memory selection +# +CONFIG_SDRAM=y +# CONFIG_SDDRC is not set +# CONFIG_DDR2 is not set +ALLOW_DATAFLASH=y +# ALLOW_FLASH is not set +ALLOW_NANDFLASH=y +# ALLOW_SDCARD is not set +# ALLOW_PSRAM is not set +# ALLOW_SDRAM_16BIT is not set +# CONFIG_RAM_32MB is not set +CONFIG_RAM_64MB=y +# CONFIG_RAM_128MB is not set +# CONFIG_RAM_256MB is not set +# CONFIG_DATAFLASH is not set +# CONFIG_FLASH is not set +CONFIG_NANDFLASH=y +# CONFIG_SDCARD is not set +CONFIG_MEMORY="nandflash" +ALLOW_DATAFLASH_RECOVERY=y +ALLOW_BOOT_FROM_DATAFLASH_CS0=y +ALLOW_BOOT_FROM_DATAFLASH_CS1=y +DATAFLASHCARD_ON_CS0=y + +# +# NAND Flash configuration +# +# CONFIG_NANDFLASH_SMALL_BLOCKS is not set +CONFIG_PROJECT="nandflash" +CONFIG_LOAD_UBOOT=y +# CONFIG_LOAD_64KB is not set +# CONFIG_LOAD_1MB is not set +# CONFIG_LOAD_4MB is not set +CONFIG_IMG_ADDRESS="0x00020000" +CONFIG_IMG_SIZE="0x00040000" +CONFIG_JUMP_ADDR="0x23F00000" +CONFIG_APP_CHECK=y +# CONFIG_LONG_TEST is not set +CONFIG_DEBUG=y +CONFIG_VERBOSE=y +CONFIG_HW_INIT=y +# CONFIG_USER_HW_INIT is not set +# CONFIG_THUMB is not set +CONFIG_SX_AT91=y +CONFIG_RAW_AT91=y diff --git a/multitech/recipes/at91bootstrap/at91bootstrap-2.13/mt100eocg/memory_bus_1.8v.patch b/multitech/recipes/at91bootstrap/at91bootstrap-2.13/mt100eocg/memory_bus_1.8v.patch deleted file mode 100644 index 045f255..0000000 --- a/multitech/recipes/at91bootstrap/at91bootstrap-2.13/mt100eocg/memory_bus_1.8v.patch +++ /dev/null @@ -1,22 +0,0 @@ -Only in at91bootstrap-2.13/build: at91sam9g20nf -Only in at91bootstrap-2.13/config: .depend -Only in at91bootstrap-2.13: .config -diff -ru at91bootstrap-2.13/main.c at91bootstrap-2.13_new/main.c ---- at91bootstrap-2.13/main.c 2010-01-12 15:13:39.000000000 -0600 -+++ at91bootstrap-2.13_new/main.c 2011-03-08 06:26:35.463088000 -0600 -@@ -174,6 +174,14 @@ - user_hw_init(); - #endif - -+#ifdef CONFIG_USER_EBI_1V8 -+//This patch will configure the 9G20 to run a 1.8V memory bus -+ *((int *)AT91C_CCFG_EBICSA) &= ~(0x1 << 16); //1.8V bus -+#else -+ *((int *)AT91C_CCFG_EBICSA) |= (0x1 << 16); //3.3V bus -+#endif -+ -+ - #if defined(CONFIG_SDRAM) || defined(CONFIG_SDDRC) || defined(CONFIG_DDR2) - #if defined(CONFIG_LONG_TEST) - /* This will not work for the CAP9 where RAM in elsewhere */ -Only in at91bootstrap-2.13/result: at91sam9g20nf-nandflashboot-2.13-r0.map diff --git a/multitech/recipes/at91bootstrap/at91bootstrap_2.13.bbappend b/multitech/recipes/at91bootstrap/at91bootstrap_2.13.bbappend index 2bd3fd8..9b78b06 100644 --- a/multitech/recipes/at91bootstrap/at91bootstrap_2.13.bbappend +++ b/multitech/recipes/at91bootstrap/at91bootstrap_2.13.bbappend @@ -1,7 +1,7 @@ FILESEXTRA := "${THISDIR}" FILESPATHBASE =. "${FILESEXTRA}:" -PR .= ".corecdp3" +PR .= ".corecdp4" SRC_URI += "file://defconfig \ file://nand_ids_toshiba.patch \ @@ -11,3 +11,6 @@ SRC_URI += "file://defconfig \ # run memory bus at 1.8v for mt100eocg SRC_URI_append_mt100eocg = " file://memory_bus_1.8v.patch" AT91BOOTSTRAP_FLAGS_append_mt100eocg = " -DCONFIG_USER_EBI_1V8" + +SRC_URI_append_mt100eocg-pcie-dk = " file://memory_bus_1.8v.patch" +AT91BOOTSTRAP_FLAGS_append_mt100eocg-pcie-dk = " -DCONFIG_USER_EBI_1V8" -- cgit v1.2.3