linux-2.6.30: fix ronetix-pm9g45 board support
PATCH 2/4 at91bootstrap-2.13: add ronetix-pm9g45 board support
In reply to Eric Bénard--- recipes/at91bootstrap/at91bootstrap_2.13.bb | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-)
recipes/at91bootstrap/at91bootstrap_2.13.bb +7 -1
@@ -4,8 +4,14 @@ DEFAULT_PREFERENCE = "-1" DEFAULT_PREFERENCE_at91sam9g45ek = "1" DEFAULT_PREFERENCE_at91sam9g45ekes = "1" DEFAULT_PREFERENCE_at91sam9m10ek = "1" +DEFAULT_PREFERENCE_ronetix-pm9g45 = "1" - +SRC_URI_ronetix-pm9g45 = " \ + http://download.ronetix.info/boards/linux/bootstrap/nandflashboot/at91bootstrap-pm9g45-svn-r286.tar.bz2;name=pm9g45src \ + " +S_ronetix-pm9g45 = "${WORKDIR}/trunk" SRC_URI[md5sum] = "1f539d6db38111b6a1d7ab93eb0a648b" SRC_URI[sha256sum] = "93b01b723ed69f33316384f097da864f5d49c40520c87ccf5537518dbff9df86" +SRC_URI[pm9g45src.md5sum] = "03b416c59b1080ce80894f1af01f57d0" +SRC_URI[pm9g45src.sha256sum] = "d2adc9631b524e313f3b7ea67969f3222e855ac0363981989b522c7e59edd408"
Signature · 1 line
1.7.0.4
PATCH 1/4 linux-2.6.30: fix ronetix-pm9g45 board support
* patches previously fetched are no more present and patches integrated in OE were updated so upgrade to the latest kernel patches available from Ronetix.
* this patch also enable UBIFS in the defconfig in order to be able to have a UBIFS rootfs
--- .../0001-ads7846-.c-and-.h-add-swap_xy.patch | 8 +- .../0002-add-pm9g45-number-in-mach-types.patch | 4896 --- ...02-print-some-more-info-from-atmel_nand.c.patch | 42 + ...newline-at-the-end-of-uncorrectable-error.patch | 27 + ...03-print-some-more-info-from-atmel_nand.c.patch | 40 - ...-CompactFlash-to-at91sam9g45-architecture.patch | 145 + ...newline-at-the-end-of-uncorrectable-error.patch | 25 - ...-CompactFlash-to-at91sam9g45-architecture.patch | 143 - ...05-pm9g45-system-ram-can-be-on-CS1-or-CS6.patch | 62 + .../ronetix-pm9g45/0006-add-board-pm9g45.patch | 1005 + ...06-pm9g45-system-ram-can-be-on-CS1-or-CS6.patch | 60 - .../ronetix-pm9g45/0007-add-pm9g45-board.patch | 1004 - .../0007-pm9g45-default-configuration-files.patch | 3360 ++ .../0008-add-float-flags-in-Makefile.patch | 29 + .../0008-pm9g45-default-configuration-files.patch | 3358 -- .../0009-add-float-flags-in-Makefile.patch | 27 - ...009-conditional-compile-if-DEDICATED_VRAM.patch | 73 + ...board-version-1.2-and-adjust-memory-selec.patch | 139 + ...010-conditional-compile-if-DEDICATED_VRAM.patch | 70 - ...-board-version-1.2-and-adjust-memory-sele.patch | 138 - ...-enable-USB-Device-with-On-the-go-ability.patch | 44 + .../0012-one-more-update-of-mach-types.patch | 907 + .../0013-sam9g45-UHSDP-add-debug-info.patch | 130 + ...anges-FIXME-to-choose-a-base-board-each-b.patch | 830 + ...pactFlash-only-on-BB9263-v1.1-add-a-FIX-m.patch | 38 + ...16-enable-GAT.-LCD-backlight-capabilities.patch | 25 + ...5-change-GAT.-color-depth-and-wiring-mode.patch | 32 + .../0018-RGB_BGR-fixes-of-LCD-on-bb9g45.patch | 57 + .../0019-bb9g45-sound-now-works.patch | 36 + ..._tsadcc-introduce-changes-needed-for-at91.patch | 179 + .../0021-make-touchscreen-on-EB9G45-works.patch | 62 + ...-bb9g45-USB-connector-J3-to-act-as-device.patch | 112 + .../ronetix-pm9g45/2.6.30-at91-exp.patch |33460 -------------------- .../linux/linux-2.6.30/ronetix-pm9g45/defconfig | 356 +- recipes/linux/linux_2.6.30.bb | 42 +- 35 files changed, 7650 insertions(+), 43311 deletions(-) delete mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0002-add-pm9g45-number-in-mach-types.patch create mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0002-print-some-more-info-from-atmel_nand.c.patch create mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0003-add-newline-at-the-end-of-uncorrectable-error.patch delete mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0003-print-some-more-info-from-atmel_nand.c.patch create mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0004-Add-CompactFlash-to-at91sam9g45-architecture.patch delete mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0004-add-newline-at-the-end-of-uncorrectable-error.patch delete mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0005-Add-CompactFlash-to-at91sam9g45-architecture.patch create mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0005-pm9g45-system-ram-can-be-on-CS1-or-CS6.patch create mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0006-add-board-pm9g45.patch delete mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0006-pm9g45-system-ram-can-be-on-CS1-or-CS6.patch delete mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0007-add-pm9g45-board.patch create mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0007-pm9g45-default-configuration-files.patch create mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0008-add-float-flags-in-Makefile.patch delete mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0008-pm9g45-default-configuration-files.patch delete mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0009-add-float-flags-in-Makefile.patch create mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0009-conditional-compile-if-DEDICATED_VRAM.patch create mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0010-add-pm9g45-board-version-1.2-and-adjust-memory-selec.patch delete mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0010-conditional-compile-if-DEDICATED_VRAM.patch delete mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0011-add-pm9g45-board-version-1.2-and-adjust-memory-sele.patch create mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0011-enable-USB-Device-with-On-the-go-ability.patch create mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0012-one-more-update-of-mach-types.patch create mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0013-sam9g45-UHSDP-add-debug-info.patch create mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0014-A-mix-of-changes-FIXME-to-choose-a-base-board-each-b.patch create mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0015-Selects-CompactFlash-only-on-BB9263-v1.1-add-a-FIX-m.patch create mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0016-enable-GAT.-LCD-backlight-capabilities.patch create mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0017-pm9g45-change-GAT.-color-depth-and-wiring-mode.patch create mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0018-RGB_BGR-fixes-of-LCD-on-bb9g45.patch create mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0019-bb9g45-sound-now-works.patch create mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0020-input-atmel_tsadcc-introduce-changes-needed-for-at91.patch create mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0021-make-touchscreen-on-EB9G45-works.patch create mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/0022-bb9g45-USB-connector-J3-to-act-as-device.patch delete mode 100644 recipes/linux/linux-2.6.30/ronetix-pm9g45/2.6.30-at91-exp.patch
recipes/linux/linux-2.6.30/ronetix-pm9g45/0001-ads7846-.c-and-.h-add-swap_xy.patch +5 -3
@@ -1,8 +1,10 @@ -From 84325d6118849188bd765933e0f2db6795df9756 Mon Sep 17 00:00:00 2001 +From 35c7710305a1f031e114b3d509a63ac8647d0d0b Mon Sep 17 00:00:00 2001 From: Asen Dimov <[email protected]> Date: Tue, 2 Mar 2010 00:58:51 +0200 -Subject: [PATCH] ads7846 .c and .h add swap_xy +Subject: [[PATCH 01/22] ads7846 .c and .h add swap_xy + +Signed-off-by: Asen Chavdarov Dimov <[email protected]> --- drivers/input/touchscreen/ads7846.c | 24 ++++++++++++++++++++---- include/linux/spi/ads7846.h | 1 +
@@ -96,5 +98,5 @@ index 2ea2032..51948eb 100644 /* Settling time of the analog signals; a function of Vcc and the * capacitance on the X/Y drivers. If set to non-zero, two samples -- -1.5.5.6 +1.7.4.4
recipes/linux/linux-2.6.30/ronetix-pm9g45/0002-add-pm9g45-number-in-mach-types.patch deleted +0 -4896
2,982 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/0002-print-some-more-info-from-atmel_nand.c.patch new file +42 -0
42 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/0003-add-newline-at-the-end-of-uncorrectable-error.patch new file +27 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.30/ronetix-pm9g45/0003-print-some-more-info-from-atmel_nand.c.patch deleted +0 -40
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.30/ronetix-pm9g45/0004-Add-CompactFlash-to-at91sam9g45-architecture.patch new file +145 -0
145 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/0004-add-newline-at-the-end-of-uncorrectable-error.patch deleted +0 -25
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.30/ronetix-pm9g45/0005-Add-CompactFlash-to-at91sam9g45-architecture.patch deleted +0 -143
143 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/0005-pm9g45-system-ram-can-be-on-CS1-or-CS6.patch new file +62 -0
62 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/0006-add-board-pm9g45.patch new file +1005 -0
1,005 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/0006-pm9g45-system-ram-can-be-on-CS1-or-CS6.patch deleted +0 -60
60 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/0007-add-pm9g45-board.patch deleted +0 -1004
1,004 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/0007-pm9g45-default-configuration-files.patch new file +3360 -0
3,360 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/0008-add-float-flags-in-Makefile.patch new file +29 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.30/ronetix-pm9g45/0008-pm9g45-default-configuration-files.patch deleted +0 -3358
3,358 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/0009-add-float-flags-in-Makefile.patch deleted +0 -27
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.30/ronetix-pm9g45/0009-conditional-compile-if-DEDICATED_VRAM.patch new file +73 -0
73 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/0010-add-pm9g45-board-version-1.2-and-adjust-memory-selec.patch new file +139 -0
139 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/0010-conditional-compile-if-DEDICATED_VRAM.patch deleted +0 -70
70 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/0011-add-pm9g45-board-version-1.2-and-adjust-memory-sele.patch deleted +0 -138
138 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/0011-enable-USB-Device-with-On-the-go-ability.patch new file +44 -0
44 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/0012-one-more-update-of-mach-types.patch new file +907 -0
907 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/0013-sam9g45-UHSDP-add-debug-info.patch new file +130 -0
130 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/0014-A-mix-of-changes-FIXME-to-choose-a-base-board-each-b.patch new file +830 -0
830 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/0015-Selects-CompactFlash-only-on-BB9263-v1.1-add-a-FIX-m.patch new file +38 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.30/ronetix-pm9g45/0016-enable-GAT.-LCD-backlight-capabilities.patch new file +25 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.30/ronetix-pm9g45/0017-pm9g45-change-GAT.-color-depth-and-wiring-mode.patch new file +32 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.30/ronetix-pm9g45/0018-RGB_BGR-fixes-of-LCD-on-bb9g45.patch new file +57 -0
57 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/0019-bb9g45-sound-now-works.patch new file +36 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.30/ronetix-pm9g45/0020-input-atmel_tsadcc-introduce-changes-needed-for-at91.patch new file +179 -0
179 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/0021-make-touchscreen-on-EB9G45-works.patch new file +62 -0
62 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/0022-bb9g45-USB-connector-J3-to-act-as-device.patch new file +112 -0
112 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/2.6.30-at91-exp.patch deleted +0 -33460
33,460 lines not on this page · raw message
recipes/linux/linux-2.6.30/ronetix-pm9g45/defconfig +287 -69
356 lines not on this page · raw message
recipes/linux/linux_2.6.30.bb +24 -18
42 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.0.4
Part of the diff is not shown here. View the raw message.
PATCH 4/4 ronetix-pm9g45: update board support
OE can now compile all the binaries to boot this board :
at91bootstrap, u-boot, linux and rootfs in jffs2 and ubifs formats
--- conf/machine/ronetix-pm9g45.conf | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-)
conf/machine/ronetix-pm9g45.conf +10 -9
@@ -5,18 +5,19 @@ include conf/machine/include/at91-2.6.30.inc include conf/machine/include/at91-lcd.inc -#PREFERRED_VERSION_linux = "2.6.30" - -# Has linux config file in OpenEmbedded -# -LINUX26_DEFCONFIG = "at91sam9g45ek_defconfig" +PREFERRED_PROVIDER_at91bootstrap = "at91bootstrap_2.13" +PREFERRED_VERSION_at91bootstrap = "2.13" +PREFERRED_PROVIDER_u-boot = "u-boot" +PREFERRED_VERSION_u-boot = "2010.09" # Supported u-boot machines -UBOOT_MACHINE = "at91sam9m10g45ek_dataflash_cs0_config" -#UBOOT_MACHINE = "icnova_arm9sodimm_config" +UBOOT_MACHINE = "pm9g45_bb9g45_config" UBOOT_ENTRYPOINT = "0x70008000" - -AT91BOOTSTRAP_BOARD = "at91sam9g45df at91sam9g45ek at91sam9g45nf" +AT91BOOTSTRAP_BOARD = "pm9g45" MACHINE_FEATURES += "usbhost" +IMAGE_FSTYPES += "jffs2 ubi" +EXTRA_IMAGECMD_jffs2 = "--pad --little-endian --eraseblock=0x20000 -n" +MKUBIFS_ARGS = "-m 2048 -e 129024 -c 2048" +UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512"
Signature · 1 line
1.7.0.4
PATCH 3/4 u-boot-2010.09: add recipe with ronetix-pm9g45 board support
In reply to Eric Bénard--- .../ronetix-pm9g45/0001-pm9g45-add-LCD.patch | 193 +++++++++++++ ...ides-48-bits-serial-number-using-Dallas-1.patch | 302 ++++++++++++++++++++ ...-DS2401-to-set-the-MAC-address-of-the-Eth.patch | 109 +++++++ ...-DS2401-to-set-the-MAC-address-of-the-Eth.patch | 108 +++++++ ...-DS2401-to-set-the-MAC-address-of-the-Eth.patch | 108 +++++++ .../0006-PM9263-with-128MiB-of-SRAM.patch | 35 +++ ...0007-pm9g45-make-ethernet-working-in-v1.3.patch | 70 +++++ ...dd-enable-disable-option-to-reset-the-PHY.patch | 57 ++++ ...9-pm9g45-enable-user-reset-when-on-bb9g45.patch | 42 +++ ...10-add-a-display-GATW70SN8H1E0-for-bb9g45.patch | 52 ++++ ...1-pm9g45-choose-between-bb9g45-and-bb9263.patch | 105 +++++++ .../0012-RGB_BGR-fixes-of-LCD-on-bb9g45.patch | 45 +++ ...-88c4b7783d567f1c26b81a0c9daea99b44cd8723.patch | 37 +++ ...a-delay-for-the-PSRAM-in-v1.3-of-the-boar.patch | 33 +++ recipes/u-boot/u-boot_2010.09.bb | 36 +++ 15 files changed, 1332 insertions(+), 0 deletions(-) create mode 100644 recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0001-pm9g45-add-LCD.patch create mode 100644 recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0002-DS2401-provides-48-bits-serial-number-using-Dallas-1.patch create mode 100644 recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0003-PM9G45-uses-DS2401-to-set-the-MAC-address-of-the-Eth.patch create mode 100644 recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0004-PM9263-uses-DS2401-to-set-the-MAC-address-of-the-Eth.patch create mode 100644 recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0005-PM9261-uses-DS2401-to-set-the-MAC-address-of-the-Eth.patch create mode 100644 recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0006-PM9263-with-128MiB-of-SRAM.patch create mode 100644 recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0007-pm9g45-make-ethernet-working-in-v1.3.patch create mode 100644 recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0008-pm9g45-add-enable-disable-option-to-reset-the-PHY.patch create mode 100644 recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0009-pm9g45-enable-user-reset-when-on-bb9g45.patch create mode 100644 recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0010-add-a-display-GATW70SN8H1E0-for-bb9g45.patch create mode 100644 recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0011-pm9g45-choose-between-bb9g45-and-bb9263.patch create mode 100644 recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0012-RGB_BGR-fixes-of-LCD-on-bb9g45.patch create mode 100644 recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0013-revert-88c4b7783d567f1c26b81a0c9daea99b44cd8723.patch create mode 100644 recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0014-pm9263-add-a-delay-for-the-PSRAM-in-v1.3-of-the-boar.patch create mode 100644 recipes/u-boot/u-boot_2010.09.bb
recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0001-pm9g45-add-LCD.patch new file +193 -0
@@ -0,0 +1,193 @@ +From 0cc702cd9994e5ff01747a896903888caa3304d9 Mon Sep 17 00:00:00 2001 +From: Asen Dimov <[email protected]> +Date: Thu, 26 Aug 2010 11:17:07 +0300 +Subject: [PATCH 01/14] pm9g45: add LCD + +Signed-off-by: Asen Dimov <[email protected]> +Signed-off-by: Asen Chavdarov Dimov <[email protected]> +--- + board/ronetix/pm9g45/pm9g45.c | 130 +++++++++++++++++++++++++++++++++++++++++ + include/configs/pm9g45.h | 12 ++++ + 2 files changed, 142 insertions(+), 0 deletions(-) + +diff --git a/board/ronetix/pm9g45/pm9g45.c b/board/ronetix/pm9g45/pm9g45.c +index 3b4d9a3..c6635b4 100644 +--- a/board/ronetix/pm9g45/pm9g45.c ++++ b/board/ronetix/pm9g45/pm9g45.c +@@ -39,6 +39,14 @@ + #include <asm/arch/clk.h> + #include <asm/arch/io.h> + #include <asm/arch/hardware.h> ++#ifdef CONFIG_LCD ++#include <lcd.h> ++#include <atmel_lcdc.h> ++#endif ++#ifdef CONFIG_LCD_INFO ++#include <nand.h> ++#include <version.h> ++#endif + #if defined(CONFIG_RESET_PHY_R) && defined(CONFIG_MACB) + #include <net.h> + #endif +@@ -130,6 +138,124 @@ static void pm9g45_macb_hw_init(void) + } + #endif + ++#ifdef CONFIG_LCD ++/* ++ * LCD name TX09D50VM1CCA ++ */ ++vidinfo_t panel_info = { ++ vl_col: 240, ++ vl_row: 320, ++ vl_clk: 4965000, ++ vl_sync: ATMEL_LCDC_INVLINE_NORMAL | ++ ATMEL_LCDC_INVFRAME_NORMAL, ++ vl_bpix: 3, ++ vl_tft: 1, ++ vl_hsync_len: 5, ++ vl_left_margin: 1, ++ vl_right_margin:33, ++ vl_vsync_len: 1, ++ vl_upper_margin:1, ++ vl_lower_margin:0, ++ mmio: AT91SAM9G45_LCDC_BASE, ++}; ++ ++void lcd_enable(void) ++{ ++ at91_set_a_periph(AT91_PIO_PORTE, 6, 1); /* power up */ ++} ++ ++void lcd_disable(void) ++{ ++ at91_set_a_periph(AT91_PIO_PORTE, 6, 0); /* power down */ ++} ++ ++static void pm9g45_lcd_hw_init(void) ++{ ++ at91_pmc_t *pmc = (at91_pmc_t *) AT91_PMC_BASE; ++ ++ at91_set_a_periph(AT91_PIO_PORTE, 0, 0); /* LCDDPWR */ ++ at91_set_a_periph(AT91_PIO_PORTE, 2, 0); /* LCDCC */ ++ at91_set_a_periph(AT91_PIO_PORTE, 3, 0); /* LCDVSYNC */ ++ at91_set_a_periph(AT91_PIO_PORTE, 4, 0); /* LCDHSYNC */ ++ at91_set_a_periph(AT91_PIO_PORTE, 5, 0); /* LCDDOTCK */ ++ ++ at91_set_a_periph(AT91_PIO_PORTE, 7, 0); /* LCDD0 */ ++ at91_set_a_periph(AT91_PIO_PORTE, 8, 0); /* LCDD1 */ ++ at91_set_a_periph(AT91_PIO_PORTE, 9, 0); /* LCDD2 */ ++ at91_set_a_periph(AT91_PIO_PORTE, 10, 0); /* LCDD3 */ ++ at91_set_a_periph(AT91_PIO_PORTE, 11, 0); /* LCDD4 */ ++ at91_set_a_periph(AT91_PIO_PORTE, 12, 0); /* LCDD5 */ ++ at91_set_a_periph(AT91_PIO_PORTE, 13, 0); /* LCDD6 */ ++ at91_set_a_periph(AT91_PIO_PORTE, 14, 0); /* LCDD7 */ ++ at91_set_a_periph(AT91_PIO_PORTE, 15, 0); /* LCDD8 */ ++ at91_set_a_periph(AT91_PIO_PORTE, 16, 0); /* LCDD9 */ ++ at91_set_a_periph(AT91_PIO_PORTE, 17, 0); /* LCDD10 */ ++ at91_set_a_periph(AT91_PIO_PORTE, 18, 0); /* LCDD11 */ ++ at91_set_a_periph(AT91_PIO_PORTE, 19, 0); /* LCDD12 */ ++ at91_set_b_periph(AT91_PIO_PORTE, 20, 0); /* LCDD13 */ ++ at91_set_a_periph(AT91_PIO_PORTE, 21, 0); /* LCDD14 */ ++ at91_set_a_periph(AT91_PIO_PORTE, 22, 0); /* LCDD15 */ ++ at91_set_a_periph(AT91_PIO_PORTE, 23, 0); /* LCDD16 */ ++ at91_set_a_periph(AT91_PIO_PORTE, 24, 0); /* LCDD17 */ ++ at91_set_a_periph(AT91_PIO_PORTE, 25, 0); /* LCDD18 */ ++ at91_set_a_periph(AT91_PIO_PORTE, 26, 0); /* LCDD19 */ ++ at91_set_a_periph(AT91_PIO_PORTE, 27, 0); /* LCDD20 */ ++ at91_set_b_periph(AT91_PIO_PORTE, 28, 0); /* LCDD21 */ ++ at91_set_a_periph(AT91_PIO_PORTE, 29, 0); /* LCDD22 */ ++ at91_set_a_periph(AT91_PIO_PORTE, 30, 0); /* LCDD23 */ ++ ++ writel(1 << AT91SAM9G45_ID_LCDC, &pmc->pcer); ++ ++ gd->fb_base = CONFIG_AT91SAM9G45_LCD_BASE; ++} ++ ++#ifdef CONFIG_LCD_INFO ++ ++void lcd_show_board_info(void) ++{ ++ ulong dram_size, nand_size; ++#ifdef CONFIG_HAS_DATAFLASH ++ ulong dataflash_size; ++#endif ++ int i; ++ char temp[32]; ++ ++ lcd_printf ("%s\n", U_BOOT_VERSION); ++ lcd_printf ("(C) 2010 Ronetix GmbH\n"); ++ lcd_printf ("[email protected]\n"); ++ lcd_printf ("%s CPU at %s MHz\n", ++ CONFIG_SYS_AT91_CPU_NAME, ++ strmhz(temp, get_cpu_clk_rate())); ++ ++ dram_size = 0; ++ for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) ++ dram_size += gd->bd->bi_dram[i].size; ++ ++ nand_size = 0; ++ for (i = 0; i < CONFIG_SYS_MAX_NAND_DEVICE; i++) ++ nand_size += nand_info[i].size; ++ ++#ifdef CONFIG_HAS_DATAFLASH ++ dataflash_size = 0; ++ for (i = 0; i < CONFIG_SYS_MAX_DATAFLASH_BANKS; i++) { ++ dataflash_size += (unsigned int) ++ dataflash_info[i].Device.pages_number * ++ dataflash_info[i].Device.pages_size; ++ } ++#endif ++ ++ lcd_printf ("%ld MB DDR2 SDRAM\n%ld MB NAND\n", ++ dram_size >> 20, ++ nand_size >> 20); ++ ++#ifdef CONFIG_HAS_DATAFLASH ++ lcd_printf ("%ld MB DataFlash\n", ++ dataflash_size >> 20); ++#endif ++} ++#endif /* CONFIG_LCD_INFO */ ++#endif ++ + int board_init(void) + { + at91_pmc_t *pmc = (at91_pmc_t *) AT91_PMC_BASE; +@@ -155,6 +281,10 @@ int board_init(void) + #ifdef CONFIG_MACB + pm9g45_macb_hw_init(); + #endif ++ ++#ifdef CONFIG_LCD ++ pm9g45_lcd_hw_init(); ++#endif + return 0; + } + +diff --git a/include/configs/pm9g45.h b/include/configs/pm9g45.h +index 690f119..c0ace29 100644 +--- a/include/configs/pm9g45.h ++++ b/include/configs/pm9g45.h +@@ -134,6 +134,18 @@ + #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2 + #define CONFIG_USB_STORAGE 1 + ++/* LCD */ ++#define CONFIG_LCD 1 ++#define LCD_BPP LCD_COLOR8 ++#define CONFIG_LCD_LOGO 1 ++#undef LCD_TEST_PATTERN ++#define CONFIG_LCD_INFO 1 ++#define CONFIG_LCD_INFO_BELOW_LOGO 1 ++#define CONFIG_SYS_WHITE_ON_BLACK 1 ++#define CONFIG_ATMEL_LCD 1 ++#define CONFIG_ATMEL_LCD_RGB565 1 ++#define CONFIG_SYS_CONSOLE_IS_IN_ENV 1 ++ + /* board specific(not enough SRAM) */ + #define CONFIG_AT91SAM9G45_LCD_BASE PHYS_SDRAM + 0xE00000 + +-- +1.7.0.4 +
recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0002-DS2401-provides-48-bits-serial-number-using-Dallas-1.patch new file +302 -0
302 lines not on this page · raw message
recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0003-PM9G45-uses-DS2401-to-set-the-MAC-address-of-the-Eth.patch new file +109 -0
109 lines not on this page · raw message
recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0004-PM9263-uses-DS2401-to-set-the-MAC-address-of-the-Eth.patch new file +108 -0
108 lines not on this page · raw message
recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0005-PM9261-uses-DS2401-to-set-the-MAC-address-of-the-Eth.patch new file +108 -0
108 lines not on this page · raw message
recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0006-PM9263-with-128MiB-of-SRAM.patch new file +35 -0
@@ -0,0 +1,35 @@ +From 7d9f03fdb2fe8930ada680f035465631fdcb8fe1 Mon Sep 17 00:00:00 2001 +From: Asen Dimov <[email protected]> +Date: Wed, 2 Feb 2011 11:31:04 +0200 +Subject: [PATCH 06/14] PM9263 with 128MiB of SRAM + +Signed-off-by: Asen Chavdarov Dimov <[email protected]> +--- + include/configs/pm9263.h | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/include/configs/pm9263.h b/include/configs/pm9263.h +index 20fe9d7..78e7264 100644 +--- a/include/configs/pm9263.h ++++ b/include/configs/pm9263.h +@@ -95,7 +95,7 @@ + #define CONFIG_SYS_SDRC_TR_VAL1 0x3AA + /* SDRAMC_CR - Configuration register*/ + #define CONFIG_SYS_SDRC_CR_VAL \ +- (AT91_SDRAMC_NC_9 | \ ++ (AT91_SDRAMC_NC_10 | \ + AT91_SDRAMC_NR_13 | \ + AT91_SDRAMC_NB_4 | \ + AT91_SDRAMC_CAS_2 | \ +@@ -227,7 +227,7 @@ + /* SDRAM */ + #define CONFIG_NR_DRAM_BANKS 1 + #define PHYS_SDRAM 0x20000000 +-#define PHYS_SDRAM_SIZE 0x04000000 /* 64 megs */ ++#define PHYS_SDRAM_SIZE 0x08000000 /* 128 megs */ + + /* DataFlash */ + #define CONFIG_ATMEL_DATAFLASH_SPI +-- +1.7.0.4 +
recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0007-pm9g45-make-ethernet-working-in-v1.3.patch new file +70 -0
70 lines not on this page · raw message
recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0008-pm9g45-add-enable-disable-option-to-reset-the-PHY.patch new file +57 -0
57 lines not on this page · raw message
recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0009-pm9g45-enable-user-reset-when-on-bb9g45.patch new file +42 -0
42 lines not on this page · raw message
recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0010-add-a-display-GATW70SN8H1E0-for-bb9g45.patch new file +52 -0
52 lines not on this page · raw message
recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0011-pm9g45-choose-between-bb9g45-and-bb9263.patch new file +105 -0
105 lines not on this page · raw message
recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0012-RGB_BGR-fixes-of-LCD-on-bb9g45.patch new file +45 -0
45 lines not on this page · raw message
recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0013-revert-88c4b7783d567f1c26b81a0c9daea99b44cd8723.patch new file +37 -0
@@ -0,0 +1,37 @@ +From c073508227471d4bbabbba60caaceb6fb08719d8 Mon Sep 17 00:00:00 2001 +From: Asen Dimov <[email protected]> +Date: Fri, 24 Jun 2011 15:17:22 +0300 +Subject: [PATCH 13/14] revert 88c4b7783d567f1c26b81a0c9daea99b44cd8723 + +switch from 128MiB to 64MiB of SDRAM. + +Signed-off-by: Asen Dimov <[email protected]> +--- + include/configs/pm9263.h | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/include/configs/pm9263.h b/include/configs/pm9263.h +index 78e7264..20fe9d7 100644 +--- a/include/configs/pm9263.h ++++ b/include/configs/pm9263.h +@@ -95,7 +95,7 @@ + #define CONFIG_SYS_SDRC_TR_VAL1 0x3AA + /* SDRAMC_CR - Configuration register*/ + #define CONFIG_SYS_SDRC_CR_VAL \ +- (AT91_SDRAMC_NC_10 | \ ++ (AT91_SDRAMC_NC_9 | \ + AT91_SDRAMC_NR_13 | \ + AT91_SDRAMC_NB_4 | \ + AT91_SDRAMC_CAS_2 | \ +@@ -227,7 +227,7 @@ + /* SDRAM */ + #define CONFIG_NR_DRAM_BANKS 1 + #define PHYS_SDRAM 0x20000000 +-#define PHYS_SDRAM_SIZE 0x08000000 /* 128 megs */ ++#define PHYS_SDRAM_SIZE 0x04000000 /* 64 megs */ + + /* DataFlash */ + #define CONFIG_ATMEL_DATAFLASH_SPI +-- +1.7.0.4 +
recipes/u-boot/u-boot-2010.09/ronetix-pm9g45/0014-pm9263-add-a-delay-for-the-PSRAM-in-v1.3-of-the-boar.patch new file +33 -0
@@ -0,0 +1,33 @@ +From 1b0b7c7b165f3ce930ed4349da10b6bf40909c35 Mon Sep 17 00:00:00 2001 +From: Ilko Iliev <[email protected]> +Date: Fri, 24 Jun 2011 15:19:41 +0300 +Subject: [PATCH 14/14] pm9263: add a delay for the PSRAM in v1.3 of the board + +Signed-off-by: Asen Dimov <[email protected]> +--- + board/ronetix/pm9263/pm9263.c | 2 ++ + 1 files changed, 2 insertions(+), 0 deletions(-) + +diff --git a/board/ronetix/pm9263/pm9263.c b/board/ronetix/pm9263/pm9263.c +index 5fca558..c30bdc5 100644 +--- a/board/ronetix/pm9263/pm9263.c ++++ b/board/ronetix/pm9263/pm9263.c +@@ -248,6 +248,7 @@ static int pm9263_lcd_hw_psram_init(void) + if ((readw(PHYS_PSRAM) != 0x1234) || (readw(PHYS_PSRAM+2) != 0x5678)) { + /* try with CRE=1 (MT45W2M16A) */ + at91_set_pio_value(PSRAM_CRE_PIN, 1); /* set PSRAM_CRE_PIN to '1' */ ++ udelay(500); + + /* write RCR of the PSRAM */ + x = readw(PSRAM_CTRL_REG); +@@ -401,6 +402,7 @@ int board_init(void) + at91_uhp_hw_init(); + #endif + #ifdef CONFIG_LCD ++ timer_init(); + pm9263_lcd_hw_init(); + #endif + return 0; +-- +1.7.0.4 +
recipes/u-boot/u-boot_2010.09.bb new file +36 -0
@@ -0,0 +1,36 @@ +PR = "r1" +require u-boot.inc + +DEFAULT_PREFERENCE = "-1" +DEFAULT_PREFERENCE_ronetix-pm9g45 = "1" + +SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 " + +SRC_URI_append_ronetix-pm9g45 = " \ + file://0001-pm9g45-add-LCD.patch \ + file://0002-DS2401-provides-48-bits-serial-number-using-Dallas-1.patch \ + file://0003-PM9G45-uses-DS2401-to-set-the-MAC-address-of-the-Eth.patch \ + file://0004-PM9263-uses-DS2401-to-set-the-MAC-address-of-the-Eth.patch \ + file://0005-PM9261-uses-DS2401-to-set-the-MAC-address-of-the-Eth.patch \ + file://0006-PM9263-with-128MiB-of-SRAM.patch \ + file://0007-pm9g45-make-ethernet-working-in-v1.3.patch \ + file://0008-pm9g45-add-enable-disable-option-to-reset-the-PHY.patch \ + file://0009-pm9g45-enable-user-reset-when-on-bb9g45.patch \ + file://0010-add-a-display-GATW70SN8H1E0-for-bb9g45.patch \ + file://0011-pm9g45-choose-between-bb9g45-and-bb9263.patch \ + file://0012-RGB_BGR-fixes-of-LCD-on-bb9g45.patch \ + file://0013-revert-88c4b7783d567f1c26b81a0c9daea99b44cd8723.patch \ + file://0014-pm9263-add-a-delay-for-the-PSRAM-in-v1.3-of-the-boar.patch \ + " + +TARGET_LDFLAGS = "" + +inherit base + +do_compile () { + oe_runmake ${UBOOT_MACHINE} + oe_runmake all +} + +SRC_URI[md5sum] = "6dcc2cc47ecc96d4da984556d601a8c0" +SRC_URI[sha256sum] = "96e7f9a0790a385256ee42845ccd7aa5bbd1866eebca2ee8755bf9bef189f121"
Signature · 1 line
1.7.0.4