New machine pcm043 Phytec phyCORE-i.MX35
PATCH 1/2 New machine pcm043 Phytec phyCORE-i.MX35
The new machine pcm043 is the board Phytec phyCORE-i.MX35.
The machine name pcm043 is chosen, because it is already used in the linux kernel for this board.
BSP is derived from BSP of machine mx31ads.
Linux kernel is based on Phytec Linux BSP for phyCORE-i.MX35 PD 10.1.1
Vendor page: http://www.phytec.com/products/rdk/ARM-XScale/phyCORE-ARM11-i.MX35.html
Tutorial: http://en.gentoo-wiki.com/wiki/Phytec_phyCORE-iMX35/Openembedded
--- MAINTAINERS | 5 ++ conf/distro/include/sane-feed.inc | 1 + conf/machine/pcm043.conf | 25 ++++++++ contrib/angstrom/sort.sh | 2 +- contrib/feed-browser/includes/config.inc | 5 ++ recipes/clutter/clutter.inc | 5 ++ recipes/images/illume-image.bb | 1 + recipes/linux/linux_2.6.31.bb | 89 ++++++++++++++++++++++++++++++ 8 files changed, 132 insertions(+), 1 deletions(-) create mode 100644 conf/machine/pcm043.conf
MAINTAINERS +5 -0
@@ -138,6 +138,11 @@ Recipes: quagga, iputils, ndic6, hping2, lilo-sh, conserver, ipsec-tools, Recipes: lilo-sh, clamav, havp, p3scan, clamsmtp, librsync, rdiff-backup, Recipes: net-snmp, ebtables, ethtool, arpwatch, lib*-perl +Person: Jan Kobler +Mail: [email protected] +Interests: embedded systems, powerpc, arm +Machines: pcm043 + Person: Jan Luebbe Mail: [email protected] Website: http://sicherheitsschwankung.de
conf/distro/include/sane-feed.inc +1 -0
@@ -119,6 +119,7 @@ FEED_ARCH_mx31moboard = "armv6" FEED_ARCH_nokia800 = "armv6" FEED_ARCH_omap2420h4 = "armv6" FEED_ARCH_omap2430sdp = "armv6" +FEED_ARCH_pcm043 = "armv6" # i486 machines FEED_ARCH_geodegx = "i486"
conf/machine/pcm043.conf new file +25 -0
@@ -0,0 +1,25 @@ +#@TYPE: Machine +#@Name: Phytec phyCORE-i.MX35 +#@DESCRIPTION: Machine configuration for Phytec phyCORE-i.MX35 + +TARGET_ARCH = "arm" + +MACHINE_FEATURES = "kernel26 apm alsa ext2 pcmcia usbhost usbgadget touchscreen" + +GUI_MACHINE_CLASS = "smallscreen" + +PREFERRED_PROVIDER_virtual/kernel = "linux" + +require conf/machine/include/tune-arm1136jf-s.inc + +# used by sysvinit_2 +SERIAL_CONSOLE = "115200 ttymxc0" + +# used by opie-collections.inc +ROOT_FLASH_SIZE = "32" + +IMAGE_FSTYPES += "tar.gz" + +KERNEL_IMAGETYPE = "uImage" + +UBOOT_ENTRYPOINT = "0x80008000"
contrib/angstrom/sort.sh +1 -1
@@ -75,7 +75,7 @@ case "$arch" in "armv5teb") machines="fsg3be ixp4xxbe nslu2be" ;; "armv6") - machines="bug iphone mx31ads mx31moboard mini6410 nokia800 omap2420h4 omap2430sdp smartq5 smartqv7 smdk6410" ;; + machines="bug iphone mx31ads mx31moboard mini6410 nokia800 omap2420h4 omap2430sdp pcm043 smartq5 smartqv7 smdk6410" ;; "armv6-novfp") machines="htcblackstone htcdiamond htcdream htckaiser htcnike htcpolaris htcraphael htctitan htcvogue" ;; "armv7a")
contrib/feed-browser/includes/config.inc +5 -0
@@ -245,6 +245,11 @@ $feeds = array( ), array( + 'name'=>'Phytec phyCORE-i.MX35', + 'url'=>'armv6/machine/pcm043', + ), + + array( 'name'=>'Tyan thunder K7 s2462 mainboard (guinness)', 'url'=>'i686/machine/guinness', ),
recipes/clutter/clutter.inc +5 -0
@@ -41,6 +41,11 @@ EXTRA_OECONF_mx31ads = "${BASE_CONF} --with-flavour=eglnative" PACKAGE_ARCH_mx31ads = "${MACHINE_ARCH}" LDFLAGS_append_mx31ads = " -lpvrNULLWSEGL -lstdc++ " +DEPENDS_pcm043 = "${STDDEPENDS} libgles-mx31 tslib" +EXTRA_OECONF_pcm043 = "${BASE_CONF} --with-flavour=eglnative" +PACKAGE_ARCH_pcm043 = "${MACHINE_ARCH}" +LDFLAGS_append_pcm043 = " -lpvrNULLWSEGL -lstdc++ " + INC_PR = "r3" inherit autotools pkgconfig gtk-doc
recipes/images/illume-image.bb +1 -0
@@ -122,6 +122,7 @@ GLES_INSTALL_append_omap3evm = "libgles-omap3" #GLES_INSTALL_append_overo = "libgles-omap3" GLES_INSTALL_append_mx31ads = "libgles-mx31" GLES_INSTALL_append_mx31litekit = "libgles-mx31" +GLES_INSTALL_append_pcm043 = "libgles-mx31" GLES_INSTALL_append_zylonite = "libgles-zylonite" # python
recipes/linux/linux_2.6.31.bb +89 -0
101 lines not on this page · raw message
Signature · 1 line
1.7.3.4
PATCH 2/2 linux-2.6.31 config and patch files for pcm043
These config and patch files are from the Phytec Linux BSP for phyCORE-i.MX35 PD10.1.1.
They were taken from the archive ftp://ftp.phytec.de/pub/Products/phyCORE-iMX350/Linux/PD10.1.1/OSELAS.BSP-Phytec-phyCORE-i.MX35-PD10.1.1.tar.gz
The patch files are from the folder in this archive OSELAS.BSP-Phytec-phyCORE-i.MX35-PD10.1.1/configs/phyCORE-i.MX35-2010.08.0/patches/linux-2.6.31.6/generic
The patch files have been shipped for linux-2.6.31.6 and are used here on linux-2.6.31.12. Because it seems to work, pcm043 is added to linux-2.6.31.bb.
The sequence of the patches for pcm043 in linux-2.6.31.bb is derived from the file OSELAS.BSP-Phytec-phyCORE-i.MX35-PD10.1.1/configs/phyCORE-i.MX35-2010.08.0/patches/linux-2.6.31.6/generic/series
The defconfig file is the file OSELAS.BSP-Phytec-phyCORE-i.MX35-PD10.1.1/configs/phyCORE-i.MX35-2010.08.0/kernelconfig
These patch files from the folder OSELAS.BSP-Phytec-phyCORE-i.MX35-PD10.1.1/configs/phyCORE-i.MX35-2010.08.0/patches/linux-2.6.31.6/generic are NOT used:
0063-add-generic-platform-bus-based-sja1000-driver.patch 0076-mx3fb-pretty-printing-update.patch
0078-sja1000-driver-Fix-net-device-stats.patch
patch-2.6.31.6-rt19.gz
because they are not referenced by the file OSELAS.BSP-Phytec-phyCORE-i.MX35-PD10.1.1/configs/phyCORE-i.MX35-2010.08.0/patches/linux-2.6.31.6/generic/series
--- .../pcm043/0001-mxcv2-nand-driver.patch | 1130 ++++++++++ ...i-add-SPI-driver-for-most-known-i.MX-SoCs.patch | 2337 ++++++++++++++++++++ ...2-MXC-NFC-Remove-useless-structure-member.patch | 45 + .../0002-mfd-Add-Freescale-MC13783-driver.patch | 984 ++++++++ ...0002-mxc_nand-cleanup-eccoob-descriptions.patch | 111 + ...d-a-real-NAND-flash-data-width-setup-func.patch | 51 + .../0003-mx3-Add-SSI-pins-to-iomux-table.patch | 48 + .../0003-mxc_nand-cleanup-initialization.patch | 124 ++ ...4-MXC-NFC-Use-generic-bad-block-detection.patch | 148 ++ ...004-mxc-iomux-v3-remove-resource-handling.patch | 111 + ...d-merge-send_read_page-and-send_prog_page.patch | 104 + ...vide-flash-device-detection-into-two-step.patch | 48 + ...31-clock-rename-SSI-clocks-to-driver-name.patch | 28 + ...0005-mxc_nand-introduce-mxc_do_addr_cycle.patch | 122 + ...order-structure-setup-to-use-NAND-informa.patch | 129 ++ .../0006-i.MX2-Add-sound-ssi-resources.patch | 132 ++ .../pcm043/0006-mxc-nand-remove-debug-param.patch | 82 + .../pcm043/0007-MXC-NFC-Fix-OOB-layout.patch | 104 + .../0007-i.MX3-Add-sound-ssi-resources.patch | 101 + .../pcm043/0007-mxc-nand-remove-dead-code.patch | 41 + ...XC-Add-a-digital-audio-multiplexer-driver.patch | 281 +++ ...C-NFC-The-i.MX35-CPU-also-uses-a-V2.1-NFC.patch | 26 + .../pcm043/0008-mxc-nand-use-resource_size.patch | 26 + .../pcm043/0009-MX31-Fix-spi-clock-names.patch | 32 + ...-MXC-NFC-Fix-NFC-s-address-area-on-i.MX35.patch | 28 + .../pcm043/0009-mxc-nand-use-buffers.patch | 473 ++++ ...dd-the-clock-resource-to-support-NFC-in-i.patch | 61 + .../pcm043/0010-i.MX35-Fix-audmux-clock.patch | 52 + ...0010-mxc-nand-simplify-command-processing.patch | 143 ++ ...MX31-add-spi-controller-devices-resources.patch | 97 + .../pcm043/0011-MXC-NFC-Fix-NFC-s-clock-name.patch | 28 + ...modify-send_page-to-send-all-pages-not-on.patch | 87 + ....MX35-can-work-with-the-v2-not-with-v1-of.patch | 34 + ...7-clock-rename-spi-clocks-to-match-device.patch | 30 + .../0012-mxc_nand-remove-unused-defines.patch | 31 + .../0013-MXC-NFC-Add-the-cpu_is_mx25-macro.patch | 38 + .../pcm043/0013-add-a-mc13783-codec-driver.patch | 834 +++++++ ...ake-main-spare-areas-runtime-configurable.patch | 142 ++ ...FC-Add-NAND-device-to-the-pcm043-platform.patch | 47 + .../pcm043/0014-imx-ssi-sound-driver.patch | 1911 ++++++++++++++++ ...0014-mxc_nand-Get-rid-of-pagesize_2k-flag.patch | 128 ++ ...unlock_addr-is-only-used-while-__init-pha.patch | 28 + .../0015-add-phycore-ac97-sound-support.patch | 140 ++ .../pcm043/0015-mxc_nand-Add-NFC-V2-support.patch | 191 ++ .../0016-add-phycore-mc13783-sound-support.patch | 211 ++ ...0016-mxc_nand-disable-sp_en-bit-only-once.patch | 66 + .../0017-mxc_nand-Allow-flash-based-bbt.patch | 79 + .../pcm043/0017-pcm043-add-sound-support.patch | 161 ++ .../0018-mxc_nand-remove-TROP_US_DELAY.patch | 88 + .../0018-pcm038-Add-SPI-MC13783-support.patch | 146 ++ ...support-for-phytec-pca100-phyCARD-s-board.patch | 293 +++ ...xc_nand-use-DRIVER_NAME-where-appropriate.patch | 35 + .../0020-MX2-Add-SPI-devices-resources.patch | 92 + .../linux-2.6.31/pcm043/0021-Early-printk.patch | 106 + ...-DMA-add-a-possibility-to-create-an-endle.patch | 50 + ...0022-ASoC-Allow-32-bit-registers-for-DAPM.patch | 203 ++ .../pcm043/0023-pca100-add-sound-support.patch | 99 + .../pcm043/0024-MX31-Clock-updates.patch | 40 + .../pcm043/0024-pcm038-add-sound-support.patch | 72 + .../pcm043/0025-pcm037-Add-sound-support.patch | 144 ++ .../pcm043/0026-imx-ssi-Fix-AC97-rates.patch | 37 + ...CI-support-for-MX27-and-MX31-based-boards.patch | 347 +++ .../pcm043/0027-imx-ssi-flush-fifos.patch | 29 + ...imx-ssi-Fix-occasional-AC97-reset-failure.patch | 37 + ...31-Add-USB-platform-devices-and-resources.patch | 100 + .../pcm043/0053-Watchdog-driver-for-IMX-MXC.patch | 490 ++++ ...CK-increase-default-tx_queue_len-to-10000.patch | 36 + .../0084-i.MX35-clock-support-Add-USB-clocks.patch | 30 + .../pcm043/0088-ehci-mxc-Fix-clocks.patch | 33 + .../0090-mx3x-Fixup-USB-base-addresses.patch | 93 + ...-mx31-clock-remove-obsolete-FIXME-comment.patch | 25 + .../0092-mx35-clock-give-ehci-clocks-names.patch | 30 + ...MX35-implement-get_rate-for-usb-otg-clock.patch | 54 + .../0097-fsl-udc-driver-add-mx35-support.patch | 83 + .../pcm043/Update-PCM043-board-support.patch | 134 ++ .../linux/linux-2.6.31/pcm043/add-led-gpio.patch | 17 + recipes/linux/linux-2.6.31/pcm043/add_mmc.diff | 1396 ++++++++++++ recipes/linux/linux-2.6.31/pcm043/fix_can.patch | 16 + .../linux/linux-2.6.31/pcm043/fix_clock_calc.patch | 27 + .../linux/linux-2.6.31/pcm043/fix_max7301.patch | 28 + .../linux-2.6.31/pcm043/fix_mmc_for_highspeed.diff | 63 + .../linux/linux-2.6.31/pcm043/fix_oob_layout.diff | 67 + .../linux/linux-2.6.31/pcm043/fix_owire_clk.patch | 17 + .../pcm043/linux-2.6.31.6-flexcan.patch | 2168 ++++++++++++++++++ .../linux-2.6.31/pcm043/linux-2.6.31.6-spi.patch | 116 + recipes/linux/linux-2.6.31/pcm043/w1_master.patch | 26 + recipes/linux/linux/pcm043/defconfig | 1659 ++++++++++++++ 87 files changed, 19911 insertions(+), 0 deletions(-) create mode 100644 recipes/linux/linux-2.6.31/pcm043/0001-mxcv2-nand-driver.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0001-spi-add-SPI-driver-for-most-known-i.MX-SoCs.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0002-MXC-NFC-Remove-useless-structure-member.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0002-mfd-Add-Freescale-MC13783-driver.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0002-mxc_nand-cleanup-eccoob-descriptions.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0003-MXC-NFC-Add-a-real-NAND-flash-data-width-setup-func.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0003-mx3-Add-SSI-pins-to-iomux-table.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0003-mxc_nand-cleanup-initialization.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0004-MXC-NFC-Use-generic-bad-block-detection.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0004-mxc-iomux-v3-remove-resource-handling.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0004-mxc_nand-merge-send_read_page-and-send_prog_page.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0005-MXC-NFC-Divide-flash-device-detection-into-two-step.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0005-i.MX31-clock-rename-SSI-clocks-to-driver-name.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0005-mxc_nand-introduce-mxc_do_addr_cycle.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0006-MXC-NFC-Reorder-structure-setup-to-use-NAND-informa.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0006-i.MX2-Add-sound-ssi-resources.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0006-mxc-nand-remove-debug-param.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0007-MXC-NFC-Fix-OOB-layout.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0007-i.MX3-Add-sound-ssi-resources.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0007-mxc-nand-remove-dead-code.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0008-MXC-Add-a-digital-audio-multiplexer-driver.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0008-MXC-NFC-The-i.MX35-CPU-also-uses-a-V2.1-NFC.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0008-mxc-nand-use-resource_size.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0009-MX31-Fix-spi-clock-names.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0009-MXC-NFC-Fix-NFC-s-address-area-on-i.MX35.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0009-mxc-nand-use-buffers.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0010-MXC-NFC-Add-the-clock-resource-to-support-NFC-in-i.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0010-i.MX35-Fix-audmux-clock.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0010-mxc-nand-simplify-command-processing.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0011-MX31-add-spi-controller-devices-resources.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0011-MXC-NFC-Fix-NFC-s-clock-name.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0011-mxc-nand-modify-send_page-to-send-all-pages-not-on.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0012-MXC-NFC-i.MX35-can-work-with-the-v2-not-with-v1-of.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0012-i.MX27-clock-rename-spi-clocks-to-match-device.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0012-mxc_nand-remove-unused-defines.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0013-MXC-NFC-Add-the-cpu_is_mx25-macro.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0013-add-a-mc13783-codec-driver.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0013-mxc_nand-Make-main-spare-areas-runtime-configurable.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0014-MXC-NFC-Add-NAND-device-to-the-pcm043-platform.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0014-imx-ssi-sound-driver.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0014-mxc_nand-Get-rid-of-pagesize_2k-flag.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0015-MXC-NFC-unlock_addr-is-only-used-while-__init-pha.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0015-add-phycore-ac97-sound-support.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0015-mxc_nand-Add-NFC-V2-support.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0016-add-phycore-mc13783-sound-support.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0016-mxc_nand-disable-sp_en-bit-only-once.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0017-mxc_nand-Allow-flash-based-bbt.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0017-pcm043-add-sound-support.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0018-mxc_nand-remove-TROP_US_DELAY.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0018-pcm038-Add-SPI-MC13783-support.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0019-mx27-add-support-for-phytec-pca100-phyCARD-s-board.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0019-mxc_nand-use-DRIVER_NAME-where-appropriate.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0020-MX2-Add-SPI-devices-resources.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0021-Early-printk.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0021-mxc-mx1-mx2-DMA-add-a-possibility-to-create-an-endle.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0022-ASoC-Allow-32-bit-registers-for-DAPM.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0023-pca100-add-sound-support.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0024-MX31-Clock-updates.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0024-pcm038-add-sound-support.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0025-pcm037-Add-sound-support.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0026-imx-ssi-Fix-AC97-rates.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0027-Add-EHCI-support-for-MX27-and-MX31-based-boards.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0027-imx-ssi-flush-fifos.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0028-imx-ssi-Fix-occasional-AC97-reset-failure.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0029-MX31-Add-USB-platform-devices-and-resources.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0053-Watchdog-driver-for-IMX-MXC.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0066-HACK-increase-default-tx_queue_len-to-10000.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0084-i.MX35-clock-support-Add-USB-clocks.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0088-ehci-mxc-Fix-clocks.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0090-mx3x-Fixup-USB-base-addresses.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0091-mx31-clock-remove-obsolete-FIXME-comment.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0092-mx35-clock-give-ehci-clocks-names.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0096-i.MX35-implement-get_rate-for-usb-otg-clock.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/0097-fsl-udc-driver-add-mx35-support.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/Update-PCM043-board-support.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/add-led-gpio.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/add_mmc.diff create mode 100644 recipes/linux/linux-2.6.31/pcm043/fix_can.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/fix_clock_calc.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/fix_max7301.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/fix_mmc_for_highspeed.diff create mode 100644 recipes/linux/linux-2.6.31/pcm043/fix_oob_layout.diff create mode 100644 recipes/linux/linux-2.6.31/pcm043/fix_owire_clk.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/linux-2.6.31.6-flexcan.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/linux-2.6.31.6-spi.patch create mode 100644 recipes/linux/linux-2.6.31/pcm043/w1_master.patch create mode 100644 recipes/linux/linux/pcm043/defconfig
recipes/linux/linux-2.6.31/pcm043/0001-mxcv2-nand-driver.patch new file +1130 -0
@@ -0,0 +1,1130 @@ +From cd56a2552db22ae5464b68074ad35bf0700bb790 Mon Sep 17 00:00:00 2001 +From: Sascha Hauer <[email protected]> +Date: Thu, 4 Jun 2009 11:26:22 +0200 +Subject: [PATCH 01/15] mxcv2 nand driver + +Signed-off-by: Sascha Hauer <[email protected]> + +rebased to 2.6.31.6 +Signed-off-by: Jan Weitzel <[email protected]> +--- + drivers/mtd/nand/Kconfig | 7 + drivers/mtd/nand/Makefile | 1 + drivers/mtd/nand/mxc_nand_v2.c | 1079 +++++++++++++++++++++++++++++++++++++++++ + 3 files changed, 1087 insertions(+) + create mode 100644 drivers/mtd/nand/mxc_nand_v2.c + +Index: drivers/mtd/nand/Kconfig +=================================================================== +--- drivers/mtd/nand/Kconfig.orig 2009-12-08 10:02:55.061888995 +0100 ++++ drivers/mtd/nand/Kconfig 2009-12-08 10:02:59.468654404 +0100 +@@ -426,6 +426,13 @@ + This enables the driver for the NAND flash controller on the + MXC processors. + ++config MTD_NAND_MXC_V2 ++ tristate "MXC NAND support" ++ depends on ARCH_MX25 ++ help ++ This enables the driver for the NAND flash controller on the ++ MXC processors. ++ + config MTD_NAND_SH_FLCTL + tristate "Support for NAND on Renesas SuperH FLCTL" + depends on MTD_NAND && SUPERH && CPU_SUBTYPE_SH7723 +Index: drivers/mtd/nand/Makefile +=================================================================== +--- drivers/mtd/nand/Makefile.orig 2009-12-08 10:02:55.079723657 +0100 ++++ drivers/mtd/nand/Makefile 2009-12-08 10:02:59.468654404 +0100 +@@ -38,6 +38,7 @@ + obj-$(CONFIG_MTD_NAND_FSL_UPM) += fsl_upm.o + obj-$(CONFIG_MTD_NAND_SH_FLCTL) += sh_flctl.o + obj-$(CONFIG_MTD_NAND_MXC) += mxc_nand.o ++obj-$(CONFIG_MTD_NAND_MXC_V2) += mxc_nand_v2.o + obj-$(CONFIG_MTD_NAND_SOCRATES) += socrates_nand.o + obj-$(CONFIG_MTD_NAND_TXX9NDFMC) += txx9ndfmc.o + +Index: drivers/mtd/nand/mxc_nand_v2.c +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ drivers/mtd/nand/mxc_nand_v2.c 2009-12-08 10:02:59.468654404 +0100 +@@ -0,0 +1,1079 @@ ++/* ++ * Copyright 2004-2008 Freescale Semiconductor, Inc. All Rights Reserved. ++ * Copyright 2009 Sascha Hauer, [email protected] ++ * ++ * This program is free software; you can redistribute it and/or ++ * modify it under the terms of the GNU General Public License ++ * as published by the Free Software Foundation; either version 2 ++ * of the License, or (at your option) any later version. ++ * This program is distributed in the hope that it will be useful, ++ * but WITHOUT ANY WARRANTY; without even the implied warranty of ++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ * GNU General Public License for more details. ++ * ++ * 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., 51 Franklin Street, Fifth Floor, Boston, ++ * MA 02110-1301, USA. ++ */ ++ ++#include <linux/delay.h> ++#include <linux/slab.h> ++#include <linux/init.h> ++#include <linux/module.h> ++#include <linux/mtd/mtd.h> ++#include <linux/mtd/nand.h> ++#include <linux/mtd/partitions.h> ++#include <linux/interrupt.h> ++#include <linux/device.h> ++#include <linux/platform_device.h> ++#include <linux/clk.h> ++#include <linux/err.h> ++#include <linux/io.h> ++ ++#include <asm/mach/flash.h> ++#include <mach/hardware.h> ++#include <mach/mxc_nand.h> ++ ++#define NFC_SET_RBA 0xe04 ++#define NFC_FLASH_ADDR 0xe06 ++#define NFC_FLASH_CMD 0xe08 ++#define NFC_BLS 0xe0a ++#define NFC_ECC_STATUS_RESULT 0xe0c ++#define NFC_V21_SPAS 0xe10 ++#define NFC_WR_PROT 0xe12 ++ ++#define NFC_CONFIG1 0xe1a ++#define NFC_CONFIG2 0xe1c ++ ++#define NFC_V21_UNLOCKSTART_BLKADDR 0xe20 ++#define NFC_V21_UNLOCKEND_BLKADDR 0xe22 ++#define NFC_V1_UNLOCKSTART_BLKADDR 0xe14 ++#define NFC_V1_UNLOCKEND_BLKADDR 0xe16 ++ ++#define nfc_is_v21() cpu_is_mx25() ++#define nfc_is_v2x() cpu_is_mx31() ++ ++#define NFC_ECC_EN (1 << 3) ++ ++#define NFC_WPC_UNLOCK (1 << 2) ++ ++#define NFC_CMD (1 << 0) ++#define NFC_ADDR (1 << 1) ++#define NFC_INPUT (1 << 2) ++#define NFC_OUTPUT (1 << 3) ++#define NFC_ID (1 << 4) ++#define NFC_STATUS (1 << 5) ++ ++#define NFC_RBA_SHIFT 4 ++ ++#define NFC_INT (1 << 15) ++ ++#define NFC_BLS_RESET (3 << 16) ++#define NFC_V2_BLS_UNLOCKED 2 ++ ++#define NFC_V2_SP_EN (1 << 2) ++ ++#define NFC_INT_MSK (1 << 4) ++ ++#define NFMS_NF_DWIDTH 0 ++#define NFMS_NF_PG_SZ 1 ++#define NFC_SPAS_WIDTH 8 ++#define NFC_SPAS_SHIFT 16 ++ ++#define NFC_V21_SPAS_SHIFT (0) ++#define NFC_V21_SPAS_MASK (0xFF00) ++ ++struct mxc_nand_host { ++ struct mtd_info mtd; ++ struct nand_chip nand; ++ struct mtd_partition *parts; ++ struct device *dev; ++ ++ int version; ++ void *spare0; ++ int spare_len; ++ int spare_size; ++ void *main_area0; ++ void *main_area1; ++ void __iomem *base; ++ void __iomem *regs; ++ ++ int status_request; ++ ++ unsigned int buf_start; ++ ++ wait_queue_head_t irq_waitq; ++ int g_page_mask; ++ ++ struct clk *clk; ++ int clk_enabled; ++ ++ uint8_t *data_buf; ++ ++ int irq; ++}; ++ ++/* Define delays in microsec for NAND device operations */ ++#define TROP_US_DELAY 2000 ++ ++/* ++ * OOB placement block for use with hardware ecc generation ++ */ ++static struct nand_ecclayout nand_hw_eccoob_512 = { ++ .eccbytes = 9, ++ .eccpos = {7, 8, 9, 10, 11, 12, 13, 14, 15}, ++ .oobavail = 4, ++ .oobfree = {{0, 4}} ++}; ++ ++static struct nand_ecclayout nand_hw_eccoob_2k = { ++ .eccbytes = 9, ++ .eccpos = {7, 8, 9, 10, 11, 12, 13, 14, 15}, ++ .oobavail = 4, ++ .oobfree = {{2, 4}} ++}; ++ ++static struct nand_ecclayout nand_hw_eccoob_4k = { ++ .eccbytes = 9, ++ .eccpos = {7, 8, 9, 10, 11, 12, 13, 14, 15}, ++ .oobavail = 4, ++ .oobfree = {{2, 4}} ++}; ++ ++#ifdef CONFIG_MTD_PARTITIONS ++static const char *part_probes[] = { "RedBoot", "cmdlinepart", NULL }; ++#endif ++ ++static irqreturn_t mxc_nfc_irq(int irq, void *dev_id) ++{ ++ struct mxc_nand_host *host = dev_id; ++ ++ uint16_t tmp; ++ ++ tmp = readw(host->regs + NFC_CONFIG1); ++ tmp |= NFC_INT_MSK; /* Disable interrupt */ ++ writew(tmp, host->regs + NFC_CONFIG1); ++ ++ wake_up(&host->irq_waitq); ++ ++ return IRQ_HANDLED; ++} ++ ++/* This function polls the NANDFC to wait for the basic operation to ++ * complete by checking the INT bit of config2 register. ++ */ ++static void wait_op_done(struct mxc_nand_host *host, int max_retries, ++ int useirq) ++{ ++ uint32_t tmp; ++ ++ if (useirq) { ++ if ((readw(host->regs + NFC_CONFIG2) & NFC_INT) == 0) { ++ ++ tmp = readw(host->regs + NFC_CONFIG1); ++ tmp &= ~NFC_INT_MSK; /* Enable interrupt */ ++ writew(tmp, host->regs + NFC_CONFIG1); ++ ++ wait_event(host->irq_waitq, ++ readw(host->regs + NFC_CONFIG2) & NFC_INT); ++ ++ tmp = readw(host->regs + NFC_CONFIG2); ++ tmp &= ~NFC_INT; ++ writew(tmp, host->regs + NFC_CONFIG2); ++ } ++ } else { ++ while (max_retries-- > 0) { ++ if (readw(host->regs + NFC_CONFIG2) & NFC_INT) { ++ tmp = readw(host->regs + NFC_CONFIG2); ++ tmp &= ~NFC_INT; ++ writew(tmp, host->regs + NFC_CONFIG2); ++ break; ++ } ++ udelay(1); ++ } ++ if (max_retries <= 0) { ++ printk("%s timed out: 0x%04x\n", __func__, readw(host->regs + NFC_CONFIG2)); ++ BUG(); ++ } ++ } ++} ++ ++/* This function issues the specified command to the NAND device and ++ * waits for completion. */ ++static void send_cmd(struct mxc_nand_host *host, uint16_t cmd, int useirq) ++{ ++ DEBUG(MTD_DEBUG_LEVEL3, "send_cmd(host, 0x%x, %d)\n", cmd, useirq); ++ ++ writew(cmd, host->regs + NFC_FLASH_CMD); ++ writew(NFC_CMD, host->regs + NFC_CONFIG2); ++ ++ /* Wait for operation to complete */ ++ wait_op_done(host, TROP_US_DELAY, useirq); ++} ++ ++/* ++ * This function sends an address (or partial address) to the ++ * NAND device. The address is used to select the source/destination for ++ * a NAND command. ++ */ ++static void send_addr(struct mxc_nand_host *host, u16 addr) ++{ ++ DEBUG(MTD_DEBUG_LEVEL3, "send_addr(0x%x)\n", addr); ++ ++ writew(addr, host->regs + NFC_FLASH_ADDR); ++ writew(NFC_ADDR, host->regs + NFC_CONFIG2); ++ ++ /* Wait for operation to complete */ ++ wait_op_done(host, TROP_US_DELAY, 0); ++} ++ ++/* ++ * This function requests the NFC to initate the transfer ++ * of data currently in the NFC RAM buffer to the NAND device. ++ * ++ */ ++static void send_page(struct mtd_info *mtd, unsigned int ops) ++{ ++ struct nand_chip *this = mtd->priv; ++ struct mxc_nand_host *host = this->priv; ++ int bufs, i; ++ ++ if (nfc_is_v2x() && mtd->writesize > 512) ++ bufs = 4; ++ else ++ bufs = 1; ++ ++ for (i = 0; i < bufs; i++) { ++ ++ /* set ram buffer id */ ++ writew(i, host->regs + NFC_SET_RBA); ++ ++ /* transfer data from NFC ram to nand */ ++ writew(ops, host->regs + NFC_CONFIG2); ++ ++ /* Wait for operation to complete */ ++ wait_op_done(host, TROP_US_DELAY, false); ++ } ++} ++ ++/* This function requests the NANDFC to perform a read of the ++ * NAND device status and returns the current status. */ ++static uint16_t get_dev_status(struct mxc_nand_host *host) ++{ ++ uint16_t ret; ++ ++ /* Set ram buffer id */ ++ writew(1, host->regs + NFC_SET_RBA); ++ ++ /* Read status into main buffer */ ++ writew(NFC_STATUS, host->regs + NFC_CONFIG2); ++ ++ /* Wait for operation to complete */ ++ wait_op_done(host, TROP_US_DELAY, true); ++ ++ /* Status is placed in first word of main buffer */ ++ /* get status, then recovery area 1 data */ ++ ret = readw(host->main_area1); ++ ++ return ret; ++} ++ ++static void mxc_nand_hwecc(struct mxc_nand_host *host, int on) ++{ ++ unsigned int tmp; ++ ++ tmp = readw(host->regs + NFC_CONFIG1); ++ ++ if (on) ++ tmp |= NFC_ECC_EN; ++ else ++ tmp &= ~NFC_ECC_EN; ++ ++ writew(tmp, host->regs + NFC_CONFIG1); ++} ++ ++static void mxc_nand_enable_hwecc(struct mtd_info *mtd, int mode) ++{ ++ struct nand_chip *this = mtd->priv; ++ struct mxc_nand_host *host = this->priv; ++ ++ mxc_nand_hwecc(host, 1); ++ return; ++} ++ ++/* ++ * Function to correct the detected errors. This NFC corrects all the errors ++ * detected. So this function just return 0. ++ */ ++static int mxc_nand_correct_data(struct mtd_info *mtd, u_char * dat, ++ u_char * read_ecc, u_char * calc_ecc) ++{ ++ return 0; ++} ++ ++/* ++ * Function to calculate the ECC for the data to be stored in the Nand device. ++ * This NFC has a hardware RS(511,503) ECC engine together with the RS ECC ++ * CONTROL blocks are responsible for detection and correction of up to ++ * 8 symbols of 9 bits each in 528 byte page. ++ * So this function is just return 0. ++ */ ++static int mxc_nand_calculate_ecc(struct mtd_info *mtd, const u_char *dat, ++ u_char *ecc_code) ++{ ++ return 0; ++} ++ ++static uint8_t mxc_nand_read_byte(struct mtd_info *mtd) ++{ ++ struct nand_chip *this = mtd->priv; ++ struct mxc_nand_host *host = this->priv; ++ uint8_t ret; ++ ++ /* Check for status request */ ++ if (host->status_request) ++ return get_dev_status(host) & 0xff; ++ ++ ret = *(uint8_t *)(host->data_buf + host->buf_start); ++ host->buf_start++; ++ ++ return ret; ++} ++ ++static uint16_t mxc_nand_read_word(struct mtd_info *mtd) ++{ ++ struct nand_chip *nand_chip = mtd->priv; ++ struct mxc_nand_host *host = nand_chip->priv; ++ uint16_t ret; ++ ++ ret = *(uint16_t *)(host->data_buf + host->buf_start); ++ host->buf_start += 2; ++ ++ return ret; ++} ++ ++/* Write data of length len to buffer buf. The data to be ++ * written on NAND Flash is first copied to RAMbuffer. After the Data Input ++ * Operation by the NFC, the data is written to NAND Flash */ ++static void mxc_nand_write_buf(struct mtd_info *mtd, ++ const u_char *buf, int len) ++{ ++ struct nand_chip *nand_chip = mtd->priv; ++ struct mxc_nand_host *host = nand_chip->priv; ++ u16 col = host->buf_start; ++ int n = mtd->oobsize + mtd->writesize - col; ++ ++ n = min(n, len); ++ ++ memcpy(host->data_buf + col, buf, n); ++ ++ host->buf_start += n; ++} ++ ++/* Read the data buffer from the NAND Flash. To read the data from NAND ++ * Flash first the data output cycle is initiated by the NFC, which copies ++ * the data to RAMbuffer. This data of length len is then copied to buffer buf. ++ */ ++static void mxc_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len) ++{ ++ struct nand_chip *nand_chip = mtd->priv; ++ struct mxc_nand_host *host = nand_chip->priv; ++ u16 col = host->buf_start; ++ int n = mtd->oobsize + mtd->writesize - col; ++ ++ n = min(n, len); ++ ++ memcpy(buf, host->data_buf + col, len); ++ ++ host->buf_start += len; ++} ++ ++/* Used by the upper layer to verify the data in NAND Flash ++ * with the data in the buf. */ ++static int mxc_nand_verify_buf(struct mtd_info *mtd, const uint8_t *buf, ++ int len) ++{ ++ struct nand_chip *this = mtd->priv; ++ struct mxc_nand_host *host = this->priv; ++ ++ return memcmp(buf, host->data_buf, len) ? -EFAULT : 0; ++} ++ ++/* This function is used by upper layer for select and ++ * deselect of the NAND chip */ ++static void mxc_nand_select_chip(struct mtd_info *mtd, int chip) ++{ ++ struct nand_chip *nand_chip = mtd->priv; ++ struct mxc_nand_host *host = nand_chip->priv; ++ ++ switch (chip) { ++ case -1: ++ if (host->clk_enabled) { ++ clk_disable(host->clk); ++ host->clk_enabled = 0; ++ } ++ break; ++ case 0 ... 7: ++ if (!host->clk_enabled) { ++ clk_enable(host->clk); ++ host->clk_enabled = 1; ++ } ++ break; ++ ++ default: ++ break; ++ } ++} ++ ++/* ++ * Function to transfer data to/from spare area. ++ */ ++static void copy_spare(struct mtd_info *mtd, bool bfrom) ++{ ++ struct nand_chip *this = mtd->priv; ++ struct mxc_nand_host *host = this->priv; ++ u16 i, j; ++ u16 n = mtd->writesize >> 9; ++ u8 *d = host->data_buf + mtd->writesize; ++ u8 *s = host->spare0; ++ u16 t = host->spare_len; ++ ++ j = (mtd->oobsize / n >> 1) << 1; ++ ++ if (bfrom) { ++ for (i = 0; i < n - 1; i++) ++ memcpy(d + i * j, s + i * t, j); ++ ++ /* the last section */ ++ memcpy(d + i * j, s + i * t, mtd->oobsize - i * j); ++ } else { ++ for (i = 0; i < n - 1; i++) ++ memcpy(&s[i * t], &d[i * j], j); ++ ++ /* the last section */ ++ memcpy(&s[i * t], &d[i * j], mtd->oobsize - i * j); ++ } ++} ++ ++#define NFC_V2_ECC_MODE_4 (1 << 0) ++ ++#define NFC_SPAS_16 8 ++#define NFC_SPAS_64 32 ++#define NFC_SPAS_128 64 ++#define NFC_SPAS_218 109 ++#define NFC_IPC_CREQ (1 << 0) ++#define NFC_IPC_ACK (1 << 1) ++ ++/* ++ * Function to perform the address cycles. ++ */ ++static void mxc_do_addr_cycle(struct mtd_info *mtd, int column, int page_addr) ++{ ++ struct nand_chip *nand_chip = mtd->priv; ++ struct mxc_nand_host *host = nand_chip->priv; ++ ++ u32 page_mask = host->g_page_mask; ++ ++ if (column != -1) { ++ send_addr(host, column & 0xFF); ++ if (mtd->writesize == 2048) { ++ /* another col addr cycle for 2k page */ ++ send_addr(host, (column >> 8) & 0xF); ++ } else if (mtd->writesize == 4096) { ++ /* another col addr cycle for 4k page */ ++ send_addr(host, (column >> 8) & 0x1F); ++ } ++ } ++ if (page_addr != -1) { ++ do { ++ send_addr(host, (page_addr & 0xff)); ++ page_mask >>= 8; ++ page_addr >>= 8; ++ } while (page_mask != 0); ++ } ++} ++ ++/* ++ * Function to record the ECC corrected/uncorrected errors resulted ++ * after a page read. This NFC detects and corrects upto to 4 symbols ++ * of 9-bits each. ++ */ ++ ++static int mxc_check_ecc_status(struct mtd_info *mtd) ++{ ++ struct nand_chip *this = mtd->priv; ++ struct mxc_nand_host *host = this->priv; ++ u32 ecc_stat, err; ++ int no_subpages = 1; ++ int ret = 0, is_4bit_ecc = 0; ++ u8 ecc_bit_mask, err_limit; ++ ++ if (nfc_is_v21()) { ++ is_4bit_ecc = readw(host->regs + NFC_CONFIG1) & NFC_V2_ECC_MODE_4; ++ ecc_stat = readw(host->regs + NFC_ECC_STATUS_RESULT); ++ } else if (nfc_is_v2x()) { ++ is_4bit_ecc = 1; ++ ecc_stat = readw(host->regs + NFC_ECC_STATUS_RESULT); ++ } else ++ BUG(); ++ ++ ecc_bit_mask = is_4bit_ecc ? 0x7 : 0xf; ++ err_limit = is_4bit_ecc ? 0x4 : 0x8; ++ ++ no_subpages = mtd->writesize >> 9; ++ ++ do { ++ err = ecc_stat & ecc_bit_mask; ++ if (err > err_limit) { ++ mtd->ecc_stats.failed++; ++ printk(KERN_WARNING "uncorrectable RS-ECC Error\n"); ++ return -1; ++ } else { ++ ret += err; ++ } ++ ecc_stat >>= 4; ++ } while (--no_subpages); ++ ++ mtd->ecc_stats.corrected += ret; ++ pr_debug("%d Symbol Correctable RS-ECC Error\n", ret); ++ ++ return ret; ++} ++ ++/* ++ * This function reads byte from the NAND Flash ++ * ++ * @param mtd MTD structure for the NAND Flash ++ * ++ * @return data read from the NAND Flash ++ */ ++static u_char mxc_nand_read_byte16(struct mtd_info *mtd) ++{ ++ struct nand_chip *this = mtd->priv; ++ struct mxc_nand_host *host = this->priv; ++ ++ if (host->status_request) ++ return get_dev_status(host) & 0xff; ++ ++ return mxc_nand_read_word(mtd) & 0xff; ++} ++ ++/* Used by the upper layer to write command to NAND Flash for ++ * different operations to be carried out on NAND Flash */ ++static void mxc_nand_command(struct mtd_info *mtd, unsigned command, ++ int column, int page_addr) ++{ ++ struct nand_chip *nand_chip = mtd->priv; ++ struct mxc_nand_host *host = nand_chip->priv; ++ ++ DEBUG(MTD_DEBUG_LEVEL3, ++ "mxc_nand_command (cmd = 0x%x, col = 0x%x, page = 0x%x)\n", ++ command, column, page_addr); ++ ++ /* ++ * Reset command state information ++ */ ++ host->status_request = false; ++ ++ switch (command) { ++ ++ case NAND_CMD_STATUS: ++ host->buf_start = 0; ++ host->status_request = true; ++ ++ send_cmd(host, command, true); ++ mxc_do_addr_cycle(mtd, column, page_addr); ++ break; ++ ++ case NAND_CMD_READOOB: ++ command = NAND_CMD_READ0; ++ /* Fallthrough */ ++ ++ case NAND_CMD_READ0: ++ host->buf_start = column; ++ ++ send_cmd(host, command, false); ++ mxc_do_addr_cycle(mtd, column, page_addr); ++ ++ if (mtd->writesize > 512) ++ /* send read confirm command */ ++ send_cmd(host, NAND_CMD_READSTART, true); ++ ++ send_page(mtd, NFC_OUTPUT); ++ ++ memcpy(host->data_buf, host->main_area0, mtd->writesize); ++ copy_spare(mtd, true); ++ ++ break; ++ ++ case NAND_CMD_SEQIN: ++ ++ /* FIXME: before send SEQIN command for ++ * partial write,We need read one page out. ++ * FSL NFC does not support partial write ++ * It always sends out 512 + ecc + 512 + ecc ... ++ * for large page nand flash. But for small ++ * page nand flash, it did support SPARE ++ * ONLY operation. But to make driver ++ * simple. We take the same as large page,read ++ * whole page out and update. As for MLC nand ++ * NOP(num of operation) = 1. Partial written ++ * on one programed page is not allowed! We ++ * can't limit it on the driver, it need the ++ * upper layer applicaiton take care it ++ */ ++ ++ if (column) ++ mxc_nand_command(mtd, NAND_CMD_READ0, 0, page_addr); ++ ++ host->buf_start = column; ++ send_cmd(host, command, false); ++ mxc_do_addr_cycle(mtd, column, page_addr); ++ break; ++ ++ case NAND_CMD_PAGEPROG: ++ memcpy(host->main_area0, host->data_buf, mtd->writesize); ++ copy_spare(mtd, false); ++ ++ send_page(mtd, NFC_INPUT); ++ ++ send_cmd(host, command, true); ++ mxc_do_addr_cycle(mtd, column, page_addr); ++ break; ++ ++ case NAND_CMD_ERASE1: ++ case NAND_CMD_ERASE2: ++ send_cmd(host, command, false); ++ mxc_do_addr_cycle(mtd, column, page_addr); ++ break; ++ ++ case NAND_CMD_READID: ++ send_cmd(host, command, true); ++ mxc_do_addr_cycle(mtd, column, page_addr); ++ /* Set RBA bits for BUFFER0 */ ++ writew(0, host->regs + NFC_SET_RBA); ++ ++ /* Read ID into main buffer */ ++ writew(NFC_ID, host->regs + NFC_CONFIG2); ++ ++ wait_op_done(host, TROP_US_DELAY, true); ++ host->buf_start = column; ++ memcpy(host->data_buf, host->main_area0, 2048); ++ break; ++ ++ case NAND_CMD_RESET: ++ send_cmd(host, command, true); ++ mxc_do_addr_cycle(mtd, column, page_addr); ++ break; ++ } ++} ++ ++static int mxc_nand_read_oob(struct mtd_info *mtd, ++ struct nand_chip *chip, int page, int sndcmd) ++{ ++ struct nand_chip *this = mtd->priv; ++ struct mxc_nand_host *host = this->priv; ++ ++ if (sndcmd) { ++ chip->cmdfunc(mtd, NAND_CMD_READOOB, 0x00, page); ++ sndcmd = 0; ++ } ++ ++ memcpy(chip->oob_poi, host->data_buf + mtd->writesize, mtd->oobsize); ++ ++ return sndcmd; ++} ++ ++static int mxc_nand_read_page(struct mtd_info *mtd, struct nand_chip *chip, ++ uint8_t *buf) ++{ ++ struct nand_chip *this = mtd->priv; ++ struct mxc_nand_host *host = this->priv; ++ ++ mxc_check_ecc_status(mtd); ++ ++ memcpy(buf, host->data_buf, mtd->writesize); ++ memcpy(chip->oob_poi, host->data_buf + mtd->writesize, mtd->oobsize); ++ ++ return 0; ++} ++ ++static void mxc_nand_write_page(struct mtd_info *mtd, struct nand_chip *chip, ++ const uint8_t *buf) ++{ ++ struct nand_chip *this = mtd->priv; ++ struct mxc_nand_host *host = this->priv; ++ ++ memcpy(host->data_buf, buf, mtd->writesize); ++ memcpy(host->data_buf + mtd->writesize, chip->oob_poi, mtd->oobsize); ++} ++ ++/* Define some generic bad / good block scan pattern which are used ++ * while scanning a device for factory marked good / bad blocks. */ ++static uint8_t scan_ff_pattern[] = { 0xff, 0xff }; ++ ++static struct nand_bbt_descr smallpage_memorybased = { ++ .options = NAND_BBT_SCAN2NDPAGE, ++ .offs = 5, ++ .len = 1, ++ .pattern = scan_ff_pattern ++}; ++ ++static struct nand_bbt_descr largepage_memorybased = { ++ .options = 0, ++ .offs = 0, ++ .len = 2, ++ .pattern = scan_ff_pattern ++}; ++ ++/* Generic flash bbt decriptors ++*/ ++static uint8_t bbt_pattern[] = { 'B', 'b', 't', '0' }; ++static uint8_t mirror_pattern[] = { '1', 't', 'b', 'B' }; ++ ++static struct nand_bbt_descr bbt_main_descr = { ++ .options = NAND_BBT_LASTBLOCK | NAND_BBT_CREATE | NAND_BBT_WRITE ++ | NAND_BBT_2BIT | NAND_BBT_VERSION | NAND_BBT_PERCHIP, ++ .offs = 0, ++ .len = 4, ++ .veroffs = 4, ++ .maxblocks = 4, ++ .pattern = bbt_pattern ++}; ++ ++static struct nand_bbt_descr bbt_mirror_descr = { ++ .options = NAND_BBT_LASTBLOCK | NAND_BBT_CREATE | NAND_BBT_WRITE ++ | NAND_BBT_2BIT | NAND_BBT_VERSION | NAND_BBT_PERCHIP, ++ .offs = 0, ++ .len = 4, ++ .veroffs = 4, ++ .maxblocks = 4, ++ .pattern = mirror_pattern ++}; ++ ++static void mxc_set_nfms_v21(struct mtd_info *mtd, unsigned int val) ++{ ++ struct nand_chip *this = mtd->priv; ++ struct mxc_nand_host *host = this->priv; ++ unsigned int spas, tmp; ++ ++// NFMS |= val; /* FIXME */ ++ ++ if (val & (1 << NFMS_NF_PG_SZ)) { ++ if (mtd->writesize == 2048) ++ spas = NFC_SPAS_64; ++ else if (mtd->writesize == 4096) ++ spas = NFC_SPAS_128; ++ else ++ spas = NFC_SPAS_16; ++ ++ tmp = readw(host->regs + NFC_CONFIG1); ++ tmp |= NFC_V2_ECC_MODE_4; ++ writew(tmp, host->regs + NFC_CONFIG1); ++ ++ tmp = readw(host->regs + NFC_V21_SPAS); ++ tmp &= NFC_V21_SPAS_MASK; ++ tmp |= spas << NFC_V21_SPAS_SHIFT; ++ writew(tmp, host->regs + NFC_V21_SPAS); ++ } ++} ++ ++static void mxc_set_nfms(struct mtd_info *mtd, unsigned int val) ++{ ++ if (nfc_is_v21()) ++ mxc_set_nfms_v21(mtd, val); ++} ++ ++static int mxc_nand_scan_bbt(struct mtd_info *mtd) ++{ ++ struct nand_chip *this = mtd->priv; ++ struct mxc_nand_host *host = this->priv; ++ ++ host->g_page_mask = this->pagemask; ++ ++ if (mtd->writesize == 2048) { ++ mxc_set_nfms(mtd, 1 << NFMS_NF_PG_SZ); ++ this->ecc.layout = &nand_hw_eccoob_2k; ++ } else if (mtd->writesize == 4096) { ++ mxc_set_nfms(mtd, 1 << NFMS_NF_PG_SZ); ++ this->ecc.layout = &nand_hw_eccoob_4k; ++ } else { ++ this->ecc.layout = &nand_hw_eccoob_512; ++ } ++ ++ /* propagate ecc.layout to mtd_info */ ++ mtd->ecclayout = this->ecc.layout; ++ ++ /* use flash based bbt */ ++ this->bbt_td = &bbt_main_descr; ++ this->bbt_md = &bbt_mirror_descr; ++ ++ /* update flash based bbt */ ++ this->options |= NAND_USE_FLASH_BBT; ++ ++ if (!this->badblock_pattern) { ++ this->badblock_pattern = (mtd->writesize > 512) ? ++ &largepage_memorybased : &smallpage_memorybased; ++ } ++ ++ /* Build bad block table */ ++ return nand_scan_bbt(mtd, this->badblock_pattern); ++} ++ ++static void unlock_addr(struct mxc_nand_host *host, unsigned int start_addr, unsigned int end_addr) ++{ ++ if (nfc_is_v21()) { ++ writew(start_addr, host->regs + NFC_V21_UNLOCKSTART_BLKADDR); ++ writew(end_addr, host->regs + NFC_V21_UNLOCKEND_BLKADDR); ++ } else if (nfc_is_v2x()) { ++ writew(start_addr, host->regs + NFC_V1_UNLOCKSTART_BLKADDR); ++ writew(end_addr, host->regs + NFC_V1_UNLOCKEND_BLKADDR); ++ } else ++ BUG(); ++} ++ ++static int __init mxcnd_probe(struct platform_device *pdev) ++{ ++ struct nand_chip *this; ++ struct mtd_info *mtd; ++ struct mxc_nand_platform_data *pdata = pdev->dev.platform_data; ++ struct mxc_nand_host *host; ++ int nr_parts = 0, err = 0; ++ struct resource *res; ++ ++ /* Allocate memory for MTD device structure and private data */ ++ host = kzalloc(sizeof(*host) + NAND_MAX_PAGESIZE + NAND_MAX_OOBSIZE, GFP_KERNEL); ++ if (!host) ++ return -ENOMEM; ++ ++ host->data_buf = (uint8_t *)(host + 1); ++ ++ host->dev = &pdev->dev; ++ ++ this = &host->nand; ++ mtd = &host->mtd; ++ mtd->priv = this; ++ mtd->owner = THIS_MODULE; ++ mtd->name = "mxc_nand"; ++ ++ this->priv = host; ++ this->cmdfunc = mxc_nand_command; ++ this->select_chip = mxc_nand_select_chip; ++ this->read_byte = mxc_nand_read_byte; ++ this->read_word = mxc_nand_read_word; ++ this->write_buf = mxc_nand_write_buf; ++ this->read_buf = mxc_nand_read_buf; ++ this->verify_buf = mxc_nand_verify_buf; ++ this->scan_bbt = mxc_nand_scan_bbt; ++ ++ host->clk = clk_get(&pdev->dev, "nfc_clk"); ++ if (IS_ERR(host->clk)) { ++ err = PTR_ERR(host->clk); ++ goto eclk; ++ } ++ ++ res = platform_get_resource(pdev, IORESOURCE_MEM, 0); ++ if (!res) { ++ err = -ENODEV; ++ goto eres; ++ } ++ ++ host->base = ioremap(res->start, resource_size(res)); ++ if (!host->base) { ++ err = -EIO; ++ goto eres; ++ } ++ ++ host->main_area0 = host->base; ++ host->main_area1 = host->base + 0x200; ++ ++ if (nfc_is_v21()) { ++ host->regs = host->base + 0x1000; ++ host->spare0 = host->base + 0x1000; ++ host->spare_size = 64 * 8; ++ host->spare_len = 64; ++ } else if (nfc_is_v2x()) { ++ host->regs = host->base; ++ host->spare0 = host->base + 0x800; ++ host->spare_size = 16 * 4; ++ host->spare_len = 16; ++ } else ++ BUG(); ++ ++ /* NAND bus width determines access funtions used by upper layer */ ++ if (pdata->width == 2) { ++ this->read_byte = mxc_nand_read_byte16; ++ this->options |= NAND_BUSWIDTH_16; ++ mxc_set_nfms(mtd, 1 << NFMS_NF_DWIDTH); ++ } ++ ++ init_waitqueue_head(&host->irq_waitq); ++ ++ host->irq = platform_get_irq(pdev, 0); ++ ++ err = request_irq(host->irq, mxc_nfc_irq, 0, "mxc_nd", host); ++ if (err) ++ goto eirq; ++ ++ if (pdata->hw_ecc) { ++ this->ecc.read_page = mxc_nand_read_page; ++ this->ecc.write_page = mxc_nand_write_page; ++ this->ecc.read_oob = mxc_nand_read_oob; ++ this->ecc.layout = &nand_hw_eccoob_512; ++ this->ecc.calculate = mxc_nand_calculate_ecc; ++ this->ecc.hwctl = mxc_nand_enable_hwecc; ++ this->ecc.correct = mxc_nand_correct_data; ++ this->ecc.mode = NAND_ECC_HW; ++ this->ecc.size = 512; ++ this->ecc.bytes = 9; ++ mxc_nand_hwecc(host, 1); ++ } else { ++ this->ecc.mode = NAND_ECC_SOFT; ++ mxc_nand_hwecc(host, 0); ++ } ++ ++ clk_enable(host->clk); ++ ++ /* Disable interrupt */ ++ writew(readw(host->regs + NFC_CONFIG1) | NFC_INT_MSK, host->regs + NFC_CONFIG1); ++ ++ /* disable spare enable */ ++ writew(readw(host->regs + NFC_CONFIG1) & ~NFC_V2_SP_EN, host->regs + NFC_CONFIG1); ++ ++ /* Unlock the internal RAM Buffer */ ++ writew(NFC_V2_BLS_UNLOCKED, host->regs + NFC_BLS); ++ ++ /* Blocks to be unlocked */ ++ unlock_addr(host, 0x0, 0xFFFF); ++ ++ /* Unlock Block Command for given address range */ ++ writew(NFC_WPC_UNLOCK, host->regs + NFC_WR_PROT); ++ ++ clk_disable(host->clk); ++ ++ /* Scan to find existence of the device */ ++ if (nand_scan(mtd, 1)) { ++ DEBUG(MTD_DEBUG_LEVEL0, ++ "MXC_ND2: Unable to find any NAND device.\n"); ++ err = -ENXIO; ++ goto escan; ++ } ++ ++ /* Register the partitions */ ++#ifdef CONFIG_MTD_PARTITIONS ++ nr_parts = ++ parse_mtd_partitions(mtd, part_probes, &host->parts, 0); ++ if (nr_parts > 0) ++ add_mtd_partitions(mtd, host->parts, nr_parts); ++ else ++#endif ++ { ++ pr_info("Registering %s as whole device\n", mtd->name); ++ add_mtd_device(mtd); ++ } ++ ++ platform_set_drvdata(pdev, mtd); ++ ++ return 0; ++ ++escan: ++ free_irq(host->irq, NULL); ++eirq: ++ iounmap(host->regs); ++eres: ++ clk_put(host->clk); ++eclk: ++ kfree(host); ++ ++ return err; ++ ++} ++ ++static int __exit mxcnd_remove(struct platform_device *pdev) ++{ ++ struct mtd_info *mtd = platform_get_drvdata(pdev); ++ struct nand_chip *this = mtd->priv; ++ struct mxc_nand_host *host = this->priv; ++ ++ clk_disable(host->clk); ++ clk_put(host->clk); ++ platform_set_drvdata(pdev, NULL); ++ ++ nand_release(mtd); ++ free_irq(host->irq, NULL); ++ kfree(host); ++ ++ return 0; ++} ++ ++#ifdef CONFIG_PM ++static int mxcnd_suspend(struct platform_device *pdev, pm_message_t state) ++{ ++ struct mtd_info *mtd = platform_get_drvdata(pdev); ++ struct nand_chip *this = mtd->priv; ++ struct mxc_nand_host *host = this->priv; ++ int ret = 0; ++ ++ if (mtd) ++ ret = mtd->suspend(mtd); ++ ++ /* Disable the NFC clock */ ++ clk_disable(host->clk); ++ ++ return ret; ++} ++ ++static int mxcnd_resume(struct platform_device *pdev) ++{ ++ struct mtd_info *mtd = platform_get_drvdata(pdev); ++ struct nand_chip *this = mtd->priv; ++ struct mxc_nand_host *host = this->priv; ++ ++ /* Enable the NFC clock */ ++ clk_enable(host->clk); ++ ++ if (mtd) ++ mtd->resume(mtd); ++ ++ return 0; ++} ++ ++#else ++#define mxcnd_suspend NULL ++#define mxcnd_resume NULL ++#endif /* CONFIG_PM */ ++ ++static struct platform_driver mxcnd_driver = { ++ .driver = { ++ .name = "mxc_nand", ++ }, ++ .probe = mxcnd_probe, ++ .remove = __exit_p(mxcnd_remove), ++ .suspend = mxcnd_suspend, ++ .resume = mxcnd_resume, ++}; ++ ++static int __init mxc_nd_init(void) ++{ ++ /* Register the device driver structure. */ ++ pr_info("MXC MTD nand Driver\n"); ++ if (platform_driver_register(&mxcnd_driver) != 0) { ++ printk(KERN_ERR "Driver register failed for mxcnd_driver\n"); ++ return -ENODEV; ++ } ++ return 0; ++} ++ ++static void __exit mxc_nd_cleanup(void) ++{ ++ /* Unregister the device structure */ ++ platform_driver_unregister(&mxcnd_driver); ++} ++ ++module_init(mxc_nd_init); ++module_exit(mxc_nd_cleanup); ++ ++MODULE_AUTHOR("Freescale Semiconductor, Inc."); ++MODULE_DESCRIPTION("MXC NAND MTD driver"); ++MODULE_LICENSE("GPL");
recipes/linux/linux-2.6.31/pcm043/0001-spi-add-SPI-driver-for-most-known-i.MX-SoCs.patch new file +2337 -0
1,870 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0002-MXC-NFC-Remove-useless-structure-member.patch new file +45 -0
45 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0002-mfd-Add-Freescale-MC13783-driver.patch new file +984 -0
984 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0002-mxc_nand-cleanup-eccoob-descriptions.patch new file +111 -0
111 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0003-MXC-NFC-Add-a-real-NAND-flash-data-width-setup-func.patch new file +51 -0
51 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0003-mx3-Add-SSI-pins-to-iomux-table.patch new file +48 -0
48 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0003-mxc_nand-cleanup-initialization.patch new file +124 -0
124 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0004-MXC-NFC-Use-generic-bad-block-detection.patch new file +148 -0
148 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0004-mxc-iomux-v3-remove-resource-handling.patch new file +111 -0
111 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0004-mxc_nand-merge-send_read_page-and-send_prog_page.patch new file +104 -0
104 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0005-MXC-NFC-Divide-flash-device-detection-into-two-step.patch new file +48 -0
48 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0005-i.MX31-clock-rename-SSI-clocks-to-driver-name.patch new file +28 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/0005-mxc_nand-introduce-mxc_do_addr_cycle.patch new file +122 -0
122 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0006-MXC-NFC-Reorder-structure-setup-to-use-NAND-informa.patch new file +129 -0
129 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0006-i.MX2-Add-sound-ssi-resources.patch new file +132 -0
132 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0006-mxc-nand-remove-debug-param.patch new file +82 -0
82 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0007-MXC-NFC-Fix-OOB-layout.patch new file +104 -0
104 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0007-i.MX3-Add-sound-ssi-resources.patch new file +101 -0
101 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0007-mxc-nand-remove-dead-code.patch new file +41 -0
41 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0008-MXC-Add-a-digital-audio-multiplexer-driver.patch new file +281 -0
281 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0008-MXC-NFC-The-i.MX35-CPU-also-uses-a-V2.1-NFC.patch new file +26 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/0008-mxc-nand-use-resource_size.patch new file +26 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/0009-MX31-Fix-spi-clock-names.patch new file +32 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/0009-MXC-NFC-Fix-NFC-s-address-area-on-i.MX35.patch new file +28 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/0009-mxc-nand-use-buffers.patch new file +473 -0
473 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0010-MXC-NFC-Add-the-clock-resource-to-support-NFC-in-i.patch new file +61 -0
61 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0010-i.MX35-Fix-audmux-clock.patch new file +52 -0
52 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0010-mxc-nand-simplify-command-processing.patch new file +143 -0
143 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0011-MX31-add-spi-controller-devices-resources.patch new file +97 -0
97 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0011-MXC-NFC-Fix-NFC-s-clock-name.patch new file +28 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/0011-mxc-nand-modify-send_page-to-send-all-pages-not-on.patch new file +87 -0
87 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0012-MXC-NFC-i.MX35-can-work-with-the-v2-not-with-v1-of.patch new file +34 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/0012-i.MX27-clock-rename-spi-clocks-to-match-device.patch new file +30 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/0012-mxc_nand-remove-unused-defines.patch new file +31 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/0013-MXC-NFC-Add-the-cpu_is_mx25-macro.patch new file +38 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/0013-add-a-mc13783-codec-driver.patch new file +834 -0
834 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0013-mxc_nand-Make-main-spare-areas-runtime-configurable.patch new file +142 -0
142 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0014-MXC-NFC-Add-NAND-device-to-the-pcm043-platform.patch new file +47 -0
47 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0014-imx-ssi-sound-driver.patch new file +1911 -0
1,911 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0014-mxc_nand-Get-rid-of-pagesize_2k-flag.patch new file +128 -0
128 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0015-MXC-NFC-unlock_addr-is-only-used-while-__init-pha.patch new file +28 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/0015-add-phycore-ac97-sound-support.patch new file +140 -0
140 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0015-mxc_nand-Add-NFC-V2-support.patch new file +191 -0
191 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0016-add-phycore-mc13783-sound-support.patch new file +211 -0
211 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0016-mxc_nand-disable-sp_en-bit-only-once.patch new file +66 -0
66 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0017-mxc_nand-Allow-flash-based-bbt.patch new file +79 -0
79 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0017-pcm043-add-sound-support.patch new file +161 -0
161 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0018-mxc_nand-remove-TROP_US_DELAY.patch new file +88 -0
88 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0018-pcm038-Add-SPI-MC13783-support.patch new file +146 -0
146 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0019-mx27-add-support-for-phytec-pca100-phyCARD-s-board.patch new file +293 -0
293 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0019-mxc_nand-use-DRIVER_NAME-where-appropriate.patch new file +35 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/0020-MX2-Add-SPI-devices-resources.patch new file +92 -0
92 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0021-Early-printk.patch new file +106 -0
106 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0021-mxc-mx1-mx2-DMA-add-a-possibility-to-create-an-endle.patch new file +50 -0
50 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0022-ASoC-Allow-32-bit-registers-for-DAPM.patch new file +203 -0
203 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0023-pca100-add-sound-support.patch new file +99 -0
99 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0024-MX31-Clock-updates.patch new file +40 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/0024-pcm038-add-sound-support.patch new file +72 -0
72 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0025-pcm037-Add-sound-support.patch new file +144 -0
144 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0026-imx-ssi-Fix-AC97-rates.patch new file +37 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/0027-Add-EHCI-support-for-MX27-and-MX31-based-boards.patch new file +347 -0
347 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0027-imx-ssi-flush-fifos.patch new file +29 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/0028-imx-ssi-Fix-occasional-AC97-reset-failure.patch new file +37 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/0029-MX31-Add-USB-platform-devices-and-resources.patch new file +100 -0
100 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0053-Watchdog-driver-for-IMX-MXC.patch new file +490 -0
490 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0066-HACK-increase-default-tx_queue_len-to-10000.patch new file +36 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/0084-i.MX35-clock-support-Add-USB-clocks.patch new file +30 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/0088-ehci-mxc-Fix-clocks.patch new file +33 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/0090-mx3x-Fixup-USB-base-addresses.patch new file +93 -0
93 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0091-mx31-clock-remove-obsolete-FIXME-comment.patch new file +25 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/0092-mx35-clock-give-ehci-clocks-names.patch new file +30 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/0096-i.MX35-implement-get_rate-for-usb-otg-clock.patch new file +54 -0
54 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/0097-fsl-udc-driver-add-mx35-support.patch new file +83 -0
83 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/Update-PCM043-board-support.patch new file +134 -0
134 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/add-led-gpio.patch new file +17 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/add_mmc.diff new file +1396 -0
1,396 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/fix_can.patch new file +16 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/fix_clock_calc.patch new file +27 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/fix_max7301.patch new file +28 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/fix_mmc_for_highspeed.diff new file +63 -0
63 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/fix_oob_layout.diff new file +67 -0
67 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/fix_owire_clk.patch new file +17 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux-2.6.31/pcm043/linux-2.6.31.6-flexcan.patch new file +2168 -0
2,168 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/linux-2.6.31.6-spi.patch new file +116 -0
116 lines not on this page · raw message
recipes/linux/linux-2.6.31/pcm043/w1_master.patch new file +26 -0
Lines of this file are not shown. View the raw message.
recipes/linux/linux/pcm043/defconfig new file +1659 -0
1,659 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.3.4
Part of the diff is not shown here. View the raw message.
Hi Jan,
Quoted 13 lines
recipes/clutter/clutter.inc +5
-0+DEPENDS_pcm043 = "${STDDEPENDS} libgles-mx31 tslib" +EXTRA_OECONF_pcm043 = "${BASE_CONF} --with-flavour=eglnative" +PACKAGE_ARCH_pcm043 = "${MACHINE_ARCH}" +LDFLAGS_append_pcm043 = " -lpvrNULLWSEGL -lstdc++ " + INC_PR = "r3" inherit autotools pkgconfig gtk-doc(quoted diff) +0
-0b/recipes/images/illume-image.bb index 7e16c93..e01ef27 100644
recipes/images/illume-image.bb GLES_INSTALL_append_omap3evm = "libgles-omap3" · line 125
Quoted 4 lines
recipes/images/illume-image.bb +1
-0@@ -122,6 +122,7 @@ GLES_INSTALL_append_omap3evm = "libgles-omap3" #GLES_INSTALL_append_overo = "libgles-omap3" GLES_INSTALL_append_mx31ads = "libgles-mx31" GLES_INSTALL_append_mx31litekit = "libgles-mx31" +GLES_INSTALL_append_pcm043 = "libgles-mx31"
Where can I find the recipe for libgles-mx31?
Cheers
Marc
(Apologies for not being able to add constructive feedback for your patches - but I wouldn't know it they are correct or not :) )
Hi Marc,
1. I have not found a libgles-mx31 either.
This seems to provide the binary openGL ES library for the i.MX31, like libgles-omap3 for the beagleboard.
I have derived the BSP for the pcm043 from the BSP of mx31ads and I copied these definitions too. This seems to be also a problem of mx31ads.
The i.MX31 has a MBX R-S 3D Graphics Core.
2. Before I have released the patch, I have built with bitbake the minimal-image, opie-image, x11-gpe-image and the xfce46-image for the pcm043 machine and tested it on the board for a short time. It is described here:
http://en.gentoo-wiki.com/wiki/Phytec_phyCORE-iMX35/Openembedded
All these images don't use the libgles-mx31. Only when I try to build the illume-image, bitbake reports a missing libgles-mx31.
3. The i.MX35 has an embedded 2D and vector graphics accelerator targeting the OpenVG 1.1 graphics API and feature set. The libgles-mx31 is for a different GPU. The i.MX35 doesn't need the libgles-mx31.
I have already tried a new patch, where libgles-mx31 is not used, but I could not build illume-image successfully. It got stuck somewhere else.
I would like to be able to prove that a patch is working on my board, before I release it.
4. Are you trying to create an image, where libgles-mx31 is missing?
Best regards
Jan
Hi Jan,
Quoted 1 line
1. I have not found a libgles-mx31 either.
Google doesn't say much about it. From memory (1 day ago :| ) the related posts were quite old, and it was mainly just wrapping up libs, headers and precompiled modules that freescale supplied..
Quoted 7 lines
This seems to provide the binary openGL ES library for the i.MX31, like libgles-omap3 for the beagleboard.
3. The i.MX35 has an embedded 2D and vector graphics accelerator targeting the OpenVG 1.1 graphics API and feature set. The libgles-mx31 is for a different GPU. The i.MX35 doesn't need the libgles-mx31.
I was hoping to look at the libgles recipe and do something similar with the OpenVG stuff..
Quoted 2 lines
4. Are you trying to create an image, where libgles-mx31 is missing?
No, but video playback is quite slow, so I was looking for a cheap fix to speed it up :)
Cheers
Marc
Hi Marc,
Quoted 10 lines
I was hoping to look at the libgles recipe and do something similar with the OpenVG stuff..
Quoted 2 lines
4. Are you trying to create an image, where libgles-mx31 is missing?
No, but video playback is quite slow, so I was looking for a cheap fix to speed it up :)
I have searched on the web page of Freescale and have found this:
MBX’s OpenGL/Open VG v3.4 driver for Linux 2.6.24
http://cache.freescale.com/files/microcontrollers/software/device_drivers/BIN_MBX3.4_OpenGL_VG_DRV_LNX.tar.gz
AN3975 : i.MX35 Accelerated 2D Graphics
This application note describes optimizing 2D graphics with OpenVG™ and i.MX35.
http://cache.freescale.com/files/dsp/doc/app_note/AN3975.pdf
I don't have time to test it right now.
Best regards
Jan
Hi Jan, Marc,
Quoted 6 lines · Jan Kobler
Quoted 6 lines
I was hoping to look at the libgles recipe and do something similar with the OpenVG stuff..
Quoted 2 lines
4. Are you trying to create an image, where libgles-mx31 is missing?
Quoted 9 lines
Quoted 3 lines
No, but video playback is quite slow, so I was looking for a cheap fix to speed it up :)
I have searched on the web page of Freescale and have found this:
MBX’s OpenGL/Open VG v3.4 driver for Linux 2.6.24
http://cache.freescale.com/files/microcontrollers/software/device_drivers/BIN_MBX3.4_OpenGL_VG_DRV_LNX.tar.gz
this one is not for ARM but for MPC5121 (ppc).
Eric