LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH v2] Add support for the digsy MTC board.
From: Grant Likely @ 2009-02-02 19:26 UTC (permalink / raw)
  To: Grzegorz Bernacki; +Cc: linuxppc-dev
In-Reply-To: <12335905121539-git-send-email-gjb@semihalf.com>

Hey Grzegorz,

I've pulled your patch into my -next tree, but I made a few changes first:
- I dropped the defconfig changes because they conflict with the
defconfig update that Ben just pulled from me
- I updated the .dts file to reflect changes I was already making to
all the other .dts files
- I added the digsy-mtc board to the Kconfig documentation.

I've pushed my whole queue of changes out to my -next tree.  Please
pull it down and try it out.  (Note, this tree will get rebased at
least once before I ask Ben to pull it, so be aware).  Make sure that
I haven't broken your .dts file.  To get the defconfig change in, you
can either send me another patch with just the defconfig change, or
you can pop my version of your patch off the top of my -next tree and
rebase your entire patch on top it.  Whatever you prefer.

One more note; the new digsy-mtc.dts file from my tree will probably
not work with older kernels.  Kernels need to be backward compatible
with older .dts files, but the same is not true for the other way
around.

Here's my -next tree:

git://git.secretlab.ca/git/linux-2.6-mpc52xx next

On Mon, Feb 2, 2009 at 9:01 AM, Grzegorz Bernacki <gjb@semihalf.com> wrote:
> This is the InterControl custom device based on the MPC5200B chip.
>
> Signed-off-by: Grzegorz Bernacki <gjb@semihalf.com>
> ---
> Version 2:
>  - change name in DTS and remove unnecessary fields
>  - use mpc5200_simple.c file instead of dedicated file for digsy_mtc
>  - update mpc5200_defconfig:
>  - add support for RTC (ds1339)
>  - add support for LXT PHY
>  - add support for eeprom AT24
>  - add support for MTD partitioning based on OF description
>  - some updates automatically generated by 'make menuconfig'
>
>  arch/powerpc/boot/dts/digsy_mtc.dts          |  278 ++++++++++++++++++++++++++
>  arch/powerpc/configs/mpc5200_defconfig       |  176 +++++++++++++---
>  arch/powerpc/platforms/52xx/mpc5200_simple.c |    1 +
>  3 files changed, 423 insertions(+), 32 deletions(-)
>  create mode 100644 arch/powerpc/boot/dts/digsy_mtc.dts
>
> diff --git a/arch/powerpc/boot/dts/digsy_mtc.dts b/arch/powerpc/boot/dts/digsy_mtc.dts
> new file mode 100644
> index 0000000..9c76c38
> --- /dev/null
> +++ b/arch/powerpc/boot/dts/digsy_mtc.dts
> @@ -0,0 +1,278 @@
> +/*
> + * Digsy MTC board Device Tree Source
> + *
> + * Copyright (C) 2009 Semihalf
> + *
> + * Based on the CM5200 by M. Balakowicz
> + *
> + * 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.
> + */
> +
> +/dts-v1/;
> +
> +/ {
> +       model = "intercontrol,digsy-mtc";
> +       compatible = "intercontrol,digsy-mtc";
> +       #address-cells = <1>;
> +       #size-cells = <1>;
> +
> +       cpus {
> +               #address-cells = <1>;
> +               #size-cells = <0>;
> +
> +               PowerPC,5200@0 {
> +                       device_type = "cpu";
> +                       reg = <0>;
> +                       d-cache-line-size = <32>;
> +                       i-cache-line-size = <32>;
> +                       d-cache-size = <0x4000>;                // L1, 16K
> +                       i-cache-size = <0x4000>;                // L1, 16K
> +                       timebase-frequency = <0>;       // from bootloader
> +                       bus-frequency = <0>;            // from bootloader
> +                       clock-frequency = <0>;          // from bootloader
> +               };
> +       };
> +
> +       memory {
> +               device_type = "memory";
> +               reg = <0x00000000 0x02000000>;  // 32MB
> +       };
> +
> +       soc5200@f0000000 {
> +               #address-cells = <1>;
> +               #size-cells = <1>;
> +               compatible = "fsl,mpc5200b-immr";
> +               ranges = <0 0xf0000000 0x0000c000>;
> +               reg = <0xf0000000 0x00000100>;
> +               bus-frequency = <0>;            // from bootloader
> +               system-frequency = <0>;         // from bootloader
> +
> +               cdm@200 {
> +                       compatible = "fsl,mpc5200b-cdm","fsl,mpc5200-cdm";
> +                       reg = <0x200 0x38>;
> +               };
> +
> +               mpc5200_pic: interrupt-controller@500 {
> +                       // 5200 interrupts are encoded into two levels;
> +                       interrupt-controller;
> +                       #interrupt-cells = <3>;
> +                       compatible = "fsl,mpc5200b-pic","fsl,mpc5200-pic";
> +                       reg = <0x500 0x80>;
> +               };
> +
> +               timer@600 {     // General Purpose Timer
> +                       compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
> +                       reg = <0x600 0x10>;
> +                       interrupts = <1 9 0>;
> +                       interrupt-parent = <&mpc5200_pic>;
> +                       fsl,has-wdt;
> +               };
> +
> +               timer@610 {     // General Purpose Timer
> +                       compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
> +                       reg = <0x610 0x10>;
> +                       interrupts = <1 10 0>;
> +                       interrupt-parent = <&mpc5200_pic>;
> +               };
> +
> +               timer@620 {     // General Purpose Timer
> +                       compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
> +                       reg = <0x620 0x10>;
> +                       interrupts = <1 11 0>;
> +                       interrupt-parent = <&mpc5200_pic>;
> +               };
> +
> +               timer@630 {     // General Purpose Timer
> +                       compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
> +                       reg = <0x630 0x10>;
> +                       interrupts = <1 12 0>;
> +                       interrupt-parent = <&mpc5200_pic>;
> +               };
> +
> +               timer@640 {     // General Purpose Timer
> +                       compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
> +                       reg = <0x640 0x10>;
> +                       interrupts = <1 13 0>;
> +                       interrupt-parent = <&mpc5200_pic>;
> +               };
> +
> +               timer@650 {     // General Purpose Timer
> +                       compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
> +                       reg = <0x650 0x10>;
> +                       interrupts = <1 14 0>;
> +                       interrupt-parent = <&mpc5200_pic>;
> +               };
> +
> +               timer@660 {     // General Purpose Timer
> +                       compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
> +                       reg = <0x660 0x10>;
> +                       interrupts = <1 15 0>;
> +                       interrupt-parent = <&mpc5200_pic>;
> +               };
> +
> +               timer@670 {     // General Purpose Timer
> +                       compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
> +                       reg = <0x670 0x10>;
> +                       interrupts = <1 16 0>;
> +                       interrupt-parent = <&mpc5200_pic>;
> +               };
> +
> +               gpio@b00 {
> +                       compatible = "fsl,mpc5200b-gpio","fsl,mpc5200-gpio";
> +                       reg = <0xb00 0x40>;
> +                       interrupts = <1 7 0>;
> +                       interrupt-parent = <&mpc5200_pic>;
> +               };
> +
> +               gpio@c00 {
> +                       compatible = "fsl,mpc5200b-gpio-wkup","fsl,mpc5200-gpio-wkup";
> +                       reg = <0xc00 0x40>;
> +                       interrupts = <1 8 0 0 3 0>;
> +                       interrupt-parent = <&mpc5200_pic>;
> +               };
> +
> +               spi@f00 {
> +                       compatible = "fsl,mpc5200b-spi","fsl,mpc5200-spi";
> +                       reg = <0xf00 0x20>;
> +                       interrupts = <2 13 0 2 14 0>;
> +                       interrupt-parent = <&mpc5200_pic>;
> +               };
> +
> +               usb@1000 {
> +                       compatible = "fsl,mpc5200b-ohci","fsl,mpc5200-ohci","ohci-be";
> +                       reg = <0x1000 0xff>;
> +                       interrupts = <2 6 0>;
> +                       interrupt-parent = <&mpc5200_pic>;
> +               };
> +
> +               dma-controller@1200 {
> +                       device_type = "dma-controller";
> +                       compatible = "fsl,mpc5200b-bestcomm","fsl,mpc5200-bestcomm";
> +                       reg = <0x1200 0x80>;
> +                       interrupts = <3 0 0  3 1 0  3 2 0  3 3 0
> +                                     3 4 0  3 5 0  3 6 0  3 7 0
> +                                     3 8 0  3 9 0  3 10 0  3 11 0
> +                                     3 12 0  3 13 0  3 14 0  3 15 0>;
> +                       interrupt-parent = <&mpc5200_pic>;
> +               };
> +
> +               xlb@1f00 {
> +                       compatible = "fsl,mpc5200b-xlb","fsl,mpc5200-xlb";
> +                       reg = <0x1f00 0x100>;
> +               };
> +
> +               serial@2400 {           // PSC3
> +                       device_type = "serial";
> +                       compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
> +                       cell-index = <2>;
> +                       reg = <0x2400 0x100>;
> +                       interrupts = <2 3 0>;
> +                       interrupt-parent = <&mpc5200_pic>;
> +               };
> +
> +               serial@2600 {           // PSC4
> +                       device_type = "serial";
> +                       compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
> +                       cell-index = <3>;
> +                       reg = <0x2600 0x100>;
> +                       interrupts = <2 11 0>;
> +                       interrupt-parent = <&mpc5200_pic>;
> +               };
> +
> +               ethernet@3000 {
> +                       device_type = "network";
> +                       compatible = "fsl,mpc5200b-fec","fsl,mpc5200-fec";
> +                       reg = <0x3000 0x400>;
> +                       local-mac-address = [ 00 00 00 00 00 00 ];
> +                       interrupts = <2 5 0>;
> +                       interrupt-parent = <&mpc5200_pic>;
> +                       phy-handle = <&phy0>;
> +               };
> +
> +               mdio@3000 {
> +                       #address-cells = <1>;
> +                       #size-cells = <0>;
> +                       compatible = "fsl,mpc5200b-mdio","fsl,mpc5200-mdio";
> +                       reg = <0x3000 0x400>;       // fec range, since we need to setup fec interrupts
> +                       interrupts = <2 5 0>;   // these are for "mii command finished", not link changes & co.
> +                       interrupt-parent = <&mpc5200_pic>;
> +
> +                       phy0: ethernet-phy@0 {
> +                               device_type = "ethernet-phy";
> +                               reg = <0>;
> +                       };
> +               };
> +
> +               ata@3a00 {
> +                       device_type = "ata";
> +                       compatible = "fsl,mpc5200b-ata","fsl,mpc5200-ata";
> +                       reg = <0x3a00 0x100>;
> +                       interrupts = <2 7 0>;
> +                       interrupt-parent = <&mpc5200_pic>;
> +               };
> +
> +               i2c@3d00 {
> +                       #address-cells = <1>;
> +                       #size-cells = <0>;
> +                       compatible = "fsl,mpc5200b-i2c","fsl,mpc5200-i2c","fsl-i2c";
> +                       cell-index = <0>;
> +                       reg = <0x3d00 0x40>;
> +                       interrupts = <2 15 0>;
> +                       interrupt-parent = <&mpc5200_pic>;
> +                       fsl5200-clocking;
> +
> +                       rtc@50 {
> +                               compatible = "at,24c08";
> +                               reg = <0x50>;
> +                       };
> +
> +                       rtc@68 {
> +                               compatible = "dallas,ds1339";
> +                               reg = <0x68>;
> +                       };
> +               };
> +
> +               sram@8000 {
> +                       compatible = "fsl,mpc5200b-sram","fsl,mpc5200-sram","sram";
> +                       reg = <0x8000 0x4000>;
> +               };
> +       };
> +
> +       lpb {
> +               model = "fsl,lpb";
> +               compatible = "fsl,lpb";
> +               #address-cells = <2>;
> +               #size-cells = <1>;
> +               ranges = <0 0 0xff000000 0x1000000>;
> +
> +               // 16-bit flash device at LocalPlus Bus CS0
> +               flash@0,0 {
> +                       compatible = "cfi-flash";
> +                       reg = <0 0 0x1000000>;
> +                       bank-width = <2>;
> +                       device-width = <2>;
> +                       #size-cells = <1>;
> +                       #address-cells = <1>;
> +
> +                       partition@0 {
> +                               label = "kernel";
> +                               reg = <0x0 0x00200000>;
> +                       };
> +                       partition@200000 {
> +                               label = "root";
> +                               reg = <0x00200000 0x00300000>;
> +                       };
> +                       partition@500000 {
> +                               label = "user";
> +                               reg = <0x00500000 0x00a00000>;
> +                       };
> +                       partition@f00000 {
> +                               label = "u-boot";
> +                               reg = <0x00f00000 0x100000>;
> +                       };
> +               };
> +       };
> +};
> diff --git a/arch/powerpc/configs/mpc5200_defconfig b/arch/powerpc/configs/mpc5200_defconfig
> index 5ff3de2..6e4e710 100644
> --- a/arch/powerpc/configs/mpc5200_defconfig
> +++ b/arch/powerpc/configs/mpc5200_defconfig
> @@ -1,7 +1,7 @@
>  #
>  # Automatically generated make config: don't edit
> -# Linux kernel version: 2.6.28-rc4
> -# Thu Nov 13 02:09:07 2008
> +# Linux kernel version: 2.6.29-rc3
> +# Mon Feb  2 16:22:08 2009
>  #
>  # CONFIG_PPC64 is not set
>
> @@ -43,7 +43,7 @@ CONFIG_GENERIC_FIND_NEXT_BIT=y
>  CONFIG_PPC=y
>  CONFIG_EARLY_PRINTK=y
>  CONFIG_GENERIC_NVRAM=y
> -CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y
> +CONFIG_SCHED_OMIT_FRAME_POINTER=y
>  CONFIG_ARCH_MAY_HAVE_PC_FDC=y
>  CONFIG_PPC_OF=y
>  CONFIG_OF=y
> @@ -72,10 +72,19 @@ CONFIG_SYSVIPC_SYSCTL=y
>  # CONFIG_BSD_PROCESS_ACCT is not set
>  # CONFIG_TASKSTATS is not set
>  # CONFIG_AUDIT is not set
> +
> +#
> +# RCU Subsystem
> +#
> +CONFIG_CLASSIC_RCU=y
> +# CONFIG_TREE_RCU is not set
> +# CONFIG_PREEMPT_RCU is not set
> +# CONFIG_TREE_RCU_TRACE is not set
> +# CONFIG_PREEMPT_RCU_TRACE is not set
>  # CONFIG_IKCONFIG is not set
>  CONFIG_LOG_BUF_SHIFT=14
> -# CONFIG_CGROUPS is not set
>  # CONFIG_GROUP_SCHED is not set
> +# CONFIG_CGROUPS is not set
>  CONFIG_SYSFS_DEPRECATED=y
>  CONFIG_SYSFS_DEPRECATED_V2=y
>  # CONFIG_RELAY is not set
> @@ -89,6 +98,7 @@ CONFIG_EMBEDDED=y
>  # CONFIG_KALLSYMS is not set
>  CONFIG_HOTPLUG=y
>  CONFIG_PRINTK=y
> +# CONFIG_LOGBUFFER is not set
>  CONFIG_BUG=y
>  CONFIG_ELF_CORE=y
>  CONFIG_COMPAT_BRK=y
> @@ -108,7 +118,6 @@ CONFIG_SLUB_DEBUG=y
>  CONFIG_SLUB=y
>  # CONFIG_SLOB is not set
>  # CONFIG_PROFILING is not set
> -# CONFIG_MARKERS is not set
>  CONFIG_HAVE_OPROFILE=y
>  CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y
>  CONFIG_HAVE_IOREMAP_PROT=y
> @@ -119,7 +128,6 @@ CONFIG_HAVE_CLK=y
>  # CONFIG_HAVE_GENERIC_DMA_COHERENT is not set
>  CONFIG_SLABINFO=y
>  CONFIG_RT_MUTEXES=y
> -# CONFIG_TINY_SHMEM is not set
>  CONFIG_BASE_SMALL=0
>  CONFIG_MODULES=y
>  # CONFIG_MODULE_FORCE_LOAD is not set
> @@ -127,11 +135,9 @@ CONFIG_MODULE_UNLOAD=y
>  # CONFIG_MODULE_FORCE_UNLOAD is not set
>  # CONFIG_MODVERSIONS is not set
>  # CONFIG_MODULE_SRCVERSION_ALL is not set
> -CONFIG_KMOD=y
>  CONFIG_BLOCK=y
>  # CONFIG_LBD is not set
>  # CONFIG_BLK_DEV_IO_TRACE is not set
> -# CONFIG_LSF is not set
>  # CONFIG_BLK_DEV_BSG is not set
>  # CONFIG_BLK_DEV_INTEGRITY is not set
>
> @@ -147,7 +153,6 @@ CONFIG_DEFAULT_AS=y
>  # CONFIG_DEFAULT_CFQ is not set
>  # CONFIG_DEFAULT_NOOP is not set
>  CONFIG_DEFAULT_IOSCHED="anticipatory"
> -CONFIG_CLASSIC_RCU=y
>  CONFIG_FREEZER=y
>
>  #
> @@ -192,7 +197,7 @@ CONFIG_RTAS_PROC=y
>  CONFIG_PPC_BESTCOMM=y
>  CONFIG_PPC_BESTCOMM_ATA=y
>  CONFIG_PPC_BESTCOMM_FEC=y
> -CONFIG_PPC_BESTCOMM_GEN_BD=y
> +# CONFIG_SIMPLE_GPIO is not set
>
>  #
>  # Kernel options
> @@ -220,6 +225,7 @@ CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
>  CONFIG_ARCH_HAS_WALK_MEMORY=y
>  CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y
>  # CONFIG_KEXEC is not set
> +# CONFIG_CRASH_DUMP is not set
>  CONFIG_ARCH_FLATMEM_ENABLE=y
>  CONFIG_ARCH_POPULATES_NODE_MAP=y
>  CONFIG_SELECT_MEMORY_MODEL=y
> @@ -231,12 +237,14 @@ CONFIG_FLAT_NODE_MEM_MAP=y
>  CONFIG_PAGEFLAGS_EXTENDED=y
>  CONFIG_SPLIT_PTLOCK_CPUS=4
>  CONFIG_MIGRATION=y
> -# CONFIG_RESOURCES_64BIT is not set
>  # CONFIG_PHYS_ADDR_T_64BIT is not set
>  CONFIG_ZONE_DMA_FLAG=1
>  CONFIG_BOUNCE=y
>  CONFIG_VIRT_TO_BUS=y
>  CONFIG_UNEVICTABLE_LRU=y
> +CONFIG_PPC_4K_PAGES=y
> +# CONFIG_PPC_16K_PAGES is not set
> +# CONFIG_PPC_64K_PAGES is not set
>  CONFIG_FORCE_MAX_ZONEORDER=11
>  CONFIG_PROC_DEVICETREE=y
>  # CONFIG_CMDLINE_BOOL is not set
> @@ -264,6 +272,7 @@ CONFIG_ARCH_SUPPORTS_MSI=y
>  # CONFIG_PCI_MSI is not set
>  CONFIG_PCI_LEGACY=y
>  # CONFIG_PCI_DEBUG is not set
> +# CONFIG_PCI_STUB is not set
>  # CONFIG_PCCARD is not set
>  # CONFIG_HOTPLUG_PCI is not set
>  # CONFIG_HAS_RAPIDIO is not set
> @@ -286,6 +295,7 @@ CONFIG_NET=y
>  #
>  # Networking options
>  #
> +CONFIG_COMPAT_NET_DEV_OPS=y
>  CONFIG_PACKET=y
>  # CONFIG_PACKET_MMAP is not set
>  CONFIG_UNIX=y
> @@ -342,6 +352,7 @@ CONFIG_DEFAULT_TCP_CONG="cubic"
>  # CONFIG_ECONET is not set
>  # CONFIG_WAN_ROUTER is not set
>  # CONFIG_NET_SCHED is not set
> +# CONFIG_DCB is not set
>
>  #
>  # Network testing
> @@ -354,6 +365,7 @@ CONFIG_DEFAULT_TCP_CONG="cubic"
>  # CONFIG_AF_RXRPC is not set
>  # CONFIG_PHONET is not set
>  # CONFIG_WIRELESS is not set
> +# CONFIG_WIMAX is not set
>  # CONFIG_RFKILL is not set
>  # CONFIG_NET_9P is not set
>
> @@ -376,9 +388,10 @@ CONFIG_MTD=y
>  # CONFIG_MTD_DEBUG is not set
>  CONFIG_MTD_CONCAT=y
>  CONFIG_MTD_PARTITIONS=y
> +# CONFIG_MTD_TESTS is not set
>  # CONFIG_MTD_REDBOOT_PARTS is not set
>  CONFIG_MTD_CMDLINE_PARTS=y
> -# CONFIG_MTD_OF_PARTS is not set
> +CONFIG_MTD_OF_PARTS=y
>  # CONFIG_MTD_AR7_PARTS is not set
>
>  #
> @@ -447,6 +460,12 @@ CONFIG_MTD_PHYSMAP_OF=y
>  # CONFIG_MTD_ONENAND is not set
>
>  #
> +# LPDDR flash memory drivers
> +#
> +# CONFIG_MTD_LPDDR is not set
> +# CONFIG_MTD_QINFO_PROBE is not set
> +
> +#
>  # UBI - Unsorted block images
>  #
>  # CONFIG_MTD_UBI is not set
> @@ -474,13 +493,19 @@ CONFIG_BLK_DEV_RAM_SIZE=32768
>  # CONFIG_BLK_DEV_HD is not set
>  CONFIG_MISC_DEVICES=y
>  # CONFIG_PHANTOM is not set
> -# CONFIG_EEPROM_93CX6 is not set
>  # CONFIG_SGI_IOC4 is not set
>  # CONFIG_TIFM_CORE is not set
>  # CONFIG_ICS932S401 is not set
>  # CONFIG_ENCLOSURE_SERVICES is not set
>  # CONFIG_HP_ILO is not set
>  # CONFIG_C2PORT is not set
> +
> +#
> +# EEPROM support
> +#
> +CONFIG_EEPROM_AT24=y
> +# CONFIG_EEPROM_LEGACY is not set
> +# CONFIG_EEPROM_93CX6 is not set
>  CONFIG_HAVE_IDE=y
>  # CONFIG_IDE is not set
>
> @@ -539,6 +564,8 @@ CONFIG_SCSI_LOWLEVEL=y
>  # CONFIG_MEGARAID_SAS is not set
>  # CONFIG_SCSI_HPTIOP is not set
>  # CONFIG_SCSI_BUSLOGIC is not set
> +# CONFIG_LIBFC is not set
> +# CONFIG_FCOE is not set
>  # CONFIG_SCSI_DMX3191D is not set
>  # CONFIG_SCSI_EATA is not set
>  # CONFIG_SCSI_FUTURE_DOMAIN is not set
> @@ -652,13 +679,16 @@ CONFIG_PHYLIB=y
>  # CONFIG_MARVELL_PHY is not set
>  # CONFIG_DAVICOM_PHY is not set
>  # CONFIG_QSEMI_PHY is not set
> -# CONFIG_LXT_PHY is not set
> +CONFIG_LXT_PHY=y
>  # CONFIG_CICADA_PHY is not set
>  # CONFIG_VITESSE_PHY is not set
>  # CONFIG_SMSC_PHY is not set
>  # CONFIG_BROADCOM_PHY is not set
>  # CONFIG_ICPLUS_PHY is not set
>  # CONFIG_REALTEK_PHY is not set
> +# CONFIG_NATIONAL_PHY is not set
> +# CONFIG_STE10XP is not set
> +# CONFIG_LSI_ET1011C_PHY is not set
>  # CONFIG_FIXED_PHY is not set
>  # CONFIG_MDIO_BITBANG is not set
>  CONFIG_NET_ETHERNET=y
> @@ -693,6 +723,10 @@ CONFIG_FEC_MPC52xx_MDIO=y
>  # CONFIG_IWLWIFI_LEDS is not set
>
>  #
> +# Enable WiMAX (Networking options) to see the WiMAX drivers
> +#
> +
> +#
>  # USB Network Adapters
>  #
>  # CONFIG_USB_CATC is not set
> @@ -774,17 +808,18 @@ CONFIG_SERIAL_MPC52xx_CONSOLE=y
>  CONFIG_SERIAL_MPC52xx_CONSOLE_BAUD=115200
>  # CONFIG_SERIAL_JSM is not set
>  CONFIG_UNIX98_PTYS=y
> +# CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set
>  CONFIG_LEGACY_PTYS=y
>  CONFIG_LEGACY_PTY_COUNT=256
>  # CONFIG_HVC_RTAS is not set
> +# CONFIG_HVC_UDBG is not set
>  # CONFIG_IPMI_HANDLER is not set
>  # CONFIG_HW_RANDOM is not set
>  # CONFIG_NVRAM is not set
> -CONFIG_GEN_RTC=y
> -# CONFIG_GEN_RTC_X is not set
>  # CONFIG_R3964 is not set
>  # CONFIG_APPLICOM is not set
>  # CONFIG_RAW_DRIVER is not set
> +# CONFIG_BOOTCOUNT is not set
>  # CONFIG_TCG_TPM is not set
>  CONFIG_DEVPORT=y
>  CONFIG_I2C=y
> @@ -843,9 +878,9 @@ CONFIG_I2C_MPC=y
>  #
>  # Miscellaneous I2C Chip support
>  #
> +# CONFIG_SENSORS_24C01A is not set
> +# CONFIG_SENSORS_AD7416 is not set
>  # CONFIG_DS1682 is not set
> -# CONFIG_EEPROM_AT24 is not set
> -# CONFIG_EEPROM_LEGACY is not set
>  # CONFIG_SENSORS_PCF8574 is not set
>  # CONFIG_PCF8575 is not set
>  # CONFIG_SENSORS_PCA9539 is not set
> @@ -874,10 +909,12 @@ CONFIG_HWMON=y
>  # CONFIG_SENSORS_ADT7462 is not set
>  # CONFIG_SENSORS_ADT7470 is not set
>  # CONFIG_SENSORS_ADT7473 is not set
> +# CONFIG_SENSORS_ADT7475 is not set
>  # CONFIG_SENSORS_ATXP1 is not set
>  # CONFIG_SENSORS_DS1621 is not set
>  # CONFIG_SENSORS_I5K_AMB is not set
>  # CONFIG_SENSORS_F71805F is not set
> +# CONFIG_SENSORS_FM75 is not set
>  # CONFIG_SENSORS_F71882FG is not set
>  # CONFIG_SENSORS_F75375S is not set
>  # CONFIG_SENSORS_GL518SM is not set
> @@ -894,6 +931,7 @@ CONFIG_HWMON=y
>  # CONFIG_SENSORS_LM90 is not set
>  # CONFIG_SENSORS_LM92 is not set
>  # CONFIG_SENSORS_LM93 is not set
> +# CONFIG_SENSORS_LTC4245 is not set
>  # CONFIG_SENSORS_MAX1619 is not set
>  # CONFIG_SENSORS_MAX6650 is not set
>  # CONFIG_SENSORS_PC87360 is not set
> @@ -906,6 +944,7 @@ CONFIG_HWMON=y
>  # CONFIG_SENSORS_ADS7828 is not set
>  # CONFIG_SENSORS_THMC50 is not set
>  # CONFIG_SENSORS_VIA686A is not set
> +# CONFIG_SENSORS_VT1115 is not set
>  # CONFIG_SENSORS_VT1211 is not set
>  # CONFIG_SENSORS_VT8231 is not set
>  # CONFIG_SENSORS_W83781D is not set
> @@ -925,9 +964,11 @@ CONFIG_WATCHDOG=y
>  #
>  # Watchdog Device Drivers
>  #
> +# CONFIG_WD is not set
>  # CONFIG_SOFT_WATCHDOG is not set
>  # CONFIG_ALIM7101_WDT is not set
>  # CONFIG_MPC5200_WDT is not set
> +# CONFIG_WDT_CHAIN is not set
>  # CONFIG_WATCHDOG_RTAS is not set
>
>  #
> @@ -953,10 +994,12 @@ CONFIG_SSB_POSSIBLE=y
>  # CONFIG_MFD_CORE is not set
>  # CONFIG_MFD_SM501 is not set
>  # CONFIG_HTC_PASIC3 is not set
> +# CONFIG_TWL4030_CORE is not set
>  # CONFIG_MFD_TMIO is not set
>  # CONFIG_PMIC_DA903X is not set
>  # CONFIG_MFD_WM8400 is not set
>  # CONFIG_MFD_WM8350_I2C is not set
> +# CONFIG_MFD_PCF50633 is not set
>  # CONFIG_REGULATOR is not set
>
>  #
> @@ -1011,6 +1054,7 @@ CONFIG_FB_MODE_HELPERS=y
>  #
>  # Frame buffer hardware drivers
>  #
> +# CONFIG_FB_MB86290 is not set
>  # CONFIG_FB_CIRRUS is not set
>  # CONFIG_FB_PM2 is not set
>  # CONFIG_FB_CYBER2000 is not set
> @@ -1051,7 +1095,7 @@ CONFIG_LCD_CLASS_DEVICE=m
>  # CONFIG_LCD_ILI9320 is not set
>  # CONFIG_LCD_PLATFORM is not set
>  CONFIG_BACKLIGHT_CLASS_DEVICE=y
> -# CONFIG_BACKLIGHT_CORGI is not set
> +CONFIG_BACKLIGHT_GENERIC=y
>
>  #
>  # Display device support
> @@ -1093,21 +1137,22 @@ CONFIG_HID_COMPAT=y
>  CONFIG_HID_A4TECH=y
>  # CONFIG_HID_APPLE is not set
>  CONFIG_HID_BELKIN=y
> -CONFIG_HID_BRIGHT=y
>  CONFIG_HID_CHERRY=y
>  # CONFIG_HID_CHICONY is not set
>  CONFIG_HID_CYPRESS=y
> -CONFIG_HID_DELL=y
>  CONFIG_HID_EZKEY=y
>  # CONFIG_HID_GYRATION is not set
>  # CONFIG_HID_LOGITECH is not set
>  # CONFIG_HID_MICROSOFT is not set
>  # CONFIG_HID_MONTEREY is not set
> +# CONFIG_HID_NTRIG is not set
>  # CONFIG_HID_PANTHERLORD is not set
>  # CONFIG_HID_PETALYNX is not set
>  # CONFIG_HID_SAMSUNG is not set
>  # CONFIG_HID_SONY is not set
>  # CONFIG_HID_SUNPLUS is not set
> +# CONFIG_GREENASIA_FF is not set
> +# CONFIG_HID_TOPSEED is not set
>  # CONFIG_THRUSTMASTER_FF is not set
>  # CONFIG_ZEROPLUS_FF is not set
>  CONFIG_USB_SUPPORT=y
> @@ -1137,6 +1182,7 @@ CONFIG_USB_MON=y
>  #
>  # CONFIG_USB_C67X00_HCD is not set
>  # CONFIG_USB_EHCI_HCD is not set
> +# CONFIG_USB_OXU210HP_HCD is not set
>  # CONFIG_USB_ISP116X_HCD is not set
>  # CONFIG_USB_ISP1760_HCD is not set
>  CONFIG_USB_OHCI_HCD=y
> @@ -1164,18 +1210,17 @@ CONFIG_USB_OHCI_LITTLE_ENDIAN=y
>  # CONFIG_USB_TMC is not set
>
>  #
> -# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
> +# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may also be needed;
>  #
>
>  #
> -# may also be needed; see USB_STORAGE Help for more information
> +# see USB_STORAGE Help for more information
>  #
>  CONFIG_USB_STORAGE=y
>  # CONFIG_USB_STORAGE_DEBUG is not set
>  # CONFIG_USB_STORAGE_DATAFAB is not set
>  # CONFIG_USB_STORAGE_FREECOM is not set
>  # CONFIG_USB_STORAGE_ISD200 is not set
> -# CONFIG_USB_STORAGE_DPCM is not set
>  # CONFIG_USB_STORAGE_USBAT is not set
>  # CONFIG_USB_STORAGE_SDDR09 is not set
>  # CONFIG_USB_STORAGE_SDDR55 is not set
> @@ -1222,6 +1267,10 @@ CONFIG_USB_STORAGE=y
>  # CONFIG_USB_ISIGHTFW is not set
>  # CONFIG_USB_VST is not set
>  # CONFIG_USB_GADGET is not set
> +
> +#
> +# OTG and related infrastructure
> +#
>  # CONFIG_UWB is not set
>  # CONFIG_MMC is not set
>  # CONFIG_MEMSTICK is not set
> @@ -1239,11 +1288,64 @@ CONFIG_NEW_LEDS=y
>  # CONFIG_ACCESSIBILITY is not set
>  # CONFIG_INFINIBAND is not set
>  # CONFIG_EDAC is not set
> -# CONFIG_RTC_CLASS is not set
> +CONFIG_RTC_LIB=y
> +CONFIG_RTC_CLASS=y
> +CONFIG_RTC_HCTOSYS=y
> +CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
> +# CONFIG_RTC_DEBUG is not set
> +
> +#
> +# RTC interfaces
> +#
> +CONFIG_RTC_INTF_SYSFS=y
> +CONFIG_RTC_INTF_PROC=y
> +CONFIG_RTC_INTF_DEV=y
> +# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
> +# CONFIG_RTC_DRV_TEST is not set
> +
> +#
> +# I2C RTC drivers
> +#
> +CONFIG_RTC_DRV_DS1307=y
> +# CONFIG_RTC_DRV_DS1374 is not set
> +# CONFIG_RTC_DRV_DS1672 is not set
> +# CONFIG_RTC_DRV_MAX6900 is not set
> +# CONFIG_RTC_DRV_RS5C372 is not set
> +# CONFIG_RTC_DRV_ISL1208 is not set
> +# CONFIG_RTC_DRV_X1205 is not set
> +# CONFIG_RTC_DRV_PCF8563 is not set
> +# CONFIG_RTC_DRV_PCF8583 is not set
> +# CONFIG_RTC_DRV_M41T80 is not set
> +# CONFIG_RTC_DRV_S35390A is not set
> +# CONFIG_RTC_DRV_FM3130 is not set
> +# CONFIG_RTC_DRV_RX8581 is not set
> +
> +#
> +# SPI RTC drivers
> +#
> +
> +#
> +# Platform RTC drivers
> +#
> +# CONFIG_RTC_DRV_CMOS is not set
> +# CONFIG_RTC_DRV_DS1286 is not set
> +# CONFIG_RTC_DRV_DS1511 is not set
> +# CONFIG_RTC_DRV_DS1553 is not set
> +# CONFIG_RTC_DRV_DS1742 is not set
> +# CONFIG_RTC_DRV_STK17TA8 is not set
> +# CONFIG_RTC_DRV_M48T86 is not set
> +# CONFIG_RTC_DRV_M48T35 is not set
> +# CONFIG_RTC_DRV_M48T59 is not set
> +# CONFIG_RTC_DRV_BQ4802 is not set
> +# CONFIG_RTC_DRV_V3020 is not set
> +
> +#
> +# on-CPU RTC drivers
> +#
> +# CONFIG_RTC_DRV_PPC is not set
>  # CONFIG_DMADEVICES is not set
>  # CONFIG_UIO is not set
>  # CONFIG_STAGING is not set
> -CONFIG_STAGING_EXCLUDE_BUILD=y
>
>  #
>  # File systems
> @@ -1264,6 +1366,7 @@ CONFIG_FS_MBCACHE=y
>  CONFIG_FILE_LOCKING=y
>  # CONFIG_XFS_FS is not set
>  # CONFIG_OCFS2_FS is not set
> +# CONFIG_BTRFS_FS is not set
>  CONFIG_DNOTIFY=y
>  CONFIG_INOTIFY=y
>  CONFIG_INOTIFY_USER=y
> @@ -1300,10 +1403,7 @@ CONFIG_TMPFS=y
>  # CONFIG_TMPFS_POSIX_ACL is not set
>  # CONFIG_HUGETLB_PAGE is not set
>  # CONFIG_CONFIGFS_FS is not set
> -
> -#
> -# Miscellaneous filesystems
> -#
> +CONFIG_MISC_FILESYSTEMS=y
>  # CONFIG_ADFS_FS is not set
>  # CONFIG_AFFS_FS is not set
>  # CONFIG_HFS_FS is not set
> @@ -1322,7 +1422,9 @@ CONFIG_JFFS2_ZLIB=y
>  # CONFIG_JFFS2_LZO is not set
>  CONFIG_JFFS2_RTIME=y
>  # CONFIG_JFFS2_RUBIN is not set
> +# CONFIG_YAFFS_FS is not set
>  CONFIG_CRAMFS=y
> +# CONFIG_SQUASHFS is not set
>  # CONFIG_VXFS_FS is not set
>  # CONFIG_MINIX_FS is not set
>  # CONFIG_OMFS_FS is not set
> @@ -1403,6 +1505,7 @@ CONFIG_NLS_ISO8859_1=y
>  # Library routines
>  #
>  CONFIG_BITREVERSE=y
> +CONFIG_GENERIC_FIND_LAST_BIT=y
>  # CONFIG_CRC_CCITT is not set
>  # CONFIG_CRC16 is not set
>  # CONFIG_CRC_T10DIF is not set
> @@ -1454,6 +1557,7 @@ CONFIG_DEBUG_INFO=y
>  # CONFIG_DEBUG_MEMORY_INIT is not set
>  # CONFIG_DEBUG_LIST is not set
>  # CONFIG_DEBUG_SG is not set
> +# CONFIG_DEBUG_NOTIFIERS is not set
>  # CONFIG_BOOT_PRINTK_DELAY is not set
>  # CONFIG_RCU_TORTURE_TEST is not set
>  # CONFIG_RCU_CPU_STALL_DETECTOR is not set
> @@ -1462,6 +1566,8 @@ CONFIG_DEBUG_INFO=y
>  # CONFIG_FAULT_INJECTION is not set
>  # CONFIG_LATENCYTOP is not set
>  CONFIG_HAVE_FUNCTION_TRACER=y
> +CONFIG_HAVE_DYNAMIC_FTRACE=y
> +CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
>
>  #
>  # Tracers
> @@ -1470,11 +1576,13 @@ CONFIG_HAVE_FUNCTION_TRACER=y
>  # CONFIG_SCHED_TRACER is not set
>  # CONFIG_CONTEXT_SWITCH_TRACER is not set
>  # CONFIG_BOOT_TRACER is not set
> +# CONFIG_TRACE_BRANCH_PROFILING is not set
>  # CONFIG_STACK_TRACER is not set
>  # CONFIG_DYNAMIC_PRINTK_DEBUG is not set
>  # CONFIG_SAMPLES is not set
>  CONFIG_HAVE_ARCH_KGDB=y
>  # CONFIG_KGDB is not set
> +CONFIG_PRINT_STACK_DEPTH=64
>  # CONFIG_DEBUG_STACKOVERFLOW is not set
>  # CONFIG_DEBUG_STACK_USAGE is not set
>  # CONFIG_DEBUG_PAGEALLOC is not set
> @@ -1501,11 +1609,15 @@ CONFIG_CRYPTO=y
>  #
>  # CONFIG_CRYPTO_FIPS is not set
>  CONFIG_CRYPTO_ALGAPI=y
> -CONFIG_CRYPTO_AEAD=y
> +CONFIG_CRYPTO_ALGAPI2=y
> +CONFIG_CRYPTO_AEAD2=y
>  CONFIG_CRYPTO_BLKCIPHER=y
> +CONFIG_CRYPTO_BLKCIPHER2=y
>  CONFIG_CRYPTO_HASH=y
> -CONFIG_CRYPTO_RNG=y
> +CONFIG_CRYPTO_HASH2=y
> +CONFIG_CRYPTO_RNG2=y
>  CONFIG_CRYPTO_MANAGER=y
> +CONFIG_CRYPTO_MANAGER2=y
>  # CONFIG_CRYPTO_GF128MUL is not set
>  # CONFIG_CRYPTO_NULL is not set
>  # CONFIG_CRYPTO_CRYPTD is not set
> diff --git a/arch/powerpc/platforms/52xx/mpc5200_simple.c b/arch/powerpc/platforms/52xx/mpc5200_simple.c
> index a3bda0b..d5e1471 100644
> --- a/arch/powerpc/platforms/52xx/mpc5200_simple.c
> +++ b/arch/powerpc/platforms/52xx/mpc5200_simple.c
> @@ -50,6 +50,7 @@ static void __init mpc5200_simple_setup_arch(void)
>
>  /* list of the supported boards */
>  static char *board[] __initdata = {
> +       "intercontrol,digsy-mtc",
>        "promess,motionpro",
>        "phytec,pcm030",
>        "schindler,cm5200",
> --
> 1.6.0.6
>
>



-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

^ permalink raw reply

* Re: [PATCH 1/3] drm: Use resource_size_t for drm_get_resource_{start, len}
From: Eric Anholt @ 2009-02-02 19:02 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: David Airlie, linuxppc-dev, dri-devel
In-Reply-To: <20090202055557.57CECDDF4A@ozlabs.org>

[-- Attachment #1: Type: text/plain, Size: 7019 bytes --]

On Mon, 2009-02-02 at 16:55 +1100, Benjamin Herrenschmidt wrote:
> The DRM uses its own wrappers to obtain resources from PCI devices,
> which currently convert the resource_size_t into an unsigned long.
> 
> This is broken on 32-bit platforms with >32-bit physical address
> space.
> 
> This fixes them, along with a few occurences of unsigned long used
> to store such a resource in drivers.

Do we just want to dump the wrappers, instead?

> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> ---
> 
>  drivers/gpu/drm/drm_bufs.c          |    4 ++--
>  drivers/gpu/drm/i915/i915_dma.c     |    2 +-
>  drivers/gpu/drm/mga/mga_drv.h       |    4 ++--
>  drivers/gpu/drm/radeon/radeon_drv.h |    2 +-
>  drivers/gpu/drm/savage/savage_bci.c |    8 ++++----
>  include/drm/drmP.h                  |    6 +++---
>  include/drm/drm_crtc.h              |    2 +-
>  7 files changed, 14 insertions(+), 14 deletions(-)
> 
> --- linux-work.orig/drivers/gpu/drm/drm_bufs.c	2009-02-02 14:11:26.000000000 +1100
> +++ linux-work/drivers/gpu/drm/drm_bufs.c	2009-02-02 14:11:35.000000000 +1100
> @@ -36,13 +36,13 @@
>  #include <linux/vmalloc.h>
>  #include "drmP.h"
>  
> -unsigned long drm_get_resource_start(struct drm_device *dev, unsigned int resource)
> +resource_size_t drm_get_resource_start(struct drm_device *dev, unsigned int resource)
>  {
>  	return pci_resource_start(dev->pdev, resource);
>  }
>  EXPORT_SYMBOL(drm_get_resource_start);
>  
> -unsigned long drm_get_resource_len(struct drm_device *dev, unsigned int resource)
> +resource_size_t drm_get_resource_len(struct drm_device *dev, unsigned int resource)
>  {
>  	return pci_resource_len(dev->pdev, resource);
>  }
> Index: linux-work/drivers/gpu/drm/i915/i915_dma.c
> ===================================================================
> --- linux-work.orig/drivers/gpu/drm/i915/i915_dma.c	2009-02-02 14:25:44.000000000 +1100
> +++ linux-work/drivers/gpu/drm/i915/i915_dma.c	2009-02-02 14:28:19.000000000 +1100
> @@ -1051,7 +1051,7 @@ void i915_master_destroy(struct drm_devi
>  int i915_driver_load(struct drm_device *dev, unsigned long flags)
>  {
>  	struct drm_i915_private *dev_priv = dev->dev_private;
> -	unsigned long base, size;
> +	resource_size_t base, size;
>  	int ret = 0, mmio_bar = IS_I9XX(dev) ? 0 : 1;
>  
>  	/* i915 has 4 more counters */
> Index: linux-work/drivers/gpu/drm/mga/mga_drv.h
> ===================================================================
> --- linux-work.orig/drivers/gpu/drm/mga/mga_drv.h	2009-02-02 14:18:10.000000000 +1100
> +++ linux-work/drivers/gpu/drm/mga/mga_drv.h	2009-02-02 14:18:37.000000000 +1100
> @@ -113,8 +113,8 @@ typedef struct drm_mga_private {
>  	 * \sa drm_mga_private_t::mmio
>  	 */
>  	/*@{ */
> -	u32 mmio_base;		   /**< Bus address of base of MMIO. */
> -	u32 mmio_size;		   /**< Size of the MMIO region. */
> +	resource_size_t mmio_base;	   /**< Bus address of base of MMIO. */
> +	resource_size_t mmio_size;	   /**< Size of the MMIO region. */
>  	/*@} */
>  
>  	u32 clear_cmd;
> Index: linux-work/drivers/gpu/drm/radeon/radeon_drv.h
> ===================================================================
> --- linux-work.orig/drivers/gpu/drm/radeon/radeon_drv.h	2009-02-02 14:13:35.000000000 +1100
> +++ linux-work/drivers/gpu/drm/radeon/radeon_drv.h	2009-02-02 14:13:44.000000000 +1100
> @@ -316,7 +316,7 @@ typedef struct drm_radeon_private {
>  
>  	/* starting from here on, data is preserved accross an open */
>  	uint32_t flags;		/* see radeon_chip_flags */
> -	unsigned long fb_aper_offset;
> +	resource_size_t fb_aper_offset;
>  
>  	int num_gb_pipes;
>  	int track_flush;
> Index: linux-work/drivers/gpu/drm/savage/savage_bci.c
> ===================================================================
> --- linux-work.orig/drivers/gpu/drm/savage/savage_bci.c	2009-02-02 14:15:43.000000000 +1100
> +++ linux-work/drivers/gpu/drm/savage/savage_bci.c	2009-02-02 14:16:04.000000000 +1100
> @@ -599,8 +599,8 @@ int savage_driver_firstopen(struct drm_d
>  			    drm_mtrr_add(dev_priv->mtrr[2].base,
>  					 dev_priv->mtrr[2].size, DRM_MTRR_WC);
>  		} else {
> -			DRM_ERROR("strange pci_resource_len %08lx\n",
> -				  drm_get_resource_len(dev, 0));
> +			DRM_ERROR("strange pci_resource_len %08llx\n",
> +				  (unsigned long long)drm_get_resource_len(dev, 0));
>  		}
>  	} else if (dev_priv->chipset != S3_SUPERSAVAGE &&
>  		   dev_priv->chipset != S3_SAVAGE2000) {
> @@ -620,8 +620,8 @@ int savage_driver_firstopen(struct drm_d
>  			    drm_mtrr_add(dev_priv->mtrr[0].base,
>  					 dev_priv->mtrr[0].size, DRM_MTRR_WC);
>  		} else {
> -			DRM_ERROR("strange pci_resource_len %08lx\n",
> -				  drm_get_resource_len(dev, 1));
> +			DRM_ERROR("strange pci_resource_len %08llx\n",
> +				  (unsigned long long)drm_get_resource_len(dev, 1));
>  		}
>  	} else {
>  		mmio_base = drm_get_resource_start(dev, 0);
> Index: linux-work/include/drm/drmP.h
> ===================================================================
> --- linux-work.orig/include/drm/drmP.h	2009-02-02 14:16:43.000000000 +1100
> +++ linux-work/include/drm/drmP.h	2009-02-02 14:16:57.000000000 +1100
> @@ -1173,10 +1173,10 @@ extern int drm_freebufs(struct drm_devic
>  extern int drm_mapbufs(struct drm_device *dev, void *data,
>  		       struct drm_file *file_priv);
>  extern int drm_order(unsigned long size);
> -extern unsigned long drm_get_resource_start(struct drm_device *dev,
> +extern resource_size_t drm_get_resource_start(struct drm_device *dev,
> +					      unsigned int resource);
> +extern resource_size_t drm_get_resource_len(struct drm_device *dev,
>  					    unsigned int resource);
> -extern unsigned long drm_get_resource_len(struct drm_device *dev,
> -					  unsigned int resource);
>  
>  				/* DMA support (drm_dma.h) */
>  extern int drm_dma_setup(struct drm_device *dev);
> Index: linux-work/include/drm/drm_crtc.h
> ===================================================================
> --- linux-work.orig/include/drm/drm_crtc.h	2009-02-02 14:24:56.000000000 +1100
> +++ linux-work/include/drm/drm_crtc.h	2009-02-02 14:25:03.000000000 +1100
> @@ -550,7 +550,7 @@ struct drm_mode_config {
>  	int min_width, min_height;
>  	int max_width, max_height;
>  	struct drm_mode_config_funcs *funcs;
> -	unsigned long fb_base;
> +	resource_size_t fb_base;
>  
>  	/* pointers to standard properties */
>  	struct list_head property_blob_list;
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> --
> _______________________________________________
> Dri-devel mailing list
> Dri-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dri-devel
-- 
Eric Anholt
eric@anholt.net                         eric.anholt@intel.com



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply

* How to Enable MTD
From: mike zheng @ 2009-02-02 17:45 UTC (permalink / raw)
  To: linuxppc-dev

Hello,

I have one AMD29LV640 NOR chip on my system. How can I enable it in
Linux as MTD device? Right now, I can not operate on /dev/mtd in
Linux:

# od -x /dev/mtd
od: /dev/mtd: No such file or directory
od: /dev/mtd: Bad file descriptor
# od -x /dev/mtd0
od: Dec 31 16:02:17 kernel: MTD_open
/dev/mtd0: No such device

I think something wrong with my config flags(listed as followings),
this is a CFI supported device. The physical address starts at
0xbf800000

Thanks for your help,

Mike



# Generic Driver Options
#
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
# CONFIG_SYS_HYPERVISOR is not set
# CONFIG_CONNECTOR is not set
CONFIG_MTD=y
CONFIG_MTD_DEBUG=y
CONFIG_MTD_DEBUG_VERBOSE=3
CONFIG_MTD_CONCAT=y
CONFIG_MTD_PARTITIONS=y
# CONFIG_MTD_REDBOOT_PARTS is not set
CONFIG_MTD_CMDLINE_PARTS=y

#
# User Modules And Translation Layers
#
CONFIG_MTD_CHAR=y
CONFIG_MTD_BLKDEVS=y
# CONFIG_MTD_BLOCK is not set
# CONFIG_MTD_BLOCK_RO is not set
# CONFIG_FTL is not set
# CONFIG_NFTL is not set
# CONFIG_INFTL is not set
# CONFIG_RFD_FTL is not set
# CONFIG_SSFDC is not set
CONFIG_MTD_LFS_SUPPORT=y



#
# RAM/ROM/Flash chip drivers
#
CONFIG_MTD_CFI=y
# CONFIG_MTD_JEDECPROBE is not set
CONFIG_MTD_GEN_PROBE=y
CONFIG_MTD_CFI_ADV_OPTIONS=y
CONFIG_MTD_CFI_NOSWAP=y
# CONFIG_MTD_CFI_BE_BYTE_SWAP is not set
# CONFIG_MTD_CFI_LE_BYTE_SWAP is not set
CONFIG_MTD_CFI_GEOMETRY=y
CONFIG_MTD_MAP_BANK_WIDTH_1=y
CONFIG_MTD_MAP_BANK_WIDTH_2=y
CONFIG_MTD_MAP_BANK_WIDTH_4=y
# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
CONFIG_MTD_CFI_I1=y
# CONFIG_MTD_CFI_I2 is not set
# CONFIG_MTD_CFI_I4 is not set
# CONFIG_MTD_CFI_I8 is not set
# CONFIG_MTD_OTP is not set
# CONFIG_MTD_CFI_INTELEXT is not set
CONFIG_MTD_CFI_AMDSTD=y
# CONFIG_MTD_CFI_STAA is not set
CONFIG_MTD_CFI_UTIL=y
# CONFIG_MTD_RAM is not set
# CONFIG_MTD_ROM is not set
# CONFIG_MTD_ABSENT is not set


#
# Mapping drivers for chip access
#
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
CONFIG_MTD_PHYSMAP=y
CONFIG_MTD_PHYSMAP_START=0xBF800000
CONFIG_MTD_PHYSMAP_LEN=0x0
CONFIG_MTD_PHYSMAP_BANKWIDTH=2
# CONFIG_MTD_PLATRAM is not set

#
# Self-contained MTD device drivers
#
# CONFIG_MTD_SLRAM is not set
# CONFIG_MTD_PHRAM is not set
# CONFIG_MTD_MTDRAM is not set
# CONFIG_MTD_BLOCK2MTD is not set

#
# Disk-On-Chip Device Drivers
#
# CONFIG_MTD_DOC2000 is not set
# CONFIG_MTD_DOC2001 is not set
# CONFIG_MTD_DOC2001PLUS is not set
CONFIG_MTD_NAND=y
CONFIG_MTD_NAND_VERIFY_WRITE=y
# CONFIG_MTD_NAND_ECC_SMC is not set
# CONFIG_MTD_NAND_MUSEUM_IDS is not set
CONFIG_MTD_NAND_BCM1103=y
CONFIG_MTD_NAND_IDS=y
# CONFIG_MTD_NAND_DISKONCHIP is not set
# CONFIG_MTD_NAND_NANDSIM is not set
# CONFIG_MTD_NAND_PLATFORM is not set
# CONFIG_MTD_ONENAND is not set

^ permalink raw reply

* Re: [PATCH] i2c: i2c-ibm_iic message can be confusing
From: Jean Delvare @ 2009-02-02 17:29 UTC (permalink / raw)
  To: Sean MacLennan; +Cc: linuxppc-dev, ben-linux
In-Reply-To: <20090202120159.2478d7af@lappy.seanm.ca>

On Mon, 2 Feb 2009 12:01:59 -0500, Sean MacLennan wrote:
> This is a trivial patch that does not need to be in 2.6.29. While
> tracking down an EEPROM problem, I found the messages confusing... it
> looked like the EEPROM was being started before the I2C driver!
> 
> Here is an example:
> 
> at24 0-0052: 512 byte 24c04 EEPROM (writable)
> ibm-iic ef600700.i2c: using standard (100 kHz) mode
> ad7414 0-004a: chip found
> 
> It looks like the at24 starts first, then the i2c driver, then the
> ad7414. By moving the message to after the of scan, we always get the
> driver, then the devices.
> 
> Cheers,
>    Sean
> 
> Print the i2c driver message before scanning for devices so that the
> logs show the driver, then the devices. Currently you can get
> device(s), driver, device(s).
> 
> Signed-off-by: Sean MacLennan <smaclennan@pikatech.com>
> ---
> diff --git a/drivers/i2c/busses/i2c-ibm_iic.c b/drivers/i2c/busses/i2c-ibm_iic.c
> index 88f0db7..7fc0729 100644
> --- a/drivers/i2c/busses/i2c-ibm_iic.c
> +++ b/drivers/i2c/busses/i2c-ibm_iic.c
> @@ -756,12 +756,12 @@ static int __devinit iic_probe(struct of_device *ofdev,
>  		goto error_cleanup;
>  	}
>  
> -	/* Now register all the child nodes */
> -	of_register_i2c_devices(adap, np);
> -
>  	dev_info(&ofdev->dev, "using %s mode\n",
>  		 dev->fast_mode ? "fast (400 kHz)" : "standard (100 kHz)");
>  
> +	/* Now register all the child nodes */
> +	of_register_i2c_devices(adap, np);
> +
>  	return 0;
>  
>  error_cleanup:

Indeed.

Acked-by: Jean Delvare <khali@linux-fr.org>

-- 
Jean Delvare

^ permalink raw reply

* [PATCH] i2c: i2c-ibm_iic message can be confusing
From: Sean MacLennan @ 2009-02-02 17:01 UTC (permalink / raw)
  To: linuxppc-dev, Jean Delvare, ben-linux

This is a trivial patch that does not need to be in 2.6.29. While
tracking down an EEPROM problem, I found the messages confusing... it
looked like the EEPROM was being started before the I2C driver!

Here is an example:

at24 0-0052: 512 byte 24c04 EEPROM (writable)
ibm-iic ef600700.i2c: using standard (100 kHz) mode
ad7414 0-004a: chip found

It looks like the at24 starts first, then the i2c driver, then the
ad7414. By moving the message to after the of scan, we always get the
driver, then the devices.

Cheers,
   Sean

Print the i2c driver message before scanning for devices so that the
logs show the driver, then the devices. Currently you can get
device(s), driver, device(s).

Signed-off-by: Sean MacLennan <smaclennan@pikatech.com>
---
diff --git a/drivers/i2c/busses/i2c-ibm_iic.c b/drivers/i2c/busses/i2c-ibm_iic.c
index 88f0db7..7fc0729 100644
--- a/drivers/i2c/busses/i2c-ibm_iic.c
+++ b/drivers/i2c/busses/i2c-ibm_iic.c
@@ -756,12 +756,12 @@ static int __devinit iic_probe(struct of_device *ofdev,
 		goto error_cleanup;
 	}
 
-	/* Now register all the child nodes */
-	of_register_i2c_devices(adap, np);
-
 	dev_info(&ofdev->dev, "using %s mode\n",
 		 dev->fast_mode ? "fast (400 kHz)" : "standard (100 kHz)");
 
+	/* Now register all the child nodes */
+	of_register_i2c_devices(adap, np);
+
 	return 0;
 
 error_cleanup:
 

^ permalink raw reply related

* Re: [PATCH] Add support for the digsy MTC board.
From: Sean MacLennan @ 2009-02-02 16:52 UTC (permalink / raw)
  To: Grzegorz Bernacki; +Cc: linuxppc-dev
In-Reply-To: <498722F4.3070800@semihalf.com>

On Mon, 02 Feb 2009 17:44:36 +0100
"Grzegorz Bernacki" <gjb@semihalf.com> wrote:

> I enabled CONFIG_EEPROM_LEGACY in my defconfig and I can see eeprom 
> detected in dmesg and I can also read/write to it via file 
> /sys/bus/i2c/devices/0-0050/eeprom.

Thanks for trying that! Now I need to see what I am doing different.

Cheers,
   Sean

^ permalink raw reply

* Re: [PATCH] Add support for the digsy MTC board.
From: Grzegorz Bernacki @ 2009-02-02 16:44 UTC (permalink / raw)
  To: Sean MacLennan; +Cc: linuxppc-dev
In-Reply-To: <20090202111101.5f95bd8b@lappy.seanm.ca>

Sean MacLennan wrote:
> On Mon, 02 Feb 2009 13:50:59 +0100
> "Grzegorz Bernacki" <gjb@semihalf.com> wrote:
> 
> 
>> I would like to have support for following devices in defconfig for
>> digsy:
>> - LXT PHY
>> - RTC DS1337
>> - EEPROM AT24
>> - MTD partitioning based on OF description
> 
> I am seeing a problem where if I enable CONFIG_EEPROM_LEGACY and
> CONFIG_EEPROM_AT24, then the at24 driver does not work. Would you mind
> trying that?
> 

I enabled CONFIG_EEPROM_LEGACY in my defconfig and I can see eeprom 
detected in dmesg and I can also read/write to it via file 
/sys/bus/i2c/devices/0-0050/eeprom.

regards,
Grzesiek

^ permalink raw reply

* Re: [PATCH] Add support for the digsy MTC board.
From: Grzegorz Bernacki @ 2009-02-02 16:42 UTC (permalink / raw)
  To: Andre Schwarz; +Cc: linuxppc-dev
In-Reply-To: <49871C8C.8030200@matrix-vision.de>

Andre Schwarz wrote:
>>
>> BTW,
>> I noticed that there are some problems with mounting file system
>> over NFS on Linux-2.6.29-rc3, I see following messages:
>> ...
>> [  339.813807] nfs: server 192.168.1.1 not responding, still trying
>> [  339.832144] nfs: server 192.168.1.1 OK
>> ...
>>
>> I haven't noticed in on Linux-2.6.29-rc2. Is there any known problem?
>>
>>   
> We also had this kind of problem - after feeding some nfs options it
> worked :
> 
> rsize=8192,wsize=8192,soft,intr,tcp,nolock
> 
> 
> Cheers,
> Andre

Thanks,
it seems that it helps.

regards,
Grzesiek

^ permalink raw reply

* Re: Can not get PATA to work for Compact Flash with 2.6.28 kernel
From: Steven A. Falco @ 2009-02-02 16:37 UTC (permalink / raw)
  To: Lixin Yao; +Cc: linuxppc-dev
In-Reply-To: <03D77CA4AC7F4D48A6AB5DA3F1001B3F10A4B7@exchtxus2.HSTX.global.vpn>

Lixin Yao wrote:
> Hello, Steven,
> 
> I realized that and made change, I use reg-shift of 1 which u-boot uses
> and works for the CF.
> 
> localbus@f0010100 {
>       #address-cells = <2>;                   
>       #size-cells = <1>;
>       compatible = "fsl,mpc8248-localbus",    
>                    "fsl,pq2-localbus",
>                    "simple-bus"; 
>       reg = <0xf0010100 0x40>;                
>       ranges = <0x3 0x0 0x30000000 0x10000    
>                 0x4 0x0 0x40000000 0x10000>;  
> 
>       pata@3,0 {
>          compatible = "fsl,tr5000v2-pata", "ata-generic";
>          reg = <0x3 0x0 0x10 0x4 0xC 0x2>;   
>          reg-shift = <1>;                    
>          pio-mode = <6>;                     
>          // interrupts = <0x19 0x8>;         
>          // interrupt-parent = <&PIC>;       
>       };
> 
> 
> U-Boot (1.3.4) shows this:
> 
> bus 0: OK
>   Device 0: Model: SanDisk SDCFJ-128 Firm: HDX 2.27 Ser#:
> 116904C2505X4026
>             Type: Removable Hard Disk
>             Capacity: 122.5 MB = 0.1 GB (250880 x 512)
> 
> 
> This is the console output after setting reg = <0x3 0x0 0x10 0x4 0xC
> 0x2>:
> 
> ata_host_alloc: ENTER
> ata_port_alloc: ENTER
> __ata_port_freeze: ata4294967295 port frozen
> scsi0 : pata_platform
> ata1: PATA max PIO6 no IRQ, using PIO polling mmio cmd 0x30000000 ctl
> 0x4000000c

On my board, I get the following:

ata1: PATA max PIO6 mmio cmd 0x1c1000000 ctl 0x1c1000098 irq 32

Note that the addresses I provided got turned into 36-bit addresses
because I am using a PPC440EPx chip.

I am suspicious of the addresses you got, but I don't know enough
about how the mpc8248 sets up its memory map.  Perhaps someone with
knowledge of that chip can comment.

Have you hooked a logic analyzer to the device?  You should be sure
that the chip selects are really responding at the reported addresses.

Since the CF works with Uboot, at least we know the hardware is good.

	Steve


> ata_host_register: probe begin
> ata_port_schedule_eh: port EH scheduled
> ata_scsi_error: ENTER
> ata_port_flush_task: ENTER
> ata_eh_link_autopsy: ENTER
> ata_eh_recover: ENTER
> __ata_port_freeze: ata1 port frozen
> ata_sff_softreset: ENTER
> ata_sff_softreset: about to softreset, devmask=0
> ata_bus_softreset: ata1: bus reset via SRST
> ata_sff_softreset: EXIT, classes[0]=9 [1]=9
> ata_eh_thaw_port: ata1 port thawed
> ata_std_postreset: ENTER
> ata_std_postreset: EXIT
> ata_sff_postreset: EXIT, no device
> ata_eh_revalidate_and_attach: ENTER
> ata_eh_recover: EXIT, rc=0
> ata_scsi_error: EXIT
> ata_host_register: host probe begin
> TCP cubic registered
> NET: Registered protocol family 10
> IPv6 over IPv4 tunneling driver
> NET: Registered protocol family 17
> RPC: Registered udp transport module.
> RPC: Registered tcp transport module.
> ics1893_config_init() successful
> ADDRCONF(NETDEV_UP): eth0: link is not ready
> ics1893_config_init() successful
> IP-Config: Complete:
>      device=eth0, addr=172.20.16.150, mask=255.255.255.0,
> gw=172.20.16.1,
>      host=tr5000v2, domain=, nis-domain=(none),
>      bootserver=10.15.34.196, rootserver=10.15.34.196, rootpath=
> Looking up port of RPC 100003/2 on 10.15.34.196
> ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> Looking up port of RPC 100005/1 on 10.15.34.196
> VFS: Mounted root (nfs filesystem).
> Freeing unused kernel memory: 164k init
> ### Application running ...
> 
>  
> The San Disk CF is still not found.
> 
> Any more insights/ideas?
> 
> Thank you and I appreciate your help!
> 
> Lixin

^ permalink raw reply

* Re: Booting 2.6.29-rc3 on mpc8661d_hpcn failing
From: Martyn Welch @ 2009-02-02 16:20 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev list
In-Reply-To: <D06DAB0F-1477-4CA6-A06D-0F7B62939C86@kernel.crashing.org>

Kumar Gala wrote:
> 
> On Feb 2, 2009, at 10:00 AM, Martyn Welch wrote:
> 
>> Kumar Gala wrote:
>>> On Feb 2, 2009, at 3:36 AM, Martyn Welch wrote:
>>>> Becky Bruce wrote:
>>>>> On Jan 30, 2009, at 8:42 AM, Kumar Gala wrote:
>>>>>>
>>>>>> On Jan 30, 2009, at 6:31 AM, Martyn Welch wrote:
>>>>>>
>>>>>>> Hi Guys,
>>>>>>>
>>>>>>> It seems that 2.6.29-rc3 is not booting on the MPC8641 HPCN. I 
>>>>>>> have just updated u-boot to the latest git to see if that 
>>>>>>> improved matters, however I get stuck at the following. Any ideas?
>>>>>>
>>>>>> did you update your .dtb as well?
>>>>
>>>> Yup, just double checked it. SOC mapped at ffe00000. If I use the 
>>>> wrong DTB I don't get any serial output...
>>>>
>>>>> We've changed the memory map for that board in the latest u-boot, 
>>>>> which is why you need a new .dtb.  If this still failing, let me 
>>>>> know, and I'll give it a try on my board and see what's up since 
>>>>> this is probably my fault :)
>>>>
>>>> It appears the same problem is affecting our sbc610 as well, the 
>>>> location of the SOC hasn't changed on that board.
>>>>
>>>> Martyn
>>> Hm.. maybe try a git-bisect between 2.6.28 and 2.6.29-rc3?
>>
>> That's was today's "little" task. I was just in the process of writing 
>> an email :-)
>>
>> It got me to the following commit:
>>
>> commit 64b3d0e8122b422e879b23d42f9e0e8efbbf9744
>> Author: Benjamin Herrenschmidt <benh@kernel.crashing.org>
>>
>>   powerpc/mm: Rework usage of _PAGE_COHERENT/NO_CACHE/GUARDED
>>
>> I tried reverting it, but as I had kinda thought, that really didn't 
>> help.
>>
>> I'm just recompiling to check that I didn't screw-up during the 
>> bisection.
> 

Nope, didn't screw-up...

> Hmm.
> 
> take a look at this thread.
> 
> http://ozlabs.org/pipermail/linuxppc-dev/2009-January/067437.html
> 

...and that confirms that this issue has well and truly left this newbies comfort zone ;-)

Martyn

-- 
Martyn Welch MEng MPhil MIET (Principal Software Engineer)   T:+44(0)1327322748
GE Fanuc Intelligent Platforms Ltd,        |Registered in England and Wales
Tove Valley Business Park, Towcester,      |(3828642) at 100 Barbirolli Square,
Northants, NN12 6PF, UK T:+44(0)1327359444 |Manchester,M2 3AB  VAT:GB 729849476

^ permalink raw reply

* Re: [PATCH] Add support for the digsy MTC board.
From: Andre Schwarz @ 2009-02-02 16:17 UTC (permalink / raw)
  To: Grzegorz Bernacki; +Cc: linuxppc-dev
In-Reply-To: <4986EC33.9000600@semihalf.com>

Grzegorz Bernacki wrote:
> Grant Likely wrote:
>   
>>> +/dts-v1/;
>>> +
>>> +/ {
>>> +       model = "mtc,digsy";
>>> +       compatible = "mtc,digsy";
>>>       
>> This should be something like:  "intercontrol,digsy-mtc".  Compatible
>> values should be in the form "<vendor>,<model>".
>>
>>     
>
> ok, I will change it
>
>   
>>> +               mpc5200_pic: interrupt-controller@500 {
>>> +                       // 5200 interrupts are encoded into two levels;
>>> +                       interrupt-controller;
>>> +                       #interrupt-cells = <3>;
>>> +                       device_type = "interrupt-controller";
>>>       
>> Drop device_type here.
>>     
>
> ok, I will drop it
>
>   
>>> +                       compatible = "fsl,mpc5200b-pic","fsl,mpc5200-pic";
>>> +                       reg = <0x500 0x80>;
>>> +               };
>>> +
>>> +               timer@600 {     // General Purpose Timer
>>> +                       compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
>>> +                       cell-index = <0>;
>>>       
>> Drop cell-index on all the timer nodes.  If you compare this file with
>> the current cm5200.dts in mainline then you'll see the properties that
>> you can drop.
>>
>> Otherwise the device tree looks pretty good.
>>
>>     
>>> diff --git a/arch/powerpc/configs/52xx/digsy_mtc_defconfig b/arch/powerpc/configs/52xx/digsy_mtc_defconfig
>>> new file mode 100644
>>> index 0000000..ad70d5b
>>> --- /dev/null
>>> +++ b/arch/powerpc/configs/52xx/digsy_mtc_defconfig
>>>       
>
> I would like to have support for following devices in defconfig for digsy:
> - LXT PHY
> - RTC DS1337
> - EEPROM AT24
> - MTD partitioning based on OF description
>
> If you dont mind I can add them to generic mpc5200 defconfig, otherwise
> I think that separate defconfig is needed.
>
>   
>> Do you *really* need your own defconfig for the digsy_mtc.  I've
>> grudgingly accepted them for other boards under the argument that the
>> defconfig reflects a specific application of the board.  However, I'd
>> much rather see the digsy added to the multiplatform
>> mpc5200_defconfig, especially considering that the MTC looks like it's
>> supposed to be a general purpose platform.
>>     
>
>   
>> There is a lot of direct copy/paste from the lite5200.c board file,
>> but the big scary warning comment about not duplicating this code was
>> deleted in the copy (so I know you saw it).  Is Semihalf responsible
>> for the U-Boot port to the digsy-mtc?  If so then please fix the
>> port_config and clock settings in u-boot.
>>
>>     
>
> I will update port config and clock settings in u-boot and use mpc5200_simple
> instead of creating a new file for digsy.
>
> BTW,
> I noticed that there are some problems with mounting file system
> over NFS on Linux-2.6.29-rc3, I see following messages:
> ...
> [  339.813807] nfs: server 192.168.1.1 not responding, still trying
> [  339.832144] nfs: server 192.168.1.1 OK
> ...
>
> I haven't noticed in on Linux-2.6.29-rc2. Is there any known problem?
>
>   
We also had this kind of problem - after feeding some nfs options it 
worked :

rsize=8192,wsize=8192,soft,intr,tcp,nolock


Cheers,
Andre
> regards,
> Grzesiek
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
>   


MATRIX VISION GmbH, Talstraße 16, DE-71570 Oppenweiler
Registergericht: Amtsgericht Stuttgart, HRB 271090
Geschäftsführer: Gerhard Thullner, Werner Armingeon, Uwe Furtner, Hans-Joachim Reich

^ permalink raw reply

* Re: Booting 2.6.29-rc3 on mpc8661d_hpcn failing
From: Kumar Gala @ 2009-02-02 16:11 UTC (permalink / raw)
  To: Martyn Welch; +Cc: linuxppc-dev list
In-Reply-To: <498718B6.3030307@gefanuc.com>


On Feb 2, 2009, at 10:00 AM, Martyn Welch wrote:

> Kumar Gala wrote:
>> On Feb 2, 2009, at 3:36 AM, Martyn Welch wrote:
>>> Becky Bruce wrote:
>>>> On Jan 30, 2009, at 8:42 AM, Kumar Gala wrote:
>>>>>
>>>>> On Jan 30, 2009, at 6:31 AM, Martyn Welch wrote:
>>>>>
>>>>>> Hi Guys,
>>>>>>
>>>>>> It seems that 2.6.29-rc3 is not booting on the MPC8641 HPCN. I  
>>>>>> have just updated u-boot to the latest git to see if that  
>>>>>> improved matters, however I get stuck at the following. Any  
>>>>>> ideas?
>>>>>
>>>>> did you update your .dtb as well?
>>>
>>> Yup, just double checked it. SOC mapped at ffe00000. If I use the  
>>> wrong DTB I don't get any serial output...
>>>
>>>> We've changed the memory map for that board in the latest u-boot,  
>>>> which is why you need a new .dtb.  If this still failing, let me  
>>>> know, and I'll give it a try on my board and see what's up since  
>>>> this is probably my fault :)
>>>
>>> It appears the same problem is affecting our sbc610 as well, the  
>>> location of the SOC hasn't changed on that board.
>>>
>>> Martyn
>> Hm.. maybe try a git-bisect between 2.6.28 and 2.6.29-rc3?
>
> That's was today's "little" task. I was just in the process of  
> writing an email :-)
>
> It got me to the following commit:
>
> commit 64b3d0e8122b422e879b23d42f9e0e8efbbf9744
> Author: Benjamin Herrenschmidt <benh@kernel.crashing.org>
>
>   powerpc/mm: Rework usage of _PAGE_COHERENT/NO_CACHE/GUARDED
>
> I tried reverting it, but as I had kinda thought, that really didn't  
> help.
>
> I'm just recompiling to check that I didn't screw-up during the  
> bisection.

Hmm.

take a look at this thread.

http://ozlabs.org/pipermail/linuxppc-dev/2009-January/067437.html

- k

^ permalink raw reply

* Re: [PATCH] Add support for the digsy MTC board.
From: Sean MacLennan @ 2009-02-02 16:11 UTC (permalink / raw)
  To: Grzegorz Bernacki; +Cc: linuxppc-dev
In-Reply-To: <4986EC33.9000600@semihalf.com>

On Mon, 02 Feb 2009 13:50:59 +0100
"Grzegorz Bernacki" <gjb@semihalf.com> wrote:


> I would like to have support for following devices in defconfig for
> digsy:
> - LXT PHY
> - RTC DS1337
> - EEPROM AT24
> - MTD partitioning based on OF description

I am seeing a problem where if I enable CONFIG_EEPROM_LEGACY and
CONFIG_EEPROM_AT24, then the at24 driver does not work. Would you mind
trying that?

> BTW,
> I noticed that there are some problems with mounting file system
> over NFS on Linux-2.6.29-rc3, I see following messages:
> ...
> [  339.813807] nfs: server 192.168.1.1 not responding, still trying
> [  339.832144] nfs: server 192.168.1.1 OK
> ...
> 
> I haven't noticed in on Linux-2.6.29-rc2. Is there any known problem?

Does it only happen at mount time? We get this quite often at work,
but it never happens at home. I assumed it was just due to the flaky
networking at work.

Cheers,
   Sean

^ permalink raw reply

* [PATCH v2] Add support for the digsy MTC board.
From: Grzegorz Bernacki @ 2009-02-02 16:01 UTC (permalink / raw)
  To: linuxppc-dev

This is the InterControl custom device based on the MPC5200B chip.

Signed-off-by: Grzegorz Bernacki <gjb@semihalf.com>
---
Version 2:
 - change name in DTS and remove unnecessary fields
 - use mpc5200_simple.c file instead of dedicated file for digsy_mtc
 - update mpc5200_defconfig:
  - add support for RTC (ds1339)
  - add support for LXT PHY
  - add support for eeprom AT24
  - add support for MTD partitioning based on OF description
  - some updates automatically generated by 'make menuconfig'

 arch/powerpc/boot/dts/digsy_mtc.dts          |  278 ++++++++++++++++++++++++++
 arch/powerpc/configs/mpc5200_defconfig       |  176 +++++++++++++---
 arch/powerpc/platforms/52xx/mpc5200_simple.c |    1 +
 3 files changed, 423 insertions(+), 32 deletions(-)
 create mode 100644 arch/powerpc/boot/dts/digsy_mtc.dts

diff --git a/arch/powerpc/boot/dts/digsy_mtc.dts b/arch/powerpc/boot/dts/digsy_mtc.dts
new file mode 100644
index 0000000..9c76c38
--- /dev/null
+++ b/arch/powerpc/boot/dts/digsy_mtc.dts
@@ -0,0 +1,278 @@
+/*
+ * Digsy MTC board Device Tree Source
+ *
+ * Copyright (C) 2009 Semihalf
+ *
+ * Based on the CM5200 by M. Balakowicz
+ *
+ * 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.
+ */
+
+/dts-v1/;
+
+/ {
+	model = "intercontrol,digsy-mtc";
+	compatible = "intercontrol,digsy-mtc";
+	#address-cells = <1>;
+	#size-cells = <1>;
+
+	cpus {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		PowerPC,5200@0 {
+			device_type = "cpu";
+			reg = <0>;
+			d-cache-line-size = <32>;
+			i-cache-line-size = <32>;
+			d-cache-size = <0x4000>;		// L1, 16K
+			i-cache-size = <0x4000>;		// L1, 16K
+			timebase-frequency = <0>;	// from bootloader
+			bus-frequency = <0>;		// from bootloader
+			clock-frequency = <0>;		// from bootloader
+		};
+	};
+
+	memory {
+		device_type = "memory";
+		reg = <0x00000000 0x02000000>;	// 32MB
+	};
+
+	soc5200@f0000000 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "fsl,mpc5200b-immr";
+		ranges = <0 0xf0000000 0x0000c000>;
+		reg = <0xf0000000 0x00000100>;
+		bus-frequency = <0>;		// from bootloader
+		system-frequency = <0>;		// from bootloader
+
+		cdm@200 {
+			compatible = "fsl,mpc5200b-cdm","fsl,mpc5200-cdm";
+			reg = <0x200 0x38>;
+		};
+
+		mpc5200_pic: interrupt-controller@500 {
+			// 5200 interrupts are encoded into two levels;
+			interrupt-controller;
+			#interrupt-cells = <3>;
+			compatible = "fsl,mpc5200b-pic","fsl,mpc5200-pic";
+			reg = <0x500 0x80>;
+		};
+
+		timer@600 {	// General Purpose Timer
+			compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
+			reg = <0x600 0x10>;
+			interrupts = <1 9 0>;
+			interrupt-parent = <&mpc5200_pic>;
+			fsl,has-wdt;
+		};
+
+		timer@610 {	// General Purpose Timer
+			compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
+			reg = <0x610 0x10>;
+			interrupts = <1 10 0>;
+			interrupt-parent = <&mpc5200_pic>;
+		};
+
+		timer@620 {	// General Purpose Timer
+			compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
+			reg = <0x620 0x10>;
+			interrupts = <1 11 0>;
+			interrupt-parent = <&mpc5200_pic>;
+		};
+
+		timer@630 {	// General Purpose Timer
+			compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
+			reg = <0x630 0x10>;
+			interrupts = <1 12 0>;
+			interrupt-parent = <&mpc5200_pic>;
+		};
+
+		timer@640 {	// General Purpose Timer
+			compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
+			reg = <0x640 0x10>;
+			interrupts = <1 13 0>;
+			interrupt-parent = <&mpc5200_pic>;
+		};
+
+		timer@650 {	// General Purpose Timer
+			compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
+			reg = <0x650 0x10>;
+			interrupts = <1 14 0>;
+			interrupt-parent = <&mpc5200_pic>;
+		};
+
+		timer@660 {	// General Purpose Timer
+			compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
+			reg = <0x660 0x10>;
+			interrupts = <1 15 0>;
+			interrupt-parent = <&mpc5200_pic>;
+		};
+
+		timer@670 {	// General Purpose Timer
+			compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
+			reg = <0x670 0x10>;
+			interrupts = <1 16 0>;
+			interrupt-parent = <&mpc5200_pic>;
+		};
+
+		gpio@b00 {
+			compatible = "fsl,mpc5200b-gpio","fsl,mpc5200-gpio";
+			reg = <0xb00 0x40>;
+			interrupts = <1 7 0>;
+			interrupt-parent = <&mpc5200_pic>;
+		};
+
+		gpio@c00 {
+			compatible = "fsl,mpc5200b-gpio-wkup","fsl,mpc5200-gpio-wkup";
+			reg = <0xc00 0x40>;
+			interrupts = <1 8 0 0 3 0>;
+			interrupt-parent = <&mpc5200_pic>;
+		};
+
+		spi@f00 {
+			compatible = "fsl,mpc5200b-spi","fsl,mpc5200-spi";
+			reg = <0xf00 0x20>;
+			interrupts = <2 13 0 2 14 0>;
+			interrupt-parent = <&mpc5200_pic>;
+		};
+
+		usb@1000 {
+			compatible = "fsl,mpc5200b-ohci","fsl,mpc5200-ohci","ohci-be";
+			reg = <0x1000 0xff>;
+			interrupts = <2 6 0>;
+			interrupt-parent = <&mpc5200_pic>;
+		};
+
+		dma-controller@1200 {
+			device_type = "dma-controller";
+			compatible = "fsl,mpc5200b-bestcomm","fsl,mpc5200-bestcomm";
+			reg = <0x1200 0x80>;
+			interrupts = <3 0 0  3 1 0  3 2 0  3 3 0
+			              3 4 0  3 5 0  3 6 0  3 7 0
+			              3 8 0  3 9 0  3 10 0  3 11 0
+			              3 12 0  3 13 0  3 14 0  3 15 0>;
+			interrupt-parent = <&mpc5200_pic>;
+		};
+
+		xlb@1f00 {
+			compatible = "fsl,mpc5200b-xlb","fsl,mpc5200-xlb";
+			reg = <0x1f00 0x100>;
+		};
+
+		serial@2400 {		// PSC3
+			device_type = "serial";
+			compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
+			cell-index = <2>;
+			reg = <0x2400 0x100>;
+			interrupts = <2 3 0>;
+			interrupt-parent = <&mpc5200_pic>;
+		};
+
+		serial@2600 {		// PSC4
+			device_type = "serial";
+			compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
+			cell-index = <3>;
+			reg = <0x2600 0x100>;
+			interrupts = <2 11 0>;
+			interrupt-parent = <&mpc5200_pic>;
+		};
+
+		ethernet@3000 {
+			device_type = "network";
+			compatible = "fsl,mpc5200b-fec","fsl,mpc5200-fec";
+			reg = <0x3000 0x400>;
+			local-mac-address = [ 00 00 00 00 00 00 ];
+			interrupts = <2 5 0>;
+			interrupt-parent = <&mpc5200_pic>;
+			phy-handle = <&phy0>;
+		};
+
+		mdio@3000 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			compatible = "fsl,mpc5200b-mdio","fsl,mpc5200-mdio";
+			reg = <0x3000 0x400>;       // fec range, since we need to setup fec interrupts
+			interrupts = <2 5 0>;   // these are for "mii command finished", not link changes & co.
+			interrupt-parent = <&mpc5200_pic>;
+
+			phy0: ethernet-phy@0 {
+				device_type = "ethernet-phy";
+				reg = <0>;
+			};
+		};
+
+		ata@3a00 {
+			device_type = "ata";
+			compatible = "fsl,mpc5200b-ata","fsl,mpc5200-ata";
+			reg = <0x3a00 0x100>;
+			interrupts = <2 7 0>;
+			interrupt-parent = <&mpc5200_pic>;
+		};
+
+		i2c@3d00 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			compatible = "fsl,mpc5200b-i2c","fsl,mpc5200-i2c","fsl-i2c";
+			cell-index = <0>;
+			reg = <0x3d00 0x40>;
+			interrupts = <2 15 0>;
+			interrupt-parent = <&mpc5200_pic>;
+			fsl5200-clocking;
+
+			rtc@50 {
+				compatible = "at,24c08";
+				reg = <0x50>;
+			};
+
+			rtc@68 {
+				compatible = "dallas,ds1339";
+				reg = <0x68>;
+			};
+		};
+
+		sram@8000 {
+			compatible = "fsl,mpc5200b-sram","fsl,mpc5200-sram","sram";
+			reg = <0x8000 0x4000>;
+		};
+	};
+
+	lpb {
+		model = "fsl,lpb";
+		compatible = "fsl,lpb";
+		#address-cells = <2>;
+		#size-cells = <1>;
+		ranges = <0 0 0xff000000 0x1000000>;
+
+		// 16-bit flash device at LocalPlus Bus CS0
+		flash@0,0 {
+			compatible = "cfi-flash";
+			reg = <0 0 0x1000000>;
+			bank-width = <2>;
+			device-width = <2>;
+			#size-cells = <1>;
+			#address-cells = <1>;
+
+			partition@0 {
+				label = "kernel";
+				reg = <0x0 0x00200000>;
+			};
+			partition@200000 {
+				label = "root";
+				reg = <0x00200000 0x00300000>;
+			};
+			partition@500000 {
+				label = "user";
+				reg = <0x00500000 0x00a00000>;
+			};
+			partition@f00000 {
+				label = "u-boot";
+				reg = <0x00f00000 0x100000>;
+			};
+		};
+	};
+};
diff --git a/arch/powerpc/configs/mpc5200_defconfig b/arch/powerpc/configs/mpc5200_defconfig
index 5ff3de2..6e4e710 100644
--- a/arch/powerpc/configs/mpc5200_defconfig
+++ b/arch/powerpc/configs/mpc5200_defconfig
@@ -1,7 +1,7 @@
 #
 # Automatically generated make config: don't edit
-# Linux kernel version: 2.6.28-rc4
-# Thu Nov 13 02:09:07 2008
+# Linux kernel version: 2.6.29-rc3
+# Mon Feb  2 16:22:08 2009
 #
 # CONFIG_PPC64 is not set
 
@@ -43,7 +43,7 @@ CONFIG_GENERIC_FIND_NEXT_BIT=y
 CONFIG_PPC=y
 CONFIG_EARLY_PRINTK=y
 CONFIG_GENERIC_NVRAM=y
-CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y
+CONFIG_SCHED_OMIT_FRAME_POINTER=y
 CONFIG_ARCH_MAY_HAVE_PC_FDC=y
 CONFIG_PPC_OF=y
 CONFIG_OF=y
@@ -72,10 +72,19 @@ CONFIG_SYSVIPC_SYSCTL=y
 # CONFIG_BSD_PROCESS_ACCT is not set
 # CONFIG_TASKSTATS is not set
 # CONFIG_AUDIT is not set
+
+#
+# RCU Subsystem
+#
+CONFIG_CLASSIC_RCU=y
+# CONFIG_TREE_RCU is not set
+# CONFIG_PREEMPT_RCU is not set
+# CONFIG_TREE_RCU_TRACE is not set
+# CONFIG_PREEMPT_RCU_TRACE is not set
 # CONFIG_IKCONFIG is not set
 CONFIG_LOG_BUF_SHIFT=14
-# CONFIG_CGROUPS is not set
 # CONFIG_GROUP_SCHED is not set
+# CONFIG_CGROUPS is not set
 CONFIG_SYSFS_DEPRECATED=y
 CONFIG_SYSFS_DEPRECATED_V2=y
 # CONFIG_RELAY is not set
@@ -89,6 +98,7 @@ CONFIG_EMBEDDED=y
 # CONFIG_KALLSYMS is not set
 CONFIG_HOTPLUG=y
 CONFIG_PRINTK=y
+# CONFIG_LOGBUFFER is not set
 CONFIG_BUG=y
 CONFIG_ELF_CORE=y
 CONFIG_COMPAT_BRK=y
@@ -108,7 +118,6 @@ CONFIG_SLUB_DEBUG=y
 CONFIG_SLUB=y
 # CONFIG_SLOB is not set
 # CONFIG_PROFILING is not set
-# CONFIG_MARKERS is not set
 CONFIG_HAVE_OPROFILE=y
 CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y
 CONFIG_HAVE_IOREMAP_PROT=y
@@ -119,7 +128,6 @@ CONFIG_HAVE_CLK=y
 # CONFIG_HAVE_GENERIC_DMA_COHERENT is not set
 CONFIG_SLABINFO=y
 CONFIG_RT_MUTEXES=y
-# CONFIG_TINY_SHMEM is not set
 CONFIG_BASE_SMALL=0
 CONFIG_MODULES=y
 # CONFIG_MODULE_FORCE_LOAD is not set
@@ -127,11 +135,9 @@ CONFIG_MODULE_UNLOAD=y
 # CONFIG_MODULE_FORCE_UNLOAD is not set
 # CONFIG_MODVERSIONS is not set
 # CONFIG_MODULE_SRCVERSION_ALL is not set
-CONFIG_KMOD=y
 CONFIG_BLOCK=y
 # CONFIG_LBD is not set
 # CONFIG_BLK_DEV_IO_TRACE is not set
-# CONFIG_LSF is not set
 # CONFIG_BLK_DEV_BSG is not set
 # CONFIG_BLK_DEV_INTEGRITY is not set
 
@@ -147,7 +153,6 @@ CONFIG_DEFAULT_AS=y
 # CONFIG_DEFAULT_CFQ is not set
 # CONFIG_DEFAULT_NOOP is not set
 CONFIG_DEFAULT_IOSCHED="anticipatory"
-CONFIG_CLASSIC_RCU=y
 CONFIG_FREEZER=y
 
 #
@@ -192,7 +197,7 @@ CONFIG_RTAS_PROC=y
 CONFIG_PPC_BESTCOMM=y
 CONFIG_PPC_BESTCOMM_ATA=y
 CONFIG_PPC_BESTCOMM_FEC=y
-CONFIG_PPC_BESTCOMM_GEN_BD=y
+# CONFIG_SIMPLE_GPIO is not set
 
 #
 # Kernel options
@@ -220,6 +225,7 @@ CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
 CONFIG_ARCH_HAS_WALK_MEMORY=y
 CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y
 # CONFIG_KEXEC is not set
+# CONFIG_CRASH_DUMP is not set
 CONFIG_ARCH_FLATMEM_ENABLE=y
 CONFIG_ARCH_POPULATES_NODE_MAP=y
 CONFIG_SELECT_MEMORY_MODEL=y
@@ -231,12 +237,14 @@ CONFIG_FLAT_NODE_MEM_MAP=y
 CONFIG_PAGEFLAGS_EXTENDED=y
 CONFIG_SPLIT_PTLOCK_CPUS=4
 CONFIG_MIGRATION=y
-# CONFIG_RESOURCES_64BIT is not set
 # CONFIG_PHYS_ADDR_T_64BIT is not set
 CONFIG_ZONE_DMA_FLAG=1
 CONFIG_BOUNCE=y
 CONFIG_VIRT_TO_BUS=y
 CONFIG_UNEVICTABLE_LRU=y
+CONFIG_PPC_4K_PAGES=y
+# CONFIG_PPC_16K_PAGES is not set
+# CONFIG_PPC_64K_PAGES is not set
 CONFIG_FORCE_MAX_ZONEORDER=11
 CONFIG_PROC_DEVICETREE=y
 # CONFIG_CMDLINE_BOOL is not set
@@ -264,6 +272,7 @@ CONFIG_ARCH_SUPPORTS_MSI=y
 # CONFIG_PCI_MSI is not set
 CONFIG_PCI_LEGACY=y
 # CONFIG_PCI_DEBUG is not set
+# CONFIG_PCI_STUB is not set
 # CONFIG_PCCARD is not set
 # CONFIG_HOTPLUG_PCI is not set
 # CONFIG_HAS_RAPIDIO is not set
@@ -286,6 +295,7 @@ CONFIG_NET=y
 #
 # Networking options
 #
+CONFIG_COMPAT_NET_DEV_OPS=y
 CONFIG_PACKET=y
 # CONFIG_PACKET_MMAP is not set
 CONFIG_UNIX=y
@@ -342,6 +352,7 @@ CONFIG_DEFAULT_TCP_CONG="cubic"
 # CONFIG_ECONET is not set
 # CONFIG_WAN_ROUTER is not set
 # CONFIG_NET_SCHED is not set
+# CONFIG_DCB is not set
 
 #
 # Network testing
@@ -354,6 +365,7 @@ CONFIG_DEFAULT_TCP_CONG="cubic"
 # CONFIG_AF_RXRPC is not set
 # CONFIG_PHONET is not set
 # CONFIG_WIRELESS is not set
+# CONFIG_WIMAX is not set
 # CONFIG_RFKILL is not set
 # CONFIG_NET_9P is not set
 
@@ -376,9 +388,10 @@ CONFIG_MTD=y
 # CONFIG_MTD_DEBUG is not set
 CONFIG_MTD_CONCAT=y
 CONFIG_MTD_PARTITIONS=y
+# CONFIG_MTD_TESTS is not set
 # CONFIG_MTD_REDBOOT_PARTS is not set
 CONFIG_MTD_CMDLINE_PARTS=y
-# CONFIG_MTD_OF_PARTS is not set
+CONFIG_MTD_OF_PARTS=y
 # CONFIG_MTD_AR7_PARTS is not set
 
 #
@@ -447,6 +460,12 @@ CONFIG_MTD_PHYSMAP_OF=y
 # CONFIG_MTD_ONENAND is not set
 
 #
+# LPDDR flash memory drivers
+#
+# CONFIG_MTD_LPDDR is not set
+# CONFIG_MTD_QINFO_PROBE is not set
+
+#
 # UBI - Unsorted block images
 #
 # CONFIG_MTD_UBI is not set
@@ -474,13 +493,19 @@ CONFIG_BLK_DEV_RAM_SIZE=32768
 # CONFIG_BLK_DEV_HD is not set
 CONFIG_MISC_DEVICES=y
 # CONFIG_PHANTOM is not set
-# CONFIG_EEPROM_93CX6 is not set
 # CONFIG_SGI_IOC4 is not set
 # CONFIG_TIFM_CORE is not set
 # CONFIG_ICS932S401 is not set
 # CONFIG_ENCLOSURE_SERVICES is not set
 # CONFIG_HP_ILO is not set
 # CONFIG_C2PORT is not set
+
+#
+# EEPROM support
+#
+CONFIG_EEPROM_AT24=y
+# CONFIG_EEPROM_LEGACY is not set
+# CONFIG_EEPROM_93CX6 is not set
 CONFIG_HAVE_IDE=y
 # CONFIG_IDE is not set
 
@@ -539,6 +564,8 @@ CONFIG_SCSI_LOWLEVEL=y
 # CONFIG_MEGARAID_SAS is not set
 # CONFIG_SCSI_HPTIOP is not set
 # CONFIG_SCSI_BUSLOGIC is not set
+# CONFIG_LIBFC is not set
+# CONFIG_FCOE is not set
 # CONFIG_SCSI_DMX3191D is not set
 # CONFIG_SCSI_EATA is not set
 # CONFIG_SCSI_FUTURE_DOMAIN is not set
@@ -652,13 +679,16 @@ CONFIG_PHYLIB=y
 # CONFIG_MARVELL_PHY is not set
 # CONFIG_DAVICOM_PHY is not set
 # CONFIG_QSEMI_PHY is not set
-# CONFIG_LXT_PHY is not set
+CONFIG_LXT_PHY=y
 # CONFIG_CICADA_PHY is not set
 # CONFIG_VITESSE_PHY is not set
 # CONFIG_SMSC_PHY is not set
 # CONFIG_BROADCOM_PHY is not set
 # CONFIG_ICPLUS_PHY is not set
 # CONFIG_REALTEK_PHY is not set
+# CONFIG_NATIONAL_PHY is not set
+# CONFIG_STE10XP is not set
+# CONFIG_LSI_ET1011C_PHY is not set
 # CONFIG_FIXED_PHY is not set
 # CONFIG_MDIO_BITBANG is not set
 CONFIG_NET_ETHERNET=y
@@ -693,6 +723,10 @@ CONFIG_FEC_MPC52xx_MDIO=y
 # CONFIG_IWLWIFI_LEDS is not set
 
 #
+# Enable WiMAX (Networking options) to see the WiMAX drivers
+#
+
+#
 # USB Network Adapters
 #
 # CONFIG_USB_CATC is not set
@@ -774,17 +808,18 @@ CONFIG_SERIAL_MPC52xx_CONSOLE=y
 CONFIG_SERIAL_MPC52xx_CONSOLE_BAUD=115200
 # CONFIG_SERIAL_JSM is not set
 CONFIG_UNIX98_PTYS=y
+# CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set
 CONFIG_LEGACY_PTYS=y
 CONFIG_LEGACY_PTY_COUNT=256
 # CONFIG_HVC_RTAS is not set
+# CONFIG_HVC_UDBG is not set
 # CONFIG_IPMI_HANDLER is not set
 # CONFIG_HW_RANDOM is not set
 # CONFIG_NVRAM is not set
-CONFIG_GEN_RTC=y
-# CONFIG_GEN_RTC_X is not set
 # CONFIG_R3964 is not set
 # CONFIG_APPLICOM is not set
 # CONFIG_RAW_DRIVER is not set
+# CONFIG_BOOTCOUNT is not set
 # CONFIG_TCG_TPM is not set
 CONFIG_DEVPORT=y
 CONFIG_I2C=y
@@ -843,9 +878,9 @@ CONFIG_I2C_MPC=y
 #
 # Miscellaneous I2C Chip support
 #
+# CONFIG_SENSORS_24C01A is not set
+# CONFIG_SENSORS_AD7416 is not set
 # CONFIG_DS1682 is not set
-# CONFIG_EEPROM_AT24 is not set
-# CONFIG_EEPROM_LEGACY is not set
 # CONFIG_SENSORS_PCF8574 is not set
 # CONFIG_PCF8575 is not set
 # CONFIG_SENSORS_PCA9539 is not set
@@ -874,10 +909,12 @@ CONFIG_HWMON=y
 # CONFIG_SENSORS_ADT7462 is not set
 # CONFIG_SENSORS_ADT7470 is not set
 # CONFIG_SENSORS_ADT7473 is not set
+# CONFIG_SENSORS_ADT7475 is not set
 # CONFIG_SENSORS_ATXP1 is not set
 # CONFIG_SENSORS_DS1621 is not set
 # CONFIG_SENSORS_I5K_AMB is not set
 # CONFIG_SENSORS_F71805F is not set
+# CONFIG_SENSORS_FM75 is not set
 # CONFIG_SENSORS_F71882FG is not set
 # CONFIG_SENSORS_F75375S is not set
 # CONFIG_SENSORS_GL518SM is not set
@@ -894,6 +931,7 @@ CONFIG_HWMON=y
 # CONFIG_SENSORS_LM90 is not set
 # CONFIG_SENSORS_LM92 is not set
 # CONFIG_SENSORS_LM93 is not set
+# CONFIG_SENSORS_LTC4245 is not set
 # CONFIG_SENSORS_MAX1619 is not set
 # CONFIG_SENSORS_MAX6650 is not set
 # CONFIG_SENSORS_PC87360 is not set
@@ -906,6 +944,7 @@ CONFIG_HWMON=y
 # CONFIG_SENSORS_ADS7828 is not set
 # CONFIG_SENSORS_THMC50 is not set
 # CONFIG_SENSORS_VIA686A is not set
+# CONFIG_SENSORS_VT1115 is not set
 # CONFIG_SENSORS_VT1211 is not set
 # CONFIG_SENSORS_VT8231 is not set
 # CONFIG_SENSORS_W83781D is not set
@@ -925,9 +964,11 @@ CONFIG_WATCHDOG=y
 #
 # Watchdog Device Drivers
 #
+# CONFIG_WD is not set
 # CONFIG_SOFT_WATCHDOG is not set
 # CONFIG_ALIM7101_WDT is not set
 # CONFIG_MPC5200_WDT is not set
+# CONFIG_WDT_CHAIN is not set
 # CONFIG_WATCHDOG_RTAS is not set
 
 #
@@ -953,10 +994,12 @@ CONFIG_SSB_POSSIBLE=y
 # CONFIG_MFD_CORE is not set
 # CONFIG_MFD_SM501 is not set
 # CONFIG_HTC_PASIC3 is not set
+# CONFIG_TWL4030_CORE is not set
 # CONFIG_MFD_TMIO is not set
 # CONFIG_PMIC_DA903X is not set
 # CONFIG_MFD_WM8400 is not set
 # CONFIG_MFD_WM8350_I2C is not set
+# CONFIG_MFD_PCF50633 is not set
 # CONFIG_REGULATOR is not set
 
 #
@@ -1011,6 +1054,7 @@ CONFIG_FB_MODE_HELPERS=y
 #
 # Frame buffer hardware drivers
 #
+# CONFIG_FB_MB86290 is not set
 # CONFIG_FB_CIRRUS is not set
 # CONFIG_FB_PM2 is not set
 # CONFIG_FB_CYBER2000 is not set
@@ -1051,7 +1095,7 @@ CONFIG_LCD_CLASS_DEVICE=m
 # CONFIG_LCD_ILI9320 is not set
 # CONFIG_LCD_PLATFORM is not set
 CONFIG_BACKLIGHT_CLASS_DEVICE=y
-# CONFIG_BACKLIGHT_CORGI is not set
+CONFIG_BACKLIGHT_GENERIC=y
 
 #
 # Display device support
@@ -1093,21 +1137,22 @@ CONFIG_HID_COMPAT=y
 CONFIG_HID_A4TECH=y
 # CONFIG_HID_APPLE is not set
 CONFIG_HID_BELKIN=y
-CONFIG_HID_BRIGHT=y
 CONFIG_HID_CHERRY=y
 # CONFIG_HID_CHICONY is not set
 CONFIG_HID_CYPRESS=y
-CONFIG_HID_DELL=y
 CONFIG_HID_EZKEY=y
 # CONFIG_HID_GYRATION is not set
 # CONFIG_HID_LOGITECH is not set
 # CONFIG_HID_MICROSOFT is not set
 # CONFIG_HID_MONTEREY is not set
+# CONFIG_HID_NTRIG is not set
 # CONFIG_HID_PANTHERLORD is not set
 # CONFIG_HID_PETALYNX is not set
 # CONFIG_HID_SAMSUNG is not set
 # CONFIG_HID_SONY is not set
 # CONFIG_HID_SUNPLUS is not set
+# CONFIG_GREENASIA_FF is not set
+# CONFIG_HID_TOPSEED is not set
 # CONFIG_THRUSTMASTER_FF is not set
 # CONFIG_ZEROPLUS_FF is not set
 CONFIG_USB_SUPPORT=y
@@ -1137,6 +1182,7 @@ CONFIG_USB_MON=y
 #
 # CONFIG_USB_C67X00_HCD is not set
 # CONFIG_USB_EHCI_HCD is not set
+# CONFIG_USB_OXU210HP_HCD is not set
 # CONFIG_USB_ISP116X_HCD is not set
 # CONFIG_USB_ISP1760_HCD is not set
 CONFIG_USB_OHCI_HCD=y
@@ -1164,18 +1210,17 @@ CONFIG_USB_OHCI_LITTLE_ENDIAN=y
 # CONFIG_USB_TMC is not set
 
 #
-# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
+# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may also be needed;
 #
 
 #
-# may also be needed; see USB_STORAGE Help for more information
+# see USB_STORAGE Help for more information
 #
 CONFIG_USB_STORAGE=y
 # CONFIG_USB_STORAGE_DEBUG is not set
 # CONFIG_USB_STORAGE_DATAFAB is not set
 # CONFIG_USB_STORAGE_FREECOM is not set
 # CONFIG_USB_STORAGE_ISD200 is not set
-# CONFIG_USB_STORAGE_DPCM is not set
 # CONFIG_USB_STORAGE_USBAT is not set
 # CONFIG_USB_STORAGE_SDDR09 is not set
 # CONFIG_USB_STORAGE_SDDR55 is not set
@@ -1222,6 +1267,10 @@ CONFIG_USB_STORAGE=y
 # CONFIG_USB_ISIGHTFW is not set
 # CONFIG_USB_VST is not set
 # CONFIG_USB_GADGET is not set
+
+#
+# OTG and related infrastructure
+#
 # CONFIG_UWB is not set
 # CONFIG_MMC is not set
 # CONFIG_MEMSTICK is not set
@@ -1239,11 +1288,64 @@ CONFIG_NEW_LEDS=y
 # CONFIG_ACCESSIBILITY is not set
 # CONFIG_INFINIBAND is not set
 # CONFIG_EDAC is not set
-# CONFIG_RTC_CLASS is not set
+CONFIG_RTC_LIB=y
+CONFIG_RTC_CLASS=y
+CONFIG_RTC_HCTOSYS=y
+CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
+# CONFIG_RTC_DEBUG is not set
+
+#
+# RTC interfaces
+#
+CONFIG_RTC_INTF_SYSFS=y
+CONFIG_RTC_INTF_PROC=y
+CONFIG_RTC_INTF_DEV=y
+# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
+# CONFIG_RTC_DRV_TEST is not set
+
+#
+# I2C RTC drivers
+#
+CONFIG_RTC_DRV_DS1307=y
+# CONFIG_RTC_DRV_DS1374 is not set
+# CONFIG_RTC_DRV_DS1672 is not set
+# CONFIG_RTC_DRV_MAX6900 is not set
+# CONFIG_RTC_DRV_RS5C372 is not set
+# CONFIG_RTC_DRV_ISL1208 is not set
+# CONFIG_RTC_DRV_X1205 is not set
+# CONFIG_RTC_DRV_PCF8563 is not set
+# CONFIG_RTC_DRV_PCF8583 is not set
+# CONFIG_RTC_DRV_M41T80 is not set
+# CONFIG_RTC_DRV_S35390A is not set
+# CONFIG_RTC_DRV_FM3130 is not set
+# CONFIG_RTC_DRV_RX8581 is not set
+
+#
+# SPI RTC drivers
+#
+
+#
+# Platform RTC drivers
+#
+# CONFIG_RTC_DRV_CMOS is not set
+# CONFIG_RTC_DRV_DS1286 is not set
+# CONFIG_RTC_DRV_DS1511 is not set
+# CONFIG_RTC_DRV_DS1553 is not set
+# CONFIG_RTC_DRV_DS1742 is not set
+# CONFIG_RTC_DRV_STK17TA8 is not set
+# CONFIG_RTC_DRV_M48T86 is not set
+# CONFIG_RTC_DRV_M48T35 is not set
+# CONFIG_RTC_DRV_M48T59 is not set
+# CONFIG_RTC_DRV_BQ4802 is not set
+# CONFIG_RTC_DRV_V3020 is not set
+
+#
+# on-CPU RTC drivers
+#
+# CONFIG_RTC_DRV_PPC is not set
 # CONFIG_DMADEVICES is not set
 # CONFIG_UIO is not set
 # CONFIG_STAGING is not set
-CONFIG_STAGING_EXCLUDE_BUILD=y
 
 #
 # File systems
@@ -1264,6 +1366,7 @@ CONFIG_FS_MBCACHE=y
 CONFIG_FILE_LOCKING=y
 # CONFIG_XFS_FS is not set
 # CONFIG_OCFS2_FS is not set
+# CONFIG_BTRFS_FS is not set
 CONFIG_DNOTIFY=y
 CONFIG_INOTIFY=y
 CONFIG_INOTIFY_USER=y
@@ -1300,10 +1403,7 @@ CONFIG_TMPFS=y
 # CONFIG_TMPFS_POSIX_ACL is not set
 # CONFIG_HUGETLB_PAGE is not set
 # CONFIG_CONFIGFS_FS is not set
-
-#
-# Miscellaneous filesystems
-#
+CONFIG_MISC_FILESYSTEMS=y
 # CONFIG_ADFS_FS is not set
 # CONFIG_AFFS_FS is not set
 # CONFIG_HFS_FS is not set
@@ -1322,7 +1422,9 @@ CONFIG_JFFS2_ZLIB=y
 # CONFIG_JFFS2_LZO is not set
 CONFIG_JFFS2_RTIME=y
 # CONFIG_JFFS2_RUBIN is not set
+# CONFIG_YAFFS_FS is not set
 CONFIG_CRAMFS=y
+# CONFIG_SQUASHFS is not set
 # CONFIG_VXFS_FS is not set
 # CONFIG_MINIX_FS is not set
 # CONFIG_OMFS_FS is not set
@@ -1403,6 +1505,7 @@ CONFIG_NLS_ISO8859_1=y
 # Library routines
 #
 CONFIG_BITREVERSE=y
+CONFIG_GENERIC_FIND_LAST_BIT=y
 # CONFIG_CRC_CCITT is not set
 # CONFIG_CRC16 is not set
 # CONFIG_CRC_T10DIF is not set
@@ -1454,6 +1557,7 @@ CONFIG_DEBUG_INFO=y
 # CONFIG_DEBUG_MEMORY_INIT is not set
 # CONFIG_DEBUG_LIST is not set
 # CONFIG_DEBUG_SG is not set
+# CONFIG_DEBUG_NOTIFIERS is not set
 # CONFIG_BOOT_PRINTK_DELAY is not set
 # CONFIG_RCU_TORTURE_TEST is not set
 # CONFIG_RCU_CPU_STALL_DETECTOR is not set
@@ -1462,6 +1566,8 @@ CONFIG_DEBUG_INFO=y
 # CONFIG_FAULT_INJECTION is not set
 # CONFIG_LATENCYTOP is not set
 CONFIG_HAVE_FUNCTION_TRACER=y
+CONFIG_HAVE_DYNAMIC_FTRACE=y
+CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
 
 #
 # Tracers
@@ -1470,11 +1576,13 @@ CONFIG_HAVE_FUNCTION_TRACER=y
 # CONFIG_SCHED_TRACER is not set
 # CONFIG_CONTEXT_SWITCH_TRACER is not set
 # CONFIG_BOOT_TRACER is not set
+# CONFIG_TRACE_BRANCH_PROFILING is not set
 # CONFIG_STACK_TRACER is not set
 # CONFIG_DYNAMIC_PRINTK_DEBUG is not set
 # CONFIG_SAMPLES is not set
 CONFIG_HAVE_ARCH_KGDB=y
 # CONFIG_KGDB is not set
+CONFIG_PRINT_STACK_DEPTH=64
 # CONFIG_DEBUG_STACKOVERFLOW is not set
 # CONFIG_DEBUG_STACK_USAGE is not set
 # CONFIG_DEBUG_PAGEALLOC is not set
@@ -1501,11 +1609,15 @@ CONFIG_CRYPTO=y
 #
 # CONFIG_CRYPTO_FIPS is not set
 CONFIG_CRYPTO_ALGAPI=y
-CONFIG_CRYPTO_AEAD=y
+CONFIG_CRYPTO_ALGAPI2=y
+CONFIG_CRYPTO_AEAD2=y
 CONFIG_CRYPTO_BLKCIPHER=y
+CONFIG_CRYPTO_BLKCIPHER2=y
 CONFIG_CRYPTO_HASH=y
-CONFIG_CRYPTO_RNG=y
+CONFIG_CRYPTO_HASH2=y
+CONFIG_CRYPTO_RNG2=y
 CONFIG_CRYPTO_MANAGER=y
+CONFIG_CRYPTO_MANAGER2=y
 # CONFIG_CRYPTO_GF128MUL is not set
 # CONFIG_CRYPTO_NULL is not set
 # CONFIG_CRYPTO_CRYPTD is not set
diff --git a/arch/powerpc/platforms/52xx/mpc5200_simple.c b/arch/powerpc/platforms/52xx/mpc5200_simple.c
index a3bda0b..d5e1471 100644
--- a/arch/powerpc/platforms/52xx/mpc5200_simple.c
+++ b/arch/powerpc/platforms/52xx/mpc5200_simple.c
@@ -50,6 +50,7 @@ static void __init mpc5200_simple_setup_arch(void)
 
 /* list of the supported boards */
 static char *board[] __initdata = {
+	"intercontrol,digsy-mtc",
 	"promess,motionpro",
 	"phytec,pcm030",
 	"schindler,cm5200",
-- 
1.6.0.6

^ permalink raw reply related

* Re: [PATCH] add lm75 to mpc 837x rdb dts
From: Kumar Gala @ 2009-02-02 16:01 UTC (permalink / raw)
  To: Reynes Philippe; +Cc: linuxppc-dev
In-Reply-To: <761F451C5F17F74DAEE4661DA5ABBC1616C466@factorix.ISISTHIBAUD.local>


On Feb 2, 2009, at 9:59 AM, Reynes Philippe wrote:

> You're right, there no space in "national,lm75".
>
> Signed-off-by: Philippe Reynes <philippe.reynes@isismpp.fr>
> ---

applied to next

- k

^ permalink raw reply

* Re: Booting 2.6.29-rc3 on mpc8661d_hpcn failing
From: Martyn Welch @ 2009-02-02 16:00 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev list
In-Reply-To: <E00697F4-1313-49C2-9F8A-79FC9E511022@kernel.crashing.org>

Kumar Gala wrote:
> 
> On Feb 2, 2009, at 3:36 AM, Martyn Welch wrote:
> 
>> Becky Bruce wrote:
>>> On Jan 30, 2009, at 8:42 AM, Kumar Gala wrote:
>>>>
>>>> On Jan 30, 2009, at 6:31 AM, Martyn Welch wrote:
>>>>
>>>>> Hi Guys,
>>>>>
>>>>> It seems that 2.6.29-rc3 is not booting on the MPC8641 HPCN. I have 
>>>>> just updated u-boot to the latest git to see if that improved 
>>>>> matters, however I get stuck at the following. Any ideas?
>>>>
>>>> did you update your .dtb as well?
>>
>> Yup, just double checked it. SOC mapped at ffe00000. If I use the 
>> wrong DTB I don't get any serial output...
>>
>>> We've changed the memory map for that board in the latest u-boot, 
>>> which is why you need a new .dtb.  If this still failing, let me 
>>> know, and I'll give it a try on my board and see what's up since this 
>>> is probably my fault :)
>>
>> It appears the same problem is affecting our sbc610 as well, the 
>> location of the SOC hasn't changed on that board.
>>
>> Martyn
> 
> Hm.. maybe try a git-bisect between 2.6.28 and 2.6.29-rc3?
> 

That's was today's "little" task. I was just in the process of writing an email :-)

It got me to the following commit:

commit 64b3d0e8122b422e879b23d42f9e0e8efbbf9744
Author: Benjamin Herrenschmidt <benh@kernel.crashing.org>

    powerpc/mm: Rework usage of _PAGE_COHERENT/NO_CACHE/GUARDED

I tried reverting it, but as I had kinda thought, that really didn't help.

I'm just recompiling to check that I didn't screw-up during the bisection.

Martyn

-- 
Martyn Welch MEng MPhil MIET (Principal Software Engineer)   T:+44(0)1327322748
GE Fanuc Intelligent Platforms Ltd,        |Registered in England and Wales
Tove Valley Business Park, Towcester,      |(3828642) at 100 Barbirolli Square,
Northants, NN12 6PF, UK T:+44(0)1327359444 |Manchester,M2 3AB  VAT:GB 729849476

^ permalink raw reply

* Re: [PATCH] add lm75 to mpc 837x rdb dts
From: Kumar Gala @ 2009-02-02 16:00 UTC (permalink / raw)
  To: Reynes Philippe; +Cc: linuxppc-dev
In-Reply-To: <761F451C5F17F74DAEE4661DA5ABBC1616C466@factorix.ISISTHIBAUD.local>


On Feb 2, 2009, at 9:59 AM, Reynes Philippe wrote:

> You're right, there no space in "national,lm75".

in the future such comments are best placed after the ---.

- k

>
>
> Signed-off-by: Philippe Reynes <philippe.reynes@isismpp.fr>
> ---
> diff --git a/arch/powerpc/boot/dts/mpc8377_rdb.dts b/arch/powerpc/ 
> boot/dts/mpc8377_rdb.dts
> index e747486..54b4520 100644
> --- a/arch/powerpc/boot/dts/mpc8377_rdb.dts
> +++ b/arch/powerpc/boot/dts/mpc8377_rdb.dts
> @@ -137,6 +137,11 @@

^ permalink raw reply

* RE: [PATCH] add lm75 to mpc 837x rdb dts
From: Reynes Philippe @ 2009-02-02 15:59 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev
In-Reply-To: <408550B3-4109-4164-BE42-15D6B6A96871@freescale.com>

You're right, there no space in "national,lm75".

Signed-off-by: Philippe Reynes <philippe.reynes@isismpp.fr>
---
diff --git a/arch/powerpc/boot/dts/mpc8377_rdb.dts =
b/arch/powerpc/boot/dts/mpc8377_rdb.dts
index e747486..54b4520 100644
--- a/arch/powerpc/boot/dts/mpc8377_rdb.dts
+++ b/arch/powerpc/boot/dts/mpc8377_rdb.dts
@@ -137,6 +137,11 @@
 			interrupt-parent =3D <&ipic>;
 			dfsrr;
=20
+			dtt@48 {
+				compatible =3D "national,lm75";
+				reg =3D <0x48>;
+			};
+
 			at24@50 {
 				compatible =3D "at24,24c256";
 				reg =3D <0x50>;
diff --git a/arch/powerpc/boot/dts/mpc8378_rdb.dts =
b/arch/powerpc/boot/dts/mpc8378_rdb.dts
index f4c8682..7243374 100644
--- a/arch/powerpc/boot/dts/mpc8378_rdb.dts
+++ b/arch/powerpc/boot/dts/mpc8378_rdb.dts
@@ -137,6 +137,11 @@
 			interrupt-parent =3D <&ipic>;
 			dfsrr;
=20
+			dtt@48 {
+				compatible =3D "national,lm75";
+				reg =3D <0x48>;
+			};
+
 			at24@50 {
 				compatible =3D "at24,24c256";
 				reg =3D <0x50>;
diff --git a/arch/powerpc/boot/dts/mpc8379_rdb.dts =
b/arch/powerpc/boot/dts/mpc8379_rdb.dts
index 1985cef..6dac476 100644
--- a/arch/powerpc/boot/dts/mpc8379_rdb.dts
+++ b/arch/powerpc/boot/dts/mpc8379_rdb.dts
@@ -135,6 +135,11 @@
 			interrupt-parent =3D <&ipic>;
 			dfsrr;
=20
+			dtt@48 {
+				compatible =3D "national,lm75";
+				reg =3D <0x48>;
+			};
+
 			at24@50 {
 				compatible =3D "at24,24c256";
 				reg =3D <0x50>;

^ permalink raw reply related

* RE: Can not get PATA to work for Compact Flash with 2.6.28 kernel
From: Lixin Yao @ 2009-02-02 15:52 UTC (permalink / raw)
  To: Steven A. Falco; +Cc: linuxppc-dev
In-Reply-To: <49870A66.8030302@harris.com>

Hello, Steven,

I realized that and made change, I use reg-shift of 1 which u-boot uses
and works for the CF.

localbus@f0010100 {
      #address-cells =3D <2>;                  =20
      #size-cells =3D <1>;
      compatible =3D "fsl,mpc8248-localbus",   =20
                   "fsl,pq2-localbus",
                   "simple-bus";=20
      reg =3D <0xf0010100 0x40>;               =20
      ranges =3D <0x3 0x0 0x30000000 0x10000   =20
                0x4 0x0 0x40000000 0x10000>; =20

      pata@3,0 {
         compatible =3D "fsl,tr5000v2-pata", "ata-generic";
         reg =3D <0x3 0x0 0x10 0x4 0xC 0x2>;  =20
         reg-shift =3D <1>;                   =20
         pio-mode =3D <6>;                    =20
         // interrupts =3D <0x19 0x8>;        =20
         // interrupt-parent =3D <&PIC>;      =20
      };


U-Boot (1.3.4) shows this:

bus 0: OK
  Device 0: Model: SanDisk SDCFJ-128 Firm: HDX 2.27 Ser#:
116904C2505X4026
            Type: Removable Hard Disk
            Capacity: 122.5 MB =3D 0.1 GB (250880 x 512)


This is the console output after setting reg =3D <0x3 0x0 0x10 0x4 0xC
0x2>:

ata_host_alloc: ENTER
ata_port_alloc: ENTER
__ata_port_freeze: ata4294967295 port frozen
scsi0 : pata_platform
ata1: PATA max PIO6 no IRQ, using PIO polling mmio cmd 0x30000000 ctl
0x4000000c
ata_host_register: probe begin
ata_port_schedule_eh: port EH scheduled
ata_scsi_error: ENTER
ata_port_flush_task: ENTER
ata_eh_link_autopsy: ENTER
ata_eh_recover: ENTER
__ata_port_freeze: ata1 port frozen
ata_sff_softreset: ENTER
ata_sff_softreset: about to softreset, devmask=3D0
ata_bus_softreset: ata1: bus reset via SRST
ata_sff_softreset: EXIT, classes[0]=3D9 [1]=3D9
ata_eh_thaw_port: ata1 port thawed
ata_std_postreset: ENTER
ata_std_postreset: EXIT
ata_sff_postreset: EXIT, no device
ata_eh_revalidate_and_attach: ENTER
ata_eh_recover: EXIT, rc=3D0
ata_scsi_error: EXIT
ata_host_register: host probe begin
TCP cubic registered
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
ics1893_config_init() successful
ADDRCONF(NETDEV_UP): eth0: link is not ready
ics1893_config_init() successful
IP-Config: Complete:
     device=3Deth0, addr=3D172.20.16.150, mask=3D255.255.255.0,
gw=3D172.20.16.1,
     host=3Dtr5000v2, domain=3D, nis-domain=3D(none),
     bootserver=3D10.15.34.196, rootserver=3D10.15.34.196, rootpath=3D
Looking up port of RPC 100003/2 on 10.15.34.196
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Looking up port of RPC 100005/1 on 10.15.34.196
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 164k init
### Application running ...

=20
The San Disk CF is still not found.

Any more insights/ideas?

Thank you and I appreciate your help!

Lixin

-----Original Message-----
From: Steven A. Falco [mailto:sfalco@harris.com]=20
Sent: Monday, February 02, 2009 10:00 AM
To: Lixin Yao
Cc: linuxppc-dev@ozlabs.org
Subject: Re: Can not get PATA to work for Compact Flash with 2.6.28
kernel

Lixin Yao wrote:
>=20
>=20
> I use a San Disk compact flash (CF) card on a board with MPC8248
> processor. The CF is connected to data and address bus of the
processor
> and operates in TRUE IDE mode. The registers are memory mapped. I can
> read the file system on the CF in u-boot (1.3.4). U-boot can identify
> the CF and mount file system correctly.
>=20
> The hardware is known good hardware.
>=20
> I use 2.6.28 kernel and configured support for PATA for the CF.

The second register set does not start at register 0.  It starts
at register 6.  We are using 1 chip select from the processor,
and generate two chip selects to the CF that are 0x80 apart (on
a sequoia board).

So here is what I am using on the modified sequoia board.  Note
the 0x00000098 - you might think it should be 0x00000080 as per
the discussion above, but because the second register set starts
at 6, you have to build that into the address. =20

pata@1,0 {
compatible =3D "harris,hydra_temp-pata", "ata-generic";
bank-width =3D <2>;
reg =3D <0x00000001 0x00000000 0x00000020 0x00000001 0x00000098
0x00000004>;
reg-shift =3D <2>;
pio-mode =3D <6>;
interrupt-parent =3D <&UIC0>;
interrupts =3D <0x1b 0x4>;
};

	Steve

^ permalink raw reply

* Re: [PATCH 0/6] USB: Fixes for fsl_qe_udc driver
From: Anton Vorontsov @ 2009-02-02 15:50 UTC (permalink / raw)
  To: Greg KH
  Cc: David Brownell, linux-usb, linux-kernel Kernel, linuxppc-dev list,
	Alan Stern, Andrew Morton, Li Yang, Timur Tabi
In-Reply-To: <20090113164001.GA14370@kroah.com>

On Tue, Jan 13, 2009 at 08:40:01AM -0800, Greg KH wrote:
> On Tue, Jan 13, 2009 at 09:49:39AM -0600, Kumar Gala wrote:
> > On Jan 6, 2009, at 10:53 PM, Greg KH wrote:
> >> On Tue, Jan 06, 2009 at 10:44:13PM -0600, Kumar Gala wrote:
> >>> On Dec 25, 2008, at 8:14 AM, Anton Vorontsov wrote:
> >>>> Hi all,
> >>>>
> >>>> Just resending some fixes that seem to be lost...
> >>>
> >>> Greg,
> >>>
> >>> What happened w/this patch set?
> >>
> >> As it was sent during the hollidays (on Christmas day at that), it's
> >> still in my "to-review" queue.  I'll get to it in a few days after I
> >> resync the USB tree with Linus.
> >
> > Any update on the review of these 6 patches?
> 
> It's in my queue, been busy with "real work" for a bit right now,
> sorry...

Hello Greg,

Can you please look into these patches? I think they all are 2.6.29
material, since the QE UDC driver is barely usable w/o these fixes.

Thanks,

p.s. And thank you for merging the FHCI driver!

-- 
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2

^ permalink raw reply

* Re: Booting 2.6.29-rc3 on mpc8661d_hpcn failing
From: Kumar Gala @ 2009-02-02 15:45 UTC (permalink / raw)
  To: Martyn Welch; +Cc: linuxppc-dev list
In-Reply-To: <4986BEB9.3030606@gefanuc.com>


On Feb 2, 2009, at 3:36 AM, Martyn Welch wrote:

> Becky Bruce wrote:
>> On Jan 30, 2009, at 8:42 AM, Kumar Gala wrote:
>>>
>>> On Jan 30, 2009, at 6:31 AM, Martyn Welch wrote:
>>>
>>>> Hi Guys,
>>>>
>>>> It seems that 2.6.29-rc3 is not booting on the MPC8641 HPCN. I  
>>>> have just updated u-boot to the latest git to see if that  
>>>> improved matters, however I get stuck at the following. Any ideas?
>>>
>>> did you update your .dtb as well?
>
> Yup, just double checked it. SOC mapped at ffe00000. If I use the  
> wrong DTB I don't get any serial output...
>
>> We've changed the memory map for that board in the latest u-boot,  
>> which is why you need a new .dtb.  If this still failing, let me  
>> know, and I'll give it a try on my board and see what's up since  
>> this is probably my fault :)
>
> It appears the same problem is affecting our sbc610 as well, the  
> location of the SOC hasn't changed on that board.
>
> Martyn

Hm.. maybe try a git-bisect between 2.6.28 and 2.6.29-rc3?

- k

^ permalink raw reply

* Re: [PATCH] PowerPC: MPC85xx: TQM85xx: add i2c device nodes for LM75
From: Kumar Gala @ 2009-02-02 15:39 UTC (permalink / raw)
  To: Wolfgang Grandegger; +Cc: linuxppc-dev
In-Reply-To: <4981A5CD.1050203@grandegger.com>


On Jan 29, 2009, at 6:49 AM, Wolfgang Grandegger wrote:

> Automatic I2C device probing is not done any more. Therefore we need
> proper DTS device node definitions for the I2C LM75 thermal sensor on
> the TQM85xx modules.
>
> Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
> ---
> arch/powerpc/boot/dts/tqm8540.dts          |    5 +++++
> arch/powerpc/boot/dts/tqm8541.dts          |    5 +++++
> arch/powerpc/boot/dts/tqm8548-bigflash.dts |    5 +++++
> arch/powerpc/boot/dts/tqm8548.dts          |    5 +++++
> arch/powerpc/boot/dts/tqm8555.dts          |    5 +++++
> arch/powerpc/boot/dts/tqm8560.dts          |    5 +++++
> 6 files changed, 30 insertions(+)


applied to next

- k

^ permalink raw reply

* Re: [PATCH] PowerPC: MPC85xx: TQM85xx: fix sensitivity of CAN interrupts
From: Kumar Gala @ 2009-02-02 15:39 UTC (permalink / raw)
  To: Wolfgang Grandegger; +Cc: linuxppc-dev
In-Reply-To: <4981ADC9.3000009@grandegger.com>


On Jan 29, 2009, at 7:23 AM, Wolfgang Grandegger wrote:

> Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
> ---
> arch/powerpc/boot/dts/tqm8548-bigflash.dts |    4 ++--
> arch/powerpc/boot/dts/tqm8548.dts          |    4 ++--
> arch/powerpc/boot/dts/tqm8560.dts          |    4 ++--
> 3 files changed, 6 insertions(+), 6 deletions(-)

applied to next

- k

^ permalink raw reply

* Re: [PATCH] add gpio to mpc837X rdb
From: Kumar Gala @ 2009-02-02 15:39 UTC (permalink / raw)
  To: Reynes Philippe; +Cc: linuxppc-dev list
In-Reply-To: <761F451C5F17F74DAEE4661DA5ABBC1616C464@factorix.ISISTHIBAUD.local>


On Feb 2, 2009, at 8:52 AM, Reynes Philippe wrote:

> Signed-off-by: Philippe Reynes <philippe.reynes@isismpp.fr>
> ---

applied to next.

(what about my comments on the lm75 patch?)

- k

^ permalink raw reply

* RE: [PATCH] add gpio to mpc837X rdb
From: Reynes Philippe @ 2009-02-02 14:52 UTC (permalink / raw)
  To: Peter Korsgaard; +Cc: linuxppc-dev list, Kumar Gala
In-Reply-To: <877i49gh1g.fsf@macbook.be.48ers.dk>

Signed-off-by: Philippe Reynes <philippe.reynes@isismpp.fr>
---
Index: powerpc/arch/powerpc/boot/dts/mpc8377_rdb.dts
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- powerpc.orig/arch/powerpc/boot/dts/mpc8377_rdb.dts
+++ powerpc/arch/powerpc/boot/dts/mpc8377_rdb.dts
@@ -109,6 +109,24 @@
 			reg =3D <0x200 0x100>;
 		};
=20
+		gpio1: gpio-controller@c00 {
+			#gpio-cells =3D <2>;
+			compatible =3D "fsl,mpc8377-gpio", "fsl,mpc8349-gpio";
+			reg =3D <0xc00 0x100>;
+			interrupts =3D <74 0x8>;
+			interrupt-parent =3D <&ipic>;
+			gpio-controller;
+		};
+
+		gpio2: gpio-controller@d00 {
+			#gpio-cells =3D <2>;
+			compatible =3D "fsl,mpc8377-gpio", "fsl,mpc8349-gpio";
+			reg =3D <0xd00 0x100>;
+			interrupts =3D <75 0x8>;
+			interrupt-parent =3D <&ipic>;
+			gpio-controller;
+		};
+
 		i2c@3000 {
 			#address-cells =3D <1>;
 			#size-cells =3D <0>;
Index: powerpc/arch/powerpc/boot/dts/mpc8378_rdb.dts
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- powerpc.orig/arch/powerpc/boot/dts/mpc8378_rdb.dts
+++ powerpc/arch/powerpc/boot/dts/mpc8378_rdb.dts
@@ -109,6 +109,24 @@
 			reg =3D <0x200 0x100>;
 		};
=20
+		gpio1: gpio-controller@c00 {
+			#gpio-cells =3D <2>;
+			compatible =3D "fsl,mpc8378-gpio", "fsl,mpc8349-gpio";
+			reg =3D <0xc00 0x100>;
+			interrupts =3D <74 0x8>;
+			interrupt-parent =3D <&ipic>;
+			gpio-controller;
+		};
+
+		gpio2: gpio-controller@d00 {
+			#gpio-cells =3D <2>;
+			compatible =3D "fsl,mpc8378-gpio", "fsl,mpc8349-gpio";
+			reg =3D <0xd00 0x100>;
+			interrupts =3D <75 0x8>;
+			interrupt-parent =3D <&ipic>;
+			gpio-controller;
+		};
+
 		i2c@3000 {
 			#address-cells =3D <1>;
 			#size-cells =3D <0>;
Index: powerpc/arch/powerpc/boot/dts/mpc8379_rdb.dts
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- powerpc.orig/arch/powerpc/boot/dts/mpc8379_rdb.dts
+++ powerpc/arch/powerpc/boot/dts/mpc8379_rdb.dts
@@ -107,6 +107,24 @@
 			reg =3D <0x200 0x100>;
 		};
=20
+		gpio1: gpio-controller@c00 {
+			#gpio-cells =3D <2>;
+			compatible =3D "fsl,mpc8379-gpio", "fsl,mpc8349-gpio";
+			reg =3D <0xc00 0x100>;
+			interrupts =3D <74 0x8>;
+			interrupt-parent =3D <&ipic>;
+			gpio-controller;
+		};
+
+		gpio2: gpio-controller@d00 {
+			#gpio-cells =3D <2>;
+			compatible =3D "fsl,mpc8379-gpio", "fsl,mpc8349-gpio";
+			reg =3D <0xd00 0x100>;
+			interrupts =3D <75 0x8>;
+			interrupt-parent =3D <&ipic>;
+			gpio-controller;
+		};
+
 		i2c@3000 {
 			#address-cells =3D <1>;
 			#size-cells =3D <0>;

^ permalink raw reply


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox