Add support for ARIA board
Subsystems (9)
cover Add support for ARIA board
The following patch series adds support for the ARIA board.
ARIA is a MPC5121e based COM Express board by Dave/DENX.
[PATCH 01/04] mpc5121: prepare support for additional boards [PATCH 02/04] ARIA: add device tree source file [PATCH 03/04] mpc5121: add support for ARIA board [PATCH 04/04] ARIA: add default config file
[PATCH 05/04] *** NOT FOR RELEASE *** HACK *** Work around MII clock issue ***
[This is actually not a patch for inclusion but a call for help.]
The patches are based on v2.6.30-rc4 and cover the following items:
- platform, DTS
- DMA
- FEC Ethernet
- UART (without h/w flow control)
- NAND
---
Summary statistics:
arch/powerpc/boot/dts/aria.dts | 407 ++++++ arch/powerpc/configs/512x/aria_defconfig | 1789 ++++++++++++++++++++++++ arch/powerpc/configs/512x/mpc5121ads_defconfig | 1190 ++++++++++++++++ arch/powerpc/platforms/512x/Kconfig | 9 + arch/powerpc/platforms/512x/Makefile | 1 + arch/powerpc/platforms/512x/aria.c | 70 + arch/powerpc/platforms/512x/mpc5121_generic.c | 1 + drivers/net/fs_enet/mii-fec.c | 6 +- [by patch 05] 8 files changed, 3472 insertions(+), 1 deletions(-)
PATCH 1/4 mpc5121: prepare support for additional boards
As more MPC512x based boards will be coming soon, a new directory arch/powerpc/configs/512x/ for board specific config files is created, following the example of other processor families.
In a first step, we just copy (and update) the existing defconfig file for the mpc5121ads board. When new boards get added, the old arch/powerpc/configs/mpc5121_defconfig file will get adjusted to allow for a generic kernel image for MPC512x based boards.
--- arch/powerpc/configs/512x/mpc5121ads_defconfig | 1190 ++++++++++++++++++++++++ 1 files changed, 1190 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/configs/512x/mpc5121ads_defconfig
arch/powerpc/configs/512x/mpc5121ads_defconfig new file +1190 -0
@@ -0,0 +1,1190 @@ +# +# Automatically generated make config: don't edit +# Linux kernel version: 2.6.30-rc4 +# Wed May 6 20:48:17 2009 +# +# CONFIG_PPC64 is not set + +# +# Processor support +# +CONFIG_6xx=y +# CONFIG_PPC_85xx is not set +# CONFIG_PPC_8xx is not set +# CONFIG_40x is not set +# CONFIG_44x is not set +# CONFIG_E200 is not set +CONFIG_PPC_BOOK3S=y +CONFIG_PPC_FPU=y +# CONFIG_ALTIVEC is not set +CONFIG_PPC_STD_MMU=y +CONFIG_PPC_STD_MMU_32=y +# CONFIG_PPC_MM_SLICES is not set +# CONFIG_SMP is not set +CONFIG_NOT_COHERENT_CACHE=y +CONFIG_PPC32=y +CONFIG_WORD_SIZE=32 +# CONFIG_ARCH_PHYS_ADDR_T_64BIT is not set +CONFIG_MMU=y +CONFIG_GENERIC_CMOS_UPDATE=y +CONFIG_GENERIC_TIME=y +CONFIG_GENERIC_TIME_VSYSCALL=y +CONFIG_GENERIC_CLOCKEVENTS=y +CONFIG_GENERIC_HARDIRQS=y +# CONFIG_HAVE_SETUP_PER_CPU_AREA is not set +CONFIG_IRQ_PER_CPU=y +CONFIG_STACKTRACE_SUPPORT=y +CONFIG_HAVE_LATENCYTOP_SUPPORT=y +CONFIG_LOCKDEP_SUPPORT=y +CONFIG_RWSEM_XCHGADD_ALGORITHM=y +CONFIG_ARCH_HAS_ILOG2_U32=y +CONFIG_GENERIC_HWEIGHT=y +CONFIG_GENERIC_CALIBRATE_DELAY=y +CONFIG_GENERIC_FIND_NEXT_BIT=y +# CONFIG_ARCH_NO_VIRT_TO_BUS is not set +CONFIG_PPC=y +CONFIG_EARLY_PRINTK=y +CONFIG_GENERIC_NVRAM=y +CONFIG_SCHED_OMIT_FRAME_POINTER=y +CONFIG_ARCH_MAY_HAVE_PC_FDC=y +CONFIG_PPC_OF=y +CONFIG_OF=y +# CONFIG_PPC_UDBG_16550 is not set +# CONFIG_GENERIC_TBSYNC is not set +CONFIG_AUDIT_ARCH=y +CONFIG_GENERIC_BUG=y +CONFIG_DEFAULT_UIMAGE=y +# CONFIG_PPC_DCR_NATIVE is not set +# CONFIG_PPC_DCR_MMIO is not set +CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y +CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" + +# +# General setup +# +CONFIG_EXPERIMENTAL=y +CONFIG_BROKEN_ON_SMP=y +CONFIG_INIT_ENV_ARG_LIMIT=32 +CONFIG_LOCALVERSION="" +CONFIG_LOCALVERSION_AUTO=y +# CONFIG_SWAP is not set +CONFIG_SYSVIPC=y +CONFIG_SYSVIPC_SYSCTL=y +# CONFIG_POSIX_MQUEUE is not set +# 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=16 +# 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 +CONFIG_NAMESPACES=y +# CONFIG_UTS_NS is not set +# CONFIG_IPC_NS is not set +# CONFIG_USER_NS is not set +# CONFIG_PID_NS is not set +# CONFIG_NET_NS is not set +CONFIG_BLK_DEV_INITRD=y +CONFIG_INITRAMFS_SOURCE="" +CONFIG_RD_GZIP=y +CONFIG_RD_BZIP2=y +CONFIG_RD_LZMA=y +# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set +CONFIG_SYSCTL=y +CONFIG_ANON_INODES=y +# CONFIG_EMBEDDED is not set +CONFIG_SYSCTL_SYSCALL=y +CONFIG_KALLSYMS=y +# CONFIG_KALLSYMS_EXTRA_PASS is not set +# CONFIG_STRIP_ASM_SYMS is not set +CONFIG_HOTPLUG=y +CONFIG_PRINTK=y +CONFIG_BUG=y +CONFIG_ELF_CORE=y +CONFIG_BASE_FULL=y +CONFIG_FUTEX=y +CONFIG_EPOLL=y +CONFIG_SIGNALFD=y +CONFIG_TIMERFD=y +CONFIG_EVENTFD=y +CONFIG_SHMEM=y +CONFIG_AIO=y +CONFIG_VM_EVENT_COUNTERS=y +CONFIG_PCI_QUIRKS=y +# CONFIG_COMPAT_BRK is not set +CONFIG_SLAB=y +# CONFIG_SLUB is not set +# CONFIG_SLOB is not set +# CONFIG_PROFILING is not set +# CONFIG_MARKERS is not set +CONFIG_HAVE_OPROFILE=y +# CONFIG_KPROBES is not set +CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y +CONFIG_HAVE_IOREMAP_PROT=y +CONFIG_HAVE_KPROBES=y +CONFIG_HAVE_KRETPROBES=y +CONFIG_HAVE_ARCH_TRACEHOOK=y +CONFIG_HAVE_CLK=y +# CONFIG_SLOW_WORK is not set +# CONFIG_HAVE_GENERIC_DMA_COHERENT is not set +CONFIG_SLABINFO=y +CONFIG_RT_MUTEXES=y +CONFIG_BASE_SMALL=0 +CONFIG_MODULES=y +# CONFIG_MODULE_FORCE_LOAD is not set +CONFIG_MODULE_UNLOAD=y +# CONFIG_MODULE_FORCE_UNLOAD is not set +# CONFIG_MODVERSIONS is not set +# CONFIG_MODULE_SRCVERSION_ALL is not set +CONFIG_BLOCK=y +# CONFIG_LBD is not set +# CONFIG_BLK_DEV_BSG is not set +# CONFIG_BLK_DEV_INTEGRITY is not set + +# +# IO Schedulers +# +CONFIG_IOSCHED_NOOP=y +# CONFIG_IOSCHED_AS is not set +CONFIG_IOSCHED_DEADLINE=y +# CONFIG_IOSCHED_CFQ is not set +# CONFIG_DEFAULT_AS is not set +CONFIG_DEFAULT_DEADLINE=y +# CONFIG_DEFAULT_CFQ is not set +# CONFIG_DEFAULT_NOOP is not set +CONFIG_DEFAULT_IOSCHED="deadline" +# CONFIG_FREEZER is not set +CONFIG_PPC_MSI_BITMAP=y + +# +# Platform support +# +# CONFIG_PPC_CHRP is not set +CONFIG_PPC_MPC512x=y +CONFIG_PPC_MPC5121=y +# CONFIG_ARIA is not set +CONFIG_MPC5121_ADS=y +# CONFIG_MPC5121_GENERIC is not set +# CONFIG_PPC_MPC52xx is not set +# CONFIG_PPC_PMAC is not set +# CONFIG_PPC_CELL is not set +# CONFIG_PPC_CELL_NATIVE is not set +# CONFIG_PPC_82xx is not set +# CONFIG_PQ2ADS is not set +# CONFIG_PPC_83xx is not set +# CONFIG_PPC_86xx is not set +# CONFIG_EMBEDDED6xx is not set +# CONFIG_AMIGAONE is not set +CONFIG_PPC_OF_BOOT_TRAMPOLINE=y +CONFIG_IPIC=y +# CONFIG_MPIC is not set +# CONFIG_MPIC_WEIRD is not set +# CONFIG_PPC_I8259 is not set +# CONFIG_PPC_RTAS is not set +# CONFIG_MMIO_NVRAM is not set +# CONFIG_PPC_MPC106 is not set +# CONFIG_PPC_970_NAP is not set +# CONFIG_PPC_INDIRECT_IO is not set +# CONFIG_GENERIC_IOMAP is not set +# CONFIG_CPU_FREQ is not set +# CONFIG_TAU is not set +# CONFIG_QUICC_ENGINE is not set +# CONFIG_FSL_ULI1575 is not set +# CONFIG_SIMPLE_GPIO is not set + +# +# Kernel options +# +# CONFIG_HIGHMEM is not set +CONFIG_TICK_ONESHOT=y +CONFIG_NO_HZ=y +# CONFIG_HIGH_RES_TIMERS is not set +CONFIG_GENERIC_CLOCKEVENTS_BUILD=y +# CONFIG_HZ_100 is not set +# CONFIG_HZ_250 is not set +# CONFIG_HZ_300 is not set +CONFIG_HZ_1000=y +CONFIG_HZ=1000 +# CONFIG_SCHED_HRTICK is not set +CONFIG_PREEMPT_NONE=y +# CONFIG_PREEMPT_VOLUNTARY is not set +# CONFIG_PREEMPT is not set +CONFIG_BINFMT_ELF=y +# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set +# CONFIG_HAVE_AOUT is not set +# CONFIG_BINFMT_MISC is not set +# CONFIG_IOMMU_HELPER is not set +CONFIG_PPC_NEED_DMA_SYNC_OPS=y +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 +CONFIG_FLATMEM_MANUAL=y +# CONFIG_DISCONTIGMEM_MANUAL is not set +# CONFIG_SPARSEMEM_MANUAL is not set +CONFIG_FLATMEM=y +CONFIG_FLAT_NODE_MEM_MAP=y +CONFIG_PAGEFLAGS_EXTENDED=y +CONFIG_SPLIT_PTLOCK_CPUS=4 +# CONFIG_MIGRATION 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 is not set +CONFIG_HAVE_MLOCK=y +CONFIG_PPC_4K_PAGES=y +# CONFIG_PPC_16K_PAGES is not set +# CONFIG_PPC_64K_PAGES is not set +# CONFIG_PPC_256K_PAGES is not set +CONFIG_FORCE_MAX_ZONEORDER=11 +CONFIG_PROC_DEVICETREE=y +# CONFIG_CMDLINE_BOOL is not set +CONFIG_EXTRA_TARGETS="" +# CONFIG_PM is not set +# CONFIG_SECCOMP is not set +CONFIG_ISA_DMA_API=y + +# +# Bus options +# +CONFIG_ZONE_DMA=y +CONFIG_GENERIC_ISA_DMA=y +CONFIG_PPC_INDIRECT_PCI=y +CONFIG_FSL_SOC=y +CONFIG_FSL_PCI=y +CONFIG_PPC_PCI_CHOICE=y +CONFIG_PCI=y +CONFIG_PCI_DOMAINS=y +CONFIG_PCI_SYSCALL=y +CONFIG_PCIEPORTBUS=y +CONFIG_PCIEAER=y +# CONFIG_PCIEASPM is not set +CONFIG_ARCH_SUPPORTS_MSI=y +CONFIG_PCI_MSI=y +# CONFIG_PCI_LEGACY is not set +# CONFIG_PCI_STUB is not set +# CONFIG_PCI_IOV is not set +# CONFIG_PCCARD is not set +# CONFIG_HOTPLUG_PCI is not set +# CONFIG_HAS_RAPIDIO is not set + +# +# Advanced setup +# +# CONFIG_ADVANCED_OPTIONS is not set + +# +# Default settings for advanced configuration options are used +# +CONFIG_LOWMEM_SIZE=0x30000000 +CONFIG_PAGE_OFFSET=0xc0000000 +CONFIG_KERNEL_START=0xc0000000 +CONFIG_PHYSICAL_START=0x00000000 +CONFIG_TASK_SIZE=0xc0000000 +CONFIG_NET=y + +# +# Networking options +# +CONFIG_PACKET=y +# CONFIG_PACKET_MMAP is not set +CONFIG_UNIX=y +# CONFIG_NET_KEY is not set +CONFIG_INET=y +# CONFIG_IP_MULTICAST is not set +# CONFIG_IP_ADVANCED_ROUTER is not set +CONFIG_IP_FIB_HASH=y +CONFIG_IP_PNP=y +# CONFIG_IP_PNP_DHCP is not set +# CONFIG_IP_PNP_BOOTP is not set +# CONFIG_IP_PNP_RARP is not set +# CONFIG_NET_IPIP is not set +# CONFIG_NET_IPGRE is not set +# CONFIG_ARPD is not set +# CONFIG_SYN_COOKIES is not set +# CONFIG_INET_AH is not set +# CONFIG_INET_ESP is not set +# CONFIG_INET_IPCOMP is not set +# CONFIG_INET_XFRM_TUNNEL is not set +# CONFIG_INET_TUNNEL is not set +# CONFIG_INET_XFRM_MODE_TRANSPORT is not set +# CONFIG_INET_XFRM_MODE_TUNNEL is not set +# CONFIG_INET_XFRM_MODE_BEET is not set +# CONFIG_INET_LRO is not set +# CONFIG_INET_DIAG is not set +# CONFIG_TCP_CONG_ADVANCED is not set +CONFIG_TCP_CONG_CUBIC=y +CONFIG_DEFAULT_TCP_CONG="cubic" +# CONFIG_TCP_MD5SIG is not set +# CONFIG_IPV6 is not set +# CONFIG_NETWORK_SECMARK is not set +# CONFIG_NETFILTER is not set +# CONFIG_IP_DCCP is not set +# CONFIG_IP_SCTP is not set +# CONFIG_TIPC is not set +# CONFIG_ATM is not set +# CONFIG_BRIDGE is not set +# CONFIG_NET_DSA is not set +# CONFIG_VLAN_8021Q is not set +# CONFIG_DECNET is not set +# CONFIG_LLC2 is not set +# CONFIG_IPX is not set +# CONFIG_ATALK is not set +# CONFIG_X25 is not set +# CONFIG_LAPB is not set +# CONFIG_ECONET is not set +# CONFIG_WAN_ROUTER is not set +# CONFIG_PHONET is not set +# CONFIG_NET_SCHED is not set +# CONFIG_DCB is not set + +# +# Network testing +# +# CONFIG_NET_PKTGEN is not set +# CONFIG_HAMRADIO is not set +# CONFIG_CAN is not set +# CONFIG_IRDA is not set +# CONFIG_BT is not set +# CONFIG_AF_RXRPC is not set +# CONFIG_WIRELESS is not set +# CONFIG_WIMAX is not set +# CONFIG_RFKILL is not set +# CONFIG_NET_9P is not set + +# +# Device Drivers +# + +# +# Generic Driver Options +# +CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" +CONFIG_STANDALONE=y +# CONFIG_PREVENT_FIRMWARE_BUILD is not set +CONFIG_FW_LOADER=y +# CONFIG_FIRMWARE_IN_KERNEL is not set +CONFIG_EXTRA_FIRMWARE="" +# CONFIG_SYS_HYPERVISOR is not set +# CONFIG_CONNECTOR is not set +CONFIG_MTD=y +# CONFIG_MTD_DEBUG is not set +# CONFIG_MTD_CONCAT is not set +CONFIG_MTD_PARTITIONS=y +# CONFIG_MTD_TESTS is not set +# CONFIG_MTD_REDBOOT_PARTS is not set +# CONFIG_MTD_CMDLINE_PARTS is not set +# CONFIG_MTD_OF_PARTS is not set +# CONFIG_MTD_AR7_PARTS is not set + +# +# User Modules And Translation Layers +# +CONFIG_MTD_CHAR=y +CONFIG_MTD_BLKDEVS=y +CONFIG_MTD_BLOCK=y +# 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_OOPS is not set + +# +# RAM/ROM/Flash chip drivers +# +# CONFIG_MTD_CFI is not set +# CONFIG_MTD_JEDECPROBE is not set +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=y +# CONFIG_MTD_CFI_I4 is not set +# CONFIG_MTD_CFI_I8 is not set +# 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_INTEL_VR_NOR is not set +# CONFIG_MTD_PLATRAM is not set + +# +# Self-contained MTD device drivers +# +# CONFIG_MTD_PMC551 is not set +# 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 is not set +# CONFIG_MTD_NAND_ECC_SMC is not set +# CONFIG_MTD_NAND_MUSEUM_IDS is not set +CONFIG_MTD_NAND_IDS=y +# CONFIG_MTD_NAND_DISKONCHIP is not set +# CONFIG_MTD_NAND_CAFE is not set +# CONFIG_MTD_NAND_NANDSIM is not set +# CONFIG_MTD_NAND_PLATFORM is not set +# CONFIG_MTD_NAND_FSL_ELBC is not set +CONFIG_MTD_NAND_MPC5121_NFC=y +# CONFIG_MTD_ONENAND is not set + +# +# LPDDR flash memory drivers +# +# CONFIG_MTD_LPDDR is not set + +# +# UBI - Unsorted block images +# +CONFIG_MTD_UBI=y +CONFIG_MTD_UBI_WL_THRESHOLD=4096 +CONFIG_MTD_UBI_BEB_RESERVE=1 +# CONFIG_MTD_UBI_GLUEBI is not set + +# +# UBI debugging options +# +# CONFIG_MTD_UBI_DEBUG is not set +CONFIG_OF_DEVICE=y +CONFIG_OF_I2C=y +# CONFIG_PARPORT is not set +CONFIG_BLK_DEV=y +# CONFIG_BLK_DEV_FD is not set +# CONFIG_BLK_CPQ_DA is not set +# CONFIG_BLK_CPQ_CISS_DA is not set +# CONFIG_BLK_DEV_DAC960 is not set +# CONFIG_BLK_DEV_UMEM is not set +# CONFIG_BLK_DEV_COW_COMMON is not set +# CONFIG_BLK_DEV_LOOP is not set +# CONFIG_BLK_DEV_NBD is not set +# CONFIG_BLK_DEV_SX8 is not set +CONFIG_BLK_DEV_RAM=y +CONFIG_BLK_DEV_RAM_COUNT=1 +CONFIG_BLK_DEV_RAM_SIZE=8192 +CONFIG_BLK_DEV_XIP=y +# CONFIG_CDROM_PKTCDVD is not set +# CONFIG_ATA_OVER_ETH is not set +# CONFIG_BLK_DEV_HD is not set +CONFIG_MISC_DEVICES=y +# CONFIG_PHANTOM 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_ISL29003 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 + +# +# SCSI device support +# +# CONFIG_RAID_ATTRS is not set +# CONFIG_SCSI is not set +# CONFIG_SCSI_DMA is not set +# CONFIG_SCSI_NETLINK is not set +# CONFIG_ATA is not set +# CONFIG_MD is not set +# CONFIG_FUSION is not set + +# +# IEEE 1394 (FireWire) support +# + +# +# Enable only one of the two stacks, unless you know what you are doing +# +# CONFIG_FIREWIRE is not set +# CONFIG_IEEE1394 is not set +# CONFIG_I2O is not set +# CONFIG_MACINTOSH_DRIVERS is not set +CONFIG_NETDEVICES=y +CONFIG_COMPAT_NET_DEV_OPS=y +# CONFIG_DUMMY is not set +# CONFIG_BONDING is not set +# CONFIG_MACVLAN is not set +# CONFIG_EQUALIZER is not set +# CONFIG_TUN is not set +# CONFIG_VETH is not set +# CONFIG_ARCNET is not set +CONFIG_PHYLIB=y + +# +# MII PHY device drivers +# +CONFIG_MARVELL_PHY=y +CONFIG_DAVICOM_PHY=y +CONFIG_QSEMI_PHY=y +CONFIG_LXT_PHY=y +CONFIG_CICADA_PHY=y +CONFIG_VITESSE_PHY=y +CONFIG_SMSC_PHY=y +CONFIG_BROADCOM_PHY=y +CONFIG_ICPLUS_PHY=y +CONFIG_REALTEK_PHY=y +CONFIG_NATIONAL_PHY=y +CONFIG_STE10XP=y +CONFIG_LSI_ET1011C_PHY=y +CONFIG_FIXED_PHY=y +CONFIG_MDIO_BITBANG=y +CONFIG_NET_ETHERNET=y +CONFIG_MII=y +# CONFIG_HAPPYMEAL is not set +# CONFIG_SUNGEM is not set +# CONFIG_CASSINI is not set +# CONFIG_NET_VENDOR_3COM is not set +# CONFIG_ETHOC is not set +# CONFIG_DNET is not set +# CONFIG_NET_TULIP is not set +# CONFIG_HP100 is not set +# CONFIG_IBM_NEW_EMAC_ZMII is not set +# CONFIG_IBM_NEW_EMAC_RGMII is not set +# CONFIG_IBM_NEW_EMAC_TAH is not set +# CONFIG_IBM_NEW_EMAC_EMAC4 is not set +# CONFIG_IBM_NEW_EMAC_NO_FLOW_CTRL is not set +# CONFIG_IBM_NEW_EMAC_MAL_CLR_ICINTSTAT is not set +# CONFIG_IBM_NEW_EMAC_MAL_COMMON_ERR is not set +# CONFIG_NET_PCI is not set +# CONFIG_B44 is not set +# CONFIG_ATL2 is not set +CONFIG_FS_ENET=y +CONFIG_FS_ENET_MPC5121_FEC=y +CONFIG_FS_ENET_FEC_TX_ALIGN_WORKAROUND=y +CONFIG_FS_ENET_HAS_FEC=y +CONFIG_FS_ENET_MDIO_FEC=y +# CONFIG_NETDEV_1000 is not set +# CONFIG_NETDEV_10000 is not set +# CONFIG_TR is not set + +# +# Wireless LAN +# +# CONFIG_WLAN_PRE80211 is not set +# CONFIG_WLAN_80211 is not set + +# +# Enable WiMAX (Networking options) to see the WiMAX drivers +# +# CONFIG_WAN is not set +# CONFIG_FDDI is not set +# CONFIG_HIPPI is not set +# CONFIG_PPP is not set +# CONFIG_SLIP is not set +# CONFIG_NETCONSOLE is not set +# CONFIG_NETPOLL is not set +# CONFIG_NET_POLL_CONTROLLER is not set +# CONFIG_ISDN is not set +# CONFIG_PHONE is not set + +# +# Input device support +# +CONFIG_INPUT=y +# CONFIG_INPUT_FF_MEMLESS is not set +# CONFIG_INPUT_POLLDEV is not set + +# +# Userland interfaces +# +CONFIG_INPUT_MOUSEDEV=y +# CONFIG_INPUT_MOUSEDEV_PSAUX is not set +CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 +CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 +# CONFIG_INPUT_JOYDEV is not set +# CONFIG_INPUT_EVDEV is not set +# CONFIG_INPUT_EVBUG is not set + +# +# Input Device Drivers +# +# CONFIG_INPUT_KEYBOARD is not set +# CONFIG_INPUT_MOUSE is not set +# CONFIG_INPUT_JOYSTICK is not set +# CONFIG_INPUT_TABLET is not set +# CONFIG_INPUT_TOUCHSCREEN is not set +# CONFIG_INPUT_MISC is not set + +# +# Hardware I/O ports +# +# CONFIG_SERIO is not set +# CONFIG_GAMEPORT is not set + +# +# Character devices +# +CONFIG_VT=y +CONFIG_CONSOLE_TRANSLATIONS=y +CONFIG_VT_CONSOLE=y +CONFIG_HW_CONSOLE=y +# CONFIG_VT_HW_CONSOLE_BINDING is not set +# CONFIG_DEVKMEM is not set +# CONFIG_SERIAL_NONSTANDARD is not set +# CONFIG_NOZOMI is not set + +# +# Serial drivers +# +# CONFIG_SERIAL_8250 is not set + +# +# Non-8250 serial port support +# +# CONFIG_SERIAL_UARTLITE is not set +CONFIG_SERIAL_CORE=y +CONFIG_SERIAL_CORE_CONSOLE=y +CONFIG_SERIAL_MPC52xx=y +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 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_R3964 is not set +# CONFIG_APPLICOM is not set +# CONFIG_RAW_DRIVER is not set +# CONFIG_TCG_TPM is not set +CONFIG_DEVPORT=y +CONFIG_I2C=y +CONFIG_I2C_BOARDINFO=y +CONFIG_I2C_CHARDEV=y +CONFIG_I2C_HELPER_AUTO=y + +# +# I2C Hardware Bus support +# + +# +# PC SMBus host controller drivers +# +# CONFIG_I2C_ALI1535 is not set +# CONFIG_I2C_ALI1563 is not set +# CONFIG_I2C_ALI15X3 is not set +# CONFIG_I2C_AMD756 is not set +# CONFIG_I2C_AMD8111 is not set +# CONFIG_I2C_I801 is not set +# CONFIG_I2C_ISCH is not set +# CONFIG_I2C_PIIX4 is not set +# CONFIG_I2C_NFORCE2 is not set +# CONFIG_I2C_SIS5595 is not set +# CONFIG_I2C_SIS630 is not set +# CONFIG_I2C_SIS96X is not set +# CONFIG_I2C_VIA is not set +# CONFIG_I2C_VIAPRO is not set + +# +# I2C system bus drivers (mostly embedded / system-on-chip) +# +CONFIG_I2C_MPC=y +# CONFIG_I2C_OCORES is not set +# CONFIG_I2C_SIMTEC is not set + +# +# External I2C/SMBus adapter drivers +# +# CONFIG_I2C_PARPORT_LIGHT is not set +# CONFIG_I2C_TAOS_EVM is not set + +# +# Graphics adapter I2C/DDC channel drivers +# +# CONFIG_I2C_VOODOO3 is not set + +# +# Other I2C/SMBus bus drivers +# +# CONFIG_I2C_PCA_PLATFORM is not set +# CONFIG_I2C_STUB is not set + +# +# Miscellaneous I2C Chip support +# +# CONFIG_DS1682 is not set +# CONFIG_SENSORS_PCF8574 is not set +# CONFIG_PCF8575 is not set +# CONFIG_SENSORS_PCA9539 is not set +# CONFIG_SENSORS_MAX6875 is not set +# CONFIG_SENSORS_TSL2550 is not set +# CONFIG_I2C_DEBUG_CORE is not set +# CONFIG_I2C_DEBUG_ALGO is not set +# CONFIG_I2C_DEBUG_BUS is not set +# CONFIG_I2C_DEBUG_CHIP is not set +# CONFIG_SPI is not set +CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y +# CONFIG_GPIOLIB is not set +# CONFIG_W1 is not set +# CONFIG_POWER_SUPPLY is not set +# CONFIG_HWMON is not set +# CONFIG_THERMAL is not set +# CONFIG_THERMAL_HWMON is not set +# CONFIG_WATCHDOG is not set +CONFIG_SSB_POSSIBLE=y + +# +# Sonics Silicon Backplane +# +# CONFIG_SSB is not set + +# +# Multifunction device drivers +# +# 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 + +# +# Multimedia devices +# + +# +# Multimedia core support +# +# CONFIG_VIDEO_DEV is not set +# CONFIG_DVB_CORE is not set +# CONFIG_VIDEO_MEDIA is not set + +# +# Multimedia drivers +# +# CONFIG_DAB is not set + +# +# Graphics support +# +# CONFIG_AGP is not set +# CONFIG_DRM is not set +# CONFIG_VGASTATE is not set +# CONFIG_VIDEO_OUTPUT_CONTROL is not set +# CONFIG_FB is not set +# CONFIG_BACKLIGHT_LCD_SUPPORT is not set + +# +# Display device support +# +# CONFIG_DISPLAY_SUPPORT is not set + +# +# Console display driver support +# +# CONFIG_VGA_CONSOLE is not set +CONFIG_DUMMY_CONSOLE=y +# CONFIG_SOUND is not set +# CONFIG_HID_SUPPORT is not set +# CONFIG_USB_SUPPORT is not set +# CONFIG_UWB is not set +# CONFIG_MMC is not set +# CONFIG_MEMSTICK is not set +# CONFIG_NEW_LEDS is not set +# CONFIG_ACCESSIBILITY is not set +# CONFIG_INFINIBAND is not set +# CONFIG_EDAC is not set +CONFIG_RTC_LIB=y +CONFIG_RTC_CLASS=y +CONFIG_RTC_HCTOSYS=y +CONFIG_RTC_HCTOSYS_DEVICE="rtc1" +# 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 is not set +# 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=y +# CONFIG_RTC_DRV_M41T80_WDT 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_GENERIC is not set +CONFIG_RTC_DRV_MPC5121=y +CONFIG_DMADEVICES=y + +# +# DMA Devices +# +# CONFIG_FSL_DMA is not set +CONFIG_MPC512X_DMA=y +CONFIG_DMA_ENGINE=y + +# +# DMA Clients +# +# CONFIG_NET_DMA is not set +# CONFIG_ASYNC_TX_DMA is not set +CONFIG_DMATEST=m +# CONFIG_AUXDISPLAY is not set +# CONFIG_UIO is not set +# CONFIG_STAGING is not set + +# +# File systems +# +CONFIG_EXT2_FS=y +# CONFIG_EXT2_FS_XATTR is not set +CONFIG_EXT2_FS_XIP=y +# CONFIG_EXT3_FS is not set +# CONFIG_EXT4_FS is not set +CONFIG_FS_XIP=y +# CONFIG_REISERFS_FS is not set +# CONFIG_JFS_FS is not set +# CONFIG_FS_POSIX_ACL is not set +CONFIG_FILE_LOCKING=y +# CONFIG_XFS_FS is not set +# CONFIG_OCFS2_FS is not set +# CONFIG_BTRFS_FS is not set +# CONFIG_DNOTIFY is not set +# CONFIG_INOTIFY is not set +# CONFIG_QUOTA is not set +# CONFIG_AUTOFS_FS is not set +# CONFIG_AUTOFS4_FS is not set +# CONFIG_FUSE_FS is not set + +# +# Caches +# +# CONFIG_FSCACHE is not set + +# +# CD-ROM/DVD Filesystems +# +# CONFIG_ISO9660_FS is not set +# CONFIG_UDF_FS is not set + +# +# DOS/FAT/NT Filesystems +# +# CONFIG_MSDOS_FS is not set +# CONFIG_VFAT_FS is not set +# CONFIG_NTFS_FS is not set + +# +# Pseudo filesystems +# +CONFIG_PROC_FS=y +# CONFIG_PROC_KCORE is not set +CONFIG_PROC_SYSCTL=y +CONFIG_PROC_PAGE_MONITOR=y +CONFIG_SYSFS=y +CONFIG_TMPFS=y +# CONFIG_TMPFS_POSIX_ACL is not set +# CONFIG_HUGETLB_PAGE is not set +# CONFIG_CONFIGFS_FS is not set +CONFIG_MISC_FILESYSTEMS=y +# CONFIG_ADFS_FS is not set +# CONFIG_AFFS_FS is not set +# CONFIG_HFS_FS is not set +# CONFIG_HFSPLUS_FS is not set +# CONFIG_BEFS_FS is not set +# CONFIG_BFS_FS is not set +# CONFIG_EFS_FS is not set +CONFIG_JFFS2_FS=y +CONFIG_JFFS2_FS_DEBUG=0 +CONFIG_JFFS2_FS_WRITEBUFFER=y +# CONFIG_JFFS2_FS_WBUF_VERIFY is not set +# CONFIG_JFFS2_SUMMARY is not set +# CONFIG_JFFS2_FS_XATTR is not set +# CONFIG_JFFS2_COMPRESSION_OPTIONS is not set +CONFIG_JFFS2_ZLIB=y +# CONFIG_JFFS2_LZO is not set +CONFIG_JFFS2_RTIME=y +# CONFIG_JFFS2_RUBIN is not set +CONFIG_UBIFS_FS=y +# CONFIG_UBIFS_FS_XATTR is not set +# CONFIG_UBIFS_FS_ADVANCED_COMPR is not set +CONFIG_UBIFS_FS_LZO=y +CONFIG_UBIFS_FS_ZLIB=y +# CONFIG_UBIFS_FS_DEBUG is not set +# CONFIG_CRAMFS is not set +# CONFIG_SQUASHFS is not set +# CONFIG_VXFS_FS is not set +# CONFIG_MINIX_FS is not set +# CONFIG_OMFS_FS is not set +# CONFIG_HPFS_FS is not set +# CONFIG_QNX4FS_FS is not set +# CONFIG_ROMFS_FS is not set +# CONFIG_SYSV_FS is not set +# CONFIG_UFS_FS is not set +# CONFIG_NILFS2_FS is not set +CONFIG_NETWORK_FILESYSTEMS=y +CONFIG_NFS_FS=y +CONFIG_NFS_V3=y +# CONFIG_NFS_V3_ACL is not set +# CONFIG_NFS_V4 is not set +CONFIG_ROOT_NFS=y +# CONFIG_NFSD is not set +CONFIG_LOCKD=y +CONFIG_LOCKD_V4=y +CONFIG_NFS_COMMON=y +CONFIG_SUNRPC=y +# CONFIG_RPCSEC_GSS_KRB5 is not set +# CONFIG_RPCSEC_GSS_SPKM3 is not set +# CONFIG_SMB_FS is not set +# CONFIG_CIFS is not set +# CONFIG_NCP_FS is not set +# CONFIG_CODA_FS is not set +# CONFIG_AFS_FS is not set + +# +# Partition Types +# +# CONFIG_PARTITION_ADVANCED is not set +CONFIG_MSDOS_PARTITION=y +# CONFIG_NLS is not set +# CONFIG_DLM is not set +# CONFIG_BINARY_PRINTF is not set + +# +# Library routines +# +CONFIG_BITREVERSE=y +CONFIG_GENERIC_FIND_LAST_BIT=y +# CONFIG_CRC_CCITT is not set +CONFIG_CRC16=y +# CONFIG_CRC_T10DIF is not set +# CONFIG_CRC_ITU_T is not set +CONFIG_CRC32=y +# CONFIG_CRC7 is not set +# CONFIG_LIBCRC32C is not set +CONFIG_ZLIB_INFLATE=y +CONFIG_ZLIB_DEFLATE=y +CONFIG_LZO_COMPRESS=y +CONFIG_LZO_DECOMPRESS=y +CONFIG_DECOMPRESS_GZIP=y +CONFIG_DECOMPRESS_BZIP2=y +CONFIG_DECOMPRESS_LZMA=y +CONFIG_HAS_IOMEM=y +CONFIG_HAS_IOPORT=y +CONFIG_HAS_DMA=y +CONFIG_HAVE_LMB=y +CONFIG_NLATTR=y + +# +# Kernel hacking +# +# CONFIG_PRINTK_TIME is not set +# CONFIG_ENABLE_WARN_DEPRECATED is not set +# CONFIG_ENABLE_MUST_CHECK is not set +CONFIG_FRAME_WARN=1024 +# CONFIG_MAGIC_SYSRQ is not set +# CONFIG_UNUSED_SYMBOLS is not set +# CONFIG_DEBUG_FS is not set +# CONFIG_HEADERS_CHECK is not set +# CONFIG_DEBUG_KERNEL is not set +CONFIG_DEBUG_BUGVERBOSE=y +CONFIG_DEBUG_MEMORY_INIT=y +# CONFIG_RCU_CPU_STALL_DETECTOR is not set +# CONFIG_LATENCYTOP is not set +# CONFIG_SYSCTL_SYSCALL_CHECK is not set +CONFIG_HAVE_FUNCTION_TRACER=y +CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y +CONFIG_HAVE_DYNAMIC_FTRACE=y +CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y +CONFIG_TRACING_SUPPORT=y + +# +# Tracers +# +# CONFIG_FUNCTION_TRACER is not set +# CONFIG_SCHED_TRACER is not set +# CONFIG_CONTEXT_SWITCH_TRACER is not set +# CONFIG_EVENT_TRACER is not set +# CONFIG_BOOT_TRACER is not set +# CONFIG_TRACE_BRANCH_PROFILING is not set +# CONFIG_STACK_TRACER is not set +# CONFIG_KMEMTRACE is not set +# CONFIG_WORKQUEUE_TRACER is not set +# CONFIG_BLK_DEV_IO_TRACE is not set +# CONFIG_SAMPLES is not set +CONFIG_HAVE_ARCH_KGDB=y +CONFIG_PRINT_STACK_DEPTH=64 +# CONFIG_IRQSTACKS is not set +# CONFIG_BOOTX_TEXT is not set +# CONFIG_PPC_EARLY_DEBUG is not set + +# +# Security options +# +# CONFIG_KEYS is not set +# CONFIG_SECURITY is not set +# CONFIG_SECURITYFS is not set +# CONFIG_SECURITY_FILE_CAPABILITIES is not set +CONFIG_CRYPTO=y + +# +# Crypto core or helper +# +# CONFIG_CRYPTO_FIPS is not set +CONFIG_CRYPTO_ALGAPI=y +CONFIG_CRYPTO_ALGAPI2=y +# CONFIG_CRYPTO_MANAGER is not set +# CONFIG_CRYPTO_MANAGER2 is not set +# CONFIG_CRYPTO_GF128MUL is not set +# CONFIG_CRYPTO_NULL is not set +# CONFIG_CRYPTO_CRYPTD is not set +# CONFIG_CRYPTO_AUTHENC is not set +# CONFIG_CRYPTO_TEST is not set + +# +# Authenticated Encryption with Associated Data +# +# CONFIG_CRYPTO_CCM is not set +# CONFIG_CRYPTO_GCM is not set +# CONFIG_CRYPTO_SEQIV is not set + +# +# Block modes +# +# CONFIG_CRYPTO_CBC is not set +# CONFIG_CRYPTO_CTR is not set +# CONFIG_CRYPTO_CTS is not set +# CONFIG_CRYPTO_ECB is not set +# CONFIG_CRYPTO_LRW is not set +# CONFIG_CRYPTO_PCBC is not set +# CONFIG_CRYPTO_XTS is not set + +# +# Hash modes +# +# CONFIG_CRYPTO_HMAC is not set +# CONFIG_CRYPTO_XCBC is not set + +# +# Digest +# +# CONFIG_CRYPTO_CRC32C is not set +# CONFIG_CRYPTO_MD4 is not set +# CONFIG_CRYPTO_MD5 is not set +# CONFIG_CRYPTO_MICHAEL_MIC is not set +# CONFIG_CRYPTO_RMD128 is not set +# CONFIG_CRYPTO_RMD160 is not set +# CONFIG_CRYPTO_RMD256 is not set +# CONFIG_CRYPTO_RMD320 is not set +# CONFIG_CRYPTO_SHA1 is not set +# CONFIG_CRYPTO_SHA256 is not set +# CONFIG_CRYPTO_SHA512 is not set +# CONFIG_CRYPTO_TGR192 is not set +# CONFIG_CRYPTO_WP512 is not set + +# +# Ciphers +# +# CONFIG_CRYPTO_AES is not set +# CONFIG_CRYPTO_ANUBIS is not set +# CONFIG_CRYPTO_ARC4 is not set +# CONFIG_CRYPTO_BLOWFISH is not set +# CONFIG_CRYPTO_CAMELLIA is not set +# CONFIG_CRYPTO_CAST5 is not set +# CONFIG_CRYPTO_CAST6 is not set +# CONFIG_CRYPTO_DES is not set +# CONFIG_CRYPTO_FCRYPT is not set +# CONFIG_CRYPTO_KHAZAD is not set +# CONFIG_CRYPTO_SALSA20 is not set +# CONFIG_CRYPTO_SEED is not set +# CONFIG_CRYPTO_SERPENT is not set +# CONFIG_CRYPTO_TEA is not set +# CONFIG_CRYPTO_TWOFISH is not set + +# +# Compression +# +CONFIG_CRYPTO_DEFLATE=y +# CONFIG_CRYPTO_ZLIB is not set +CONFIG_CRYPTO_LZO=y + +# +# Random Number Generation +# +# CONFIG_CRYPTO_ANSI_CPRNG is not set +# CONFIG_CRYPTO_HW is not set +CONFIG_PPC_CLOCK=y +# CONFIG_VIRTUALIZATION is not set
Signature · 1 line
1.6.0.6
Re: [PATCH 01/04] mpc5121: prepare support for additional boards
Quoted 4 lines · Wolfgang Denk
As more MPC512x based boards will be coming soon, a new directory
arch/powerpc/configs/512x/for board specific config files is created, following the example of other processor families.
Quoted 8 lines
In a first step, we just copy (and update) the existing defconfig file for the mpc5121ads board. When new boards get added, the old
arch/powerpc/configs/mpc5121_defconfigfile will get adjusted to allow for a generic kernel image for MPC512x based boards.Signed-off-by Wolfgang Denk <[email protected]>Cc Grant Likely <[email protected]>Cc John Rigby <[email protected]>
I'll ignore this one for the time being. After stuff is actually merged and at about -rc2 time is the time to muck around with defconfigs.
g.
Quoted 2 lines
---
=A0arch/powerpc/configs/512x/mpc5121ads_defconfig | 1190 ++++++++++++++++=
++++++++
arch/powerp=
Quoted 4 lines
=A01 files changed, 1190 insertions(+), 0 deletions(-) =A0create mode 100644
arch/powerpc/configs/512x/mpc5121ads_defconfigarch/powerp= renamed from arch/powerpc/configs/512x/mpc5121ads_defconfig +0
-0
c/configs/512x/mpc5121ads_defconfig
Quoted 1,196 lines
new file mode 100644
index 0000000..ac6c18farch/powerpc/configs/512x/mpc5121ads_defconfig new file +1190
-1@@ -0,0 +1,1190 @@ +# +# Automatically generated make config: don't edit +# Linux kernel version: 2.6.30-rc4 +# Wed May =A06 20:48:17 2009 +# +# CONFIG_PPC64 is not set + +# +# Processor support +# +CONFIG_6xx=3Dy +# CONFIG_PPC_85xx is not set +# CONFIG_PPC_8xx is not set +# CONFIG_40x is not set +# CONFIG_44x is not set +# CONFIG_E200 is not set +CONFIG_PPC_BOOK3S=3Dy +CONFIG_PPC_FPU=3Dy +# CONFIG_ALTIVEC is not set +CONFIG_PPC_STD_MMU=3Dy +CONFIG_PPC_STD_MMU_32=3Dy +# CONFIG_PPC_MM_SLICES is not set +# CONFIG_SMP is not set +CONFIG_NOT_COHERENT_CACHE=3Dy +CONFIG_PPC32=3Dy +CONFIG_WORD_SIZE=3D32 +# CONFIG_ARCH_PHYS_ADDR_T_64BIT is not set +CONFIG_MMU=3Dy +CONFIG_GENERIC_CMOS_UPDATE=3Dy +CONFIG_GENERIC_TIME=3Dy +CONFIG_GENERIC_TIME_VSYSCALL=3Dy +CONFIG_GENERIC_CLOCKEVENTS=3Dy +CONFIG_GENERIC_HARDIRQS=3Dy +# CONFIG_HAVE_SETUP_PER_CPU_AREA is not set +CONFIG_IRQ_PER_CPU=3Dy +CONFIG_STACKTRACE_SUPPORT=3Dy +CONFIG_HAVE_LATENCYTOP_SUPPORT=3Dy +CONFIG_LOCKDEP_SUPPORT=3Dy +CONFIG_RWSEM_XCHGADD_ALGORITHM=3Dy +CONFIG_ARCH_HAS_ILOG2_U32=3Dy +CONFIG_GENERIC_HWEIGHT=3Dy +CONFIG_GENERIC_CALIBRATE_DELAY=3Dy +CONFIG_GENERIC_FIND_NEXT_BIT=3Dy +# CONFIG_ARCH_NO_VIRT_TO_BUS is not set +CONFIG_PPC=3Dy +CONFIG_EARLY_PRINTK=3Dy +CONFIG_GENERIC_NVRAM=3Dy +CONFIG_SCHED_OMIT_FRAME_POINTER=3Dy +CONFIG_ARCH_MAY_HAVE_PC_FDC=3Dy +CONFIG_PPC_OF=3Dy +CONFIG_OF=3Dy +# CONFIG_PPC_UDBG_16550 is not set +# CONFIG_GENERIC_TBSYNC is not set +CONFIG_AUDIT_ARCH=3Dy +CONFIG_GENERIC_BUG=3Dy +CONFIG_DEFAULT_UIMAGE=3Dy +# CONFIG_PPC_DCR_NATIVE is not set +# CONFIG_PPC_DCR_MMIO is not set +CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=3Dy +CONFIG_DEFCONFIG_LIST=3D"/lib/modules/$UNAME_RELEASE/.config" + +# +# General setup +# +CONFIG_EXPERIMENTAL=3Dy +CONFIG_BROKEN_ON_SMP=3Dy +CONFIG_INIT_ENV_ARG_LIMIT=3D32 +CONFIG_LOCALVERSION=3D"" +CONFIG_LOCALVERSION_AUTO=3Dy +# CONFIG_SWAP is not set +CONFIG_SYSVIPC=3Dy +CONFIG_SYSVIPC_SYSCTL=3Dy +# CONFIG_POSIX_MQUEUE is not set +# CONFIG_BSD_PROCESS_ACCT is not set +# CONFIG_TASKSTATS is not set +# CONFIG_AUDIT is not set + +# +# RCU Subsystem +# +CONFIG_CLASSIC_RCU=3Dy +# 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=3D16 +# CONFIG_GROUP_SCHED is not set +# CONFIG_CGROUPS is not set +CONFIG_SYSFS_DEPRECATED=3Dy +CONFIG_SYSFS_DEPRECATED_V2=3Dy +# CONFIG_RELAY is not set +CONFIG_NAMESPACES=3Dy +# CONFIG_UTS_NS is not set +# CONFIG_IPC_NS is not set +# CONFIG_USER_NS is not set +# CONFIG_PID_NS is not set +# CONFIG_NET_NS is not set +CONFIG_BLK_DEV_INITRD=3Dy +CONFIG_INITRAMFS_SOURCE=3D"" +CONFIG_RD_GZIP=3Dy +CONFIG_RD_BZIP2=3Dy +CONFIG_RD_LZMA=3Dy +# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set +CONFIG_SYSCTL=3Dy +CONFIG_ANON_INODES=3Dy +# CONFIG_EMBEDDED is not set +CONFIG_SYSCTL_SYSCALL=3Dy +CONFIG_KALLSYMS=3Dy +# CONFIG_KALLSYMS_EXTRA_PASS is not set +# CONFIG_STRIP_ASM_SYMS is not set +CONFIG_HOTPLUG=3Dy +CONFIG_PRINTK=3Dy +CONFIG_BUG=3Dy +CONFIG_ELF_CORE=3Dy +CONFIG_BASE_FULL=3Dy +CONFIG_FUTEX=3Dy +CONFIG_EPOLL=3Dy +CONFIG_SIGNALFD=3Dy +CONFIG_TIMERFD=3Dy +CONFIG_EVENTFD=3Dy +CONFIG_SHMEM=3Dy +CONFIG_AIO=3Dy +CONFIG_VM_EVENT_COUNTERS=3Dy +CONFIG_PCI_QUIRKS=3Dy +# CONFIG_COMPAT_BRK is not set +CONFIG_SLAB=3Dy +# CONFIG_SLUB is not set +# CONFIG_SLOB is not set +# CONFIG_PROFILING is not set +# CONFIG_MARKERS is not set +CONFIG_HAVE_OPROFILE=3Dy +# CONFIG_KPROBES is not set +CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=3Dy +CONFIG_HAVE_IOREMAP_PROT=3Dy +CONFIG_HAVE_KPROBES=3Dy +CONFIG_HAVE_KRETPROBES=3Dy +CONFIG_HAVE_ARCH_TRACEHOOK=3Dy +CONFIG_HAVE_CLK=3Dy +# CONFIG_SLOW_WORK is not set +# CONFIG_HAVE_GENERIC_DMA_COHERENT is not set +CONFIG_SLABINFO=3Dy +CONFIG_RT_MUTEXES=3Dy +CONFIG_BASE_SMALL=3D0 +CONFIG_MODULES=3Dy +# CONFIG_MODULE_FORCE_LOAD is not set +CONFIG_MODULE_UNLOAD=3Dy +# CONFIG_MODULE_FORCE_UNLOAD is not set +# CONFIG_MODVERSIONS is not set +# CONFIG_MODULE_SRCVERSION_ALL is not set +CONFIG_BLOCK=3Dy +# CONFIG_LBD is not set +# CONFIG_BLK_DEV_BSG is not set +# CONFIG_BLK_DEV_INTEGRITY is not set + +# +# IO Schedulers +# +CONFIG_IOSCHED_NOOP=3Dy +# CONFIG_IOSCHED_AS is not set +CONFIG_IOSCHED_DEADLINE=3Dy +# CONFIG_IOSCHED_CFQ is not set +# CONFIG_DEFAULT_AS is not set +CONFIG_DEFAULT_DEADLINE=3Dy +# CONFIG_DEFAULT_CFQ is not set +# CONFIG_DEFAULT_NOOP is not set +CONFIG_DEFAULT_IOSCHED=3D"deadline" +# CONFIG_FREEZER is not set +CONFIG_PPC_MSI_BITMAP=3Dy + +# +# Platform support +# +# CONFIG_PPC_CHRP is not set +CONFIG_PPC_MPC512x=3Dy +CONFIG_PPC_MPC5121=3Dy +# CONFIG_ARIA is not set +CONFIG_MPC5121_ADS=3Dy +# CONFIG_MPC5121_GENERIC is not set +# CONFIG_PPC_MPC52xx is not set +# CONFIG_PPC_PMAC is not set +# CONFIG_PPC_CELL is not set +# CONFIG_PPC_CELL_NATIVE is not set +# CONFIG_PPC_82xx is not set +# CONFIG_PQ2ADS is not set +# CONFIG_PPC_83xx is not set +# CONFIG_PPC_86xx is not set +# CONFIG_EMBEDDED6xx is not set +# CONFIG_AMIGAONE is not set +CONFIG_PPC_OF_BOOT_TRAMPOLINE=3Dy +CONFIG_IPIC=3Dy +# CONFIG_MPIC is not set +# CONFIG_MPIC_WEIRD is not set +# CONFIG_PPC_I8259 is not set +# CONFIG_PPC_RTAS is not set +# CONFIG_MMIO_NVRAM is not set +# CONFIG_PPC_MPC106 is not set +# CONFIG_PPC_970_NAP is not set +# CONFIG_PPC_INDIRECT_IO is not set +# CONFIG_GENERIC_IOMAP is not set +# CONFIG_CPU_FREQ is not set +# CONFIG_TAU is not set +# CONFIG_QUICC_ENGINE is not set +# CONFIG_FSL_ULI1575 is not set +# CONFIG_SIMPLE_GPIO is not set + +# +# Kernel options +# +# CONFIG_HIGHMEM is not set +CONFIG_TICK_ONESHOT=3Dy +CONFIG_NO_HZ=3Dy +# CONFIG_HIGH_RES_TIMERS is not set +CONFIG_GENERIC_CLOCKEVENTS_BUILD=3Dy +# CONFIG_HZ_100 is not set +# CONFIG_HZ_250 is not set +# CONFIG_HZ_300 is not set +CONFIG_HZ_1000=3Dy +CONFIG_HZ=3D1000 +# CONFIG_SCHED_HRTICK is not set +CONFIG_PREEMPT_NONE=3Dy +# CONFIG_PREEMPT_VOLUNTARY is not set +# CONFIG_PREEMPT is not set +CONFIG_BINFMT_ELF=3Dy +# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set +# CONFIG_HAVE_AOUT is not set +# CONFIG_BINFMT_MISC is not set +# CONFIG_IOMMU_HELPER is not set +CONFIG_PPC_NEED_DMA_SYNC_OPS=3Dy +CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=3Dy +CONFIG_ARCH_HAS_WALK_MEMORY=3Dy +CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=3Dy +# CONFIG_KEXEC is not set +# CONFIG_CRASH_DUMP is not set +CONFIG_ARCH_FLATMEM_ENABLE=3Dy +CONFIG_ARCH_POPULATES_NODE_MAP=3Dy +CONFIG_SELECT_MEMORY_MODEL=3Dy +CONFIG_FLATMEM_MANUAL=3Dy +# CONFIG_DISCONTIGMEM_MANUAL is not set +# CONFIG_SPARSEMEM_MANUAL is not set +CONFIG_FLATMEM=3Dy +CONFIG_FLAT_NODE_MEM_MAP=3Dy +CONFIG_PAGEFLAGS_EXTENDED=3Dy +CONFIG_SPLIT_PTLOCK_CPUS=3D4 +# CONFIG_MIGRATION is not set +# CONFIG_PHYS_ADDR_T_64BIT is not set +CONFIG_ZONE_DMA_FLAG=3D1 +CONFIG_BOUNCE=3Dy +CONFIG_VIRT_TO_BUS=3Dy +# CONFIG_UNEVICTABLE_LRU is not set +CONFIG_HAVE_MLOCK=3Dy +CONFIG_PPC_4K_PAGES=3Dy +# CONFIG_PPC_16K_PAGES is not set +# CONFIG_PPC_64K_PAGES is not set +# CONFIG_PPC_256K_PAGES is not set +CONFIG_FORCE_MAX_ZONEORDER=3D11 +CONFIG_PROC_DEVICETREE=3Dy +# CONFIG_CMDLINE_BOOL is not set +CONFIG_EXTRA_TARGETS=3D"" +# CONFIG_PM is not set +# CONFIG_SECCOMP is not set +CONFIG_ISA_DMA_API=3Dy + +# +# Bus options +# +CONFIG_ZONE_DMA=3Dy +CONFIG_GENERIC_ISA_DMA=3Dy +CONFIG_PPC_INDIRECT_PCI=3Dy +CONFIG_FSL_SOC=3Dy +CONFIG_FSL_PCI=3Dy +CONFIG_PPC_PCI_CHOICE=3Dy +CONFIG_PCI=3Dy +CONFIG_PCI_DOMAINS=3Dy +CONFIG_PCI_SYSCALL=3Dy +CONFIG_PCIEPORTBUS=3Dy +CONFIG_PCIEAER=3Dy +# CONFIG_PCIEASPM is not set +CONFIG_ARCH_SUPPORTS_MSI=3Dy +CONFIG_PCI_MSI=3Dy +# CONFIG_PCI_LEGACY is not set +# CONFIG_PCI_STUB is not set +# CONFIG_PCI_IOV is not set +# CONFIG_PCCARD is not set +# CONFIG_HOTPLUG_PCI is not set +# CONFIG_HAS_RAPIDIO is not set + +# +# Advanced setup +# +# CONFIG_ADVANCED_OPTIONS is not set + +# +# Default settings for advanced configuration options are used +# +CONFIG_LOWMEM_SIZE=3D0x30000000 +CONFIG_PAGE_OFFSET=3D0xc0000000 +CONFIG_KERNEL_START=3D0xc0000000 +CONFIG_PHYSICAL_START=3D0x00000000 +CONFIG_TASK_SIZE=3D0xc0000000 +CONFIG_NET=3Dy + +# +# Networking options +# +CONFIG_PACKET=3Dy +# CONFIG_PACKET_MMAP is not set +CONFIG_UNIX=3Dy +# CONFIG_NET_KEY is not set +CONFIG_INET=3Dy +# CONFIG_IP_MULTICAST is not set +# CONFIG_IP_ADVANCED_ROUTER is not set +CONFIG_IP_FIB_HASH=3Dy +CONFIG_IP_PNP=3Dy +# CONFIG_IP_PNP_DHCP is not set +# CONFIG_IP_PNP_BOOTP is not set +# CONFIG_IP_PNP_RARP is not set +# CONFIG_NET_IPIP is not set +# CONFIG_NET_IPGRE is not set +# CONFIG_ARPD is not set +# CONFIG_SYN_COOKIES is not set +# CONFIG_INET_AH is not set +# CONFIG_INET_ESP is not set +# CONFIG_INET_IPCOMP is not set +# CONFIG_INET_XFRM_TUNNEL is not set +# CONFIG_INET_TUNNEL is not set +# CONFIG_INET_XFRM_MODE_TRANSPORT is not set +# CONFIG_INET_XFRM_MODE_TUNNEL is not set +# CONFIG_INET_XFRM_MODE_BEET is not set +# CONFIG_INET_LRO is not set +# CONFIG_INET_DIAG is not set +# CONFIG_TCP_CONG_ADVANCED is not set +CONFIG_TCP_CONG_CUBIC=3Dy +CONFIG_DEFAULT_TCP_CONG=3D"cubic" +# CONFIG_TCP_MD5SIG is not set +# CONFIG_IPV6 is not set +# CONFIG_NETWORK_SECMARK is not set +# CONFIG_NETFILTER is not set +# CONFIG_IP_DCCP is not set +# CONFIG_IP_SCTP is not set +# CONFIG_TIPC is not set +# CONFIG_ATM is not set +# CONFIG_BRIDGE is not set +# CONFIG_NET_DSA is not set +# CONFIG_VLAN_8021Q is not set +# CONFIG_DECNET is not set +# CONFIG_LLC2 is not set +# CONFIG_IPX is not set +# CONFIG_ATALK is not set +# CONFIG_X25 is not set +# CONFIG_LAPB is not set +# CONFIG_ECONET is not set +# CONFIG_WAN_ROUTER is not set +# CONFIG_PHONET is not set +# CONFIG_NET_SCHED is not set +# CONFIG_DCB is not set + +# +# Network testing +# +# CONFIG_NET_PKTGEN is not set +# CONFIG_HAMRADIO is not set +# CONFIG_CAN is not set +# CONFIG_IRDA is not set +# CONFIG_BT is not set +# CONFIG_AF_RXRPC is not set +# CONFIG_WIRELESS is not set +# CONFIG_WIMAX is not set +# CONFIG_RFKILL is not set +# CONFIG_NET_9P is not set + +# +# Device Drivers +# + +# +# Generic Driver Options +# +CONFIG_UEVENT_HELPER_PATH=3D"/sbin/hotplug" +CONFIG_STANDALONE=3Dy +# CONFIG_PREVENT_FIRMWARE_BUILD is not set +CONFIG_FW_LOADER=3Dy +# CONFIG_FIRMWARE_IN_KERNEL is not set +CONFIG_EXTRA_FIRMWARE=3D"" +# CONFIG_SYS_HYPERVISOR is not set +# CONFIG_CONNECTOR is not set +CONFIG_MTD=3Dy +# CONFIG_MTD_DEBUG is not set +# CONFIG_MTD_CONCAT is not set +CONFIG_MTD_PARTITIONS=3Dy +# CONFIG_MTD_TESTS is not set +# CONFIG_MTD_REDBOOT_PARTS is not set +# CONFIG_MTD_CMDLINE_PARTS is not set +# CONFIG_MTD_OF_PARTS is not set +# CONFIG_MTD_AR7_PARTS is not set + +# +# User Modules And Translation Layers +# +CONFIG_MTD_CHAR=3Dy +CONFIG_MTD_BLKDEVS=3Dy +CONFIG_MTD_BLOCK=3Dy +# 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_OOPS is not set + +# +# RAM/ROM/Flash chip drivers +# +# CONFIG_MTD_CFI is not set +# CONFIG_MTD_JEDECPROBE is not set +CONFIG_MTD_MAP_BANK_WIDTH_1=3Dy +CONFIG_MTD_MAP_BANK_WIDTH_2=3Dy +CONFIG_MTD_MAP_BANK_WIDTH_4=3Dy +# 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=3Dy +CONFIG_MTD_CFI_I2=3Dy +# CONFIG_MTD_CFI_I4 is not set +# CONFIG_MTD_CFI_I8 is not set +# 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_INTEL_VR_NOR is not set +# CONFIG_MTD_PLATRAM is not set + +# +# Self-contained MTD device drivers +# +# CONFIG_MTD_PMC551 is not set +# 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=3Dy +# CONFIG_MTD_NAND_VERIFY_WRITE is not set +# CONFIG_MTD_NAND_ECC_SMC is not set +# CONFIG_MTD_NAND_MUSEUM_IDS is not set +CONFIG_MTD_NAND_IDS=3Dy +# CONFIG_MTD_NAND_DISKONCHIP is not set +# CONFIG_MTD_NAND_CAFE is not set +# CONFIG_MTD_NAND_NANDSIM is not set +# CONFIG_MTD_NAND_PLATFORM is not set +# CONFIG_MTD_NAND_FSL_ELBC is not set +CONFIG_MTD_NAND_MPC5121_NFC=3Dy +# CONFIG_MTD_ONENAND is not set + +# +# LPDDR flash memory drivers +# +# CONFIG_MTD_LPDDR is not set + +# +# UBI - Unsorted block images +# +CONFIG_MTD_UBI=3Dy +CONFIG_MTD_UBI_WL_THRESHOLD=3D4096 +CONFIG_MTD_UBI_BEB_RESERVE=3D1 +# CONFIG_MTD_UBI_GLUEBI is not set + +# +# UBI debugging options +# +# CONFIG_MTD_UBI_DEBUG is not set +CONFIG_OF_DEVICE=3Dy +CONFIG_OF_I2C=3Dy +# CONFIG_PARPORT is not set +CONFIG_BLK_DEV=3Dy +# CONFIG_BLK_DEV_FD is not set +# CONFIG_BLK_CPQ_DA is not set +# CONFIG_BLK_CPQ_CISS_DA is not set +# CONFIG_BLK_DEV_DAC960 is not set +# CONFIG_BLK_DEV_UMEM is not set +# CONFIG_BLK_DEV_COW_COMMON is not set +# CONFIG_BLK_DEV_LOOP is not set +# CONFIG_BLK_DEV_NBD is not set +# CONFIG_BLK_DEV_SX8 is not set +CONFIG_BLK_DEV_RAM=3Dy +CONFIG_BLK_DEV_RAM_COUNT=3D1 +CONFIG_BLK_DEV_RAM_SIZE=3D8192 +CONFIG_BLK_DEV_XIP=3Dy +# CONFIG_CDROM_PKTCDVD is not set +# CONFIG_ATA_OVER_ETH is not set +# CONFIG_BLK_DEV_HD is not set +CONFIG_MISC_DEVICES=3Dy +# CONFIG_PHANTOM 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_ISL29003 is not set +# CONFIG_C2PORT is not set + +# +# EEPROM support +# +CONFIG_EEPROM_AT24=3Dy +# CONFIG_EEPROM_LEGACY is not set +# CONFIG_EEPROM_93CX6 is not set +CONFIG_HAVE_IDE=3Dy +# CONFIG_IDE is not set + +# +# SCSI device support +# +# CONFIG_RAID_ATTRS is not set +# CONFIG_SCSI is not set +# CONFIG_SCSI_DMA is not set +# CONFIG_SCSI_NETLINK is not set +# CONFIG_ATA is not set +# CONFIG_MD is not set +# CONFIG_FUSION is not set + +# +# IEEE 1394 (FireWire) support +# + +# +# Enable only one of the two stacks, unless you know what you are doing +# +# CONFIG_FIREWIRE is not set +# CONFIG_IEEE1394 is not set +# CONFIG_I2O is not set +# CONFIG_MACINTOSH_DRIVERS is not set +CONFIG_NETDEVICES=3Dy +CONFIG_COMPAT_NET_DEV_OPS=3Dy +# CONFIG_DUMMY is not set +# CONFIG_BONDING is not set +# CONFIG_MACVLAN is not set +# CONFIG_EQUALIZER is not set +# CONFIG_TUN is not set +# CONFIG_VETH is not set +# CONFIG_ARCNET is not set +CONFIG_PHYLIB=3Dy + +# +# MII PHY device drivers +# +CONFIG_MARVELL_PHY=3Dy +CONFIG_DAVICOM_PHY=3Dy +CONFIG_QSEMI_PHY=3Dy +CONFIG_LXT_PHY=3Dy +CONFIG_CICADA_PHY=3Dy +CONFIG_VITESSE_PHY=3Dy +CONFIG_SMSC_PHY=3Dy +CONFIG_BROADCOM_PHY=3Dy +CONFIG_ICPLUS_PHY=3Dy +CONFIG_REALTEK_PHY=3Dy +CONFIG_NATIONAL_PHY=3Dy +CONFIG_STE10XP=3Dy +CONFIG_LSI_ET1011C_PHY=3Dy +CONFIG_FIXED_PHY=3Dy +CONFIG_MDIO_BITBANG=3Dy +CONFIG_NET_ETHERNET=3Dy +CONFIG_MII=3Dy +# CONFIG_HAPPYMEAL is not set +# CONFIG_SUNGEM is not set +# CONFIG_CASSINI is not set +# CONFIG_NET_VENDOR_3COM is not set +# CONFIG_ETHOC is not set +# CONFIG_DNET is not set +# CONFIG_NET_TULIP is not set +# CONFIG_HP100 is not set +# CONFIG_IBM_NEW_EMAC_ZMII is not set +# CONFIG_IBM_NEW_EMAC_RGMII is not set +# CONFIG_IBM_NEW_EMAC_TAH is not set +# CONFIG_IBM_NEW_EMAC_EMAC4 is not set +# CONFIG_IBM_NEW_EMAC_NO_FLOW_CTRL is not set +# CONFIG_IBM_NEW_EMAC_MAL_CLR_ICINTSTAT is not set +# CONFIG_IBM_NEW_EMAC_MAL_COMMON_ERR is not set +# CONFIG_NET_PCI is not set +# CONFIG_B44 is not set +# CONFIG_ATL2 is not set +CONFIG_FS_ENET=3Dy +CONFIG_FS_ENET_MPC5121_FEC=3Dy +CONFIG_FS_ENET_FEC_TX_ALIGN_WORKAROUND=3Dy +CONFIG_FS_ENET_HAS_FEC=3Dy +CONFIG_FS_ENET_MDIO_FEC=3Dy +# CONFIG_NETDEV_1000 is not set +# CONFIG_NETDEV_10000 is not set +# CONFIG_TR is not set + +# +# Wireless LAN +# +# CONFIG_WLAN_PRE80211 is not set +# CONFIG_WLAN_80211 is not set + +# +# Enable WiMAX (Networking options) to see the WiMAX drivers +# +# CONFIG_WAN is not set +# CONFIG_FDDI is not set +# CONFIG_HIPPI is not set +# CONFIG_PPP is not set +# CONFIG_SLIP is not set +# CONFIG_NETCONSOLE is not set +# CONFIG_NETPOLL is not set +# CONFIG_NET_POLL_CONTROLLER is not set +# CONFIG_ISDN is not set +# CONFIG_PHONE is not set + +# +# Input device support +# +CONFIG_INPUT=3Dy +# CONFIG_INPUT_FF_MEMLESS is not set +# CONFIG_INPUT_POLLDEV is not set + +# +# Userland interfaces +# +CONFIG_INPUT_MOUSEDEV=3Dy +# CONFIG_INPUT_MOUSEDEV_PSAUX is not set +CONFIG_INPUT_MOUSEDEV_SCREEN_X=3D1024 +CONFIG_INPUT_MOUSEDEV_SCREEN_Y=3D768 +# CONFIG_INPUT_JOYDEV is not set +# CONFIG_INPUT_EVDEV is not set +# CONFIG_INPUT_EVBUG is not set + +# +# Input Device Drivers +# +# CONFIG_INPUT_KEYBOARD is not set +# CONFIG_INPUT_MOUSE is not set +# CONFIG_INPUT_JOYSTICK is not set +# CONFIG_INPUT_TABLET is not set +# CONFIG_INPUT_TOUCHSCREEN is not set +# CONFIG_INPUT_MISC is not set + +# +# Hardware I/O ports +# +# CONFIG_SERIO is not set +# CONFIG_GAMEPORT is not set + +# +# Character devices +# +CONFIG_VT=3Dy +CONFIG_CONSOLE_TRANSLATIONS=3Dy +CONFIG_VT_CONSOLE=3Dy +CONFIG_HW_CONSOLE=3Dy +# CONFIG_VT_HW_CONSOLE_BINDING is not set +# CONFIG_DEVKMEM is not set +# CONFIG_SERIAL_NONSTANDARD is not set +# CONFIG_NOZOMI is not set + +# +# Serial drivers +# +# CONFIG_SERIAL_8250 is not set + +# +# Non-8250 serial port support +# +# CONFIG_SERIAL_UARTLITE is not set +CONFIG_SERIAL_CORE=3Dy +CONFIG_SERIAL_CORE_CONSOLE=3Dy +CONFIG_SERIAL_MPC52xx=3Dy +CONFIG_SERIAL_MPC52xx_CONSOLE=3Dy +CONFIG_SERIAL_MPC52xx_CONSOLE_BAUD=3D115200 +# CONFIG_SERIAL_JSM is not set +CONFIG_UNIX98_PTYS=3Dy +# CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set +# CONFIG_LEGACY_PTYS 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_R3964 is not set +# CONFIG_APPLICOM is not set +# CONFIG_RAW_DRIVER is not set +# CONFIG_TCG_TPM is not set +CONFIG_DEVPORT=3Dy +CONFIG_I2C=3Dy +CONFIG_I2C_BOARDINFO=3Dy +CONFIG_I2C_CHARDEV=3Dy +CONFIG_I2C_HELPER_AUTO=3Dy + +# +# I2C Hardware Bus support +# + +# +# PC SMBus host controller drivers +# +# CONFIG_I2C_ALI1535 is not set +# CONFIG_I2C_ALI1563 is not set +# CONFIG_I2C_ALI15X3 is not set +# CONFIG_I2C_AMD756 is not set +# CONFIG_I2C_AMD8111 is not set +# CONFIG_I2C_I801 is not set +# CONFIG_I2C_ISCH is not set +# CONFIG_I2C_PIIX4 is not set +# CONFIG_I2C_NFORCE2 is not set +# CONFIG_I2C_SIS5595 is not set +# CONFIG_I2C_SIS630 is not set +# CONFIG_I2C_SIS96X is not set +# CONFIG_I2C_VIA is not set +# CONFIG_I2C_VIAPRO is not set + +# +# I2C system bus drivers (mostly embedded / system-on-chip) +# +CONFIG_I2C_MPC=3Dy +# CONFIG_I2C_OCORES is not set +# CONFIG_I2C_SIMTEC is not set + +# +# External I2C/SMBus adapter drivers +# +# CONFIG_I2C_PARPORT_LIGHT is not set +# CONFIG_I2C_TAOS_EVM is not set + +# +# Graphics adapter I2C/DDC channel drivers +# +# CONFIG_I2C_VOODOO3 is not set + +# +# Other I2C/SMBus bus drivers +# +# CONFIG_I2C_PCA_PLATFORM is not set +# CONFIG_I2C_STUB is not set + +# +# Miscellaneous I2C Chip support +# +# CONFIG_DS1682 is not set +# CONFIG_SENSORS_PCF8574 is not set +# CONFIG_PCF8575 is not set +# CONFIG_SENSORS_PCA9539 is not set +# CONFIG_SENSORS_MAX6875 is not set +# CONFIG_SENSORS_TSL2550 is not set +# CONFIG_I2C_DEBUG_CORE is not set +# CONFIG_I2C_DEBUG_ALGO is not set +# CONFIG_I2C_DEBUG_BUS is not set +# CONFIG_I2C_DEBUG_CHIP is not set +# CONFIG_SPI is not set +CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=3Dy +# CONFIG_GPIOLIB is not set +# CONFIG_W1 is not set +# CONFIG_POWER_SUPPLY is not set +# CONFIG_HWMON is not set +# CONFIG_THERMAL is not set +# CONFIG_THERMAL_HWMON is not set +# CONFIG_WATCHDOG is not set +CONFIG_SSB_POSSIBLE=3Dy + +# +# Sonics Silicon Backplane +# +# CONFIG_SSB is not set + +# +# Multifunction device drivers +# +# 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 + +# +# Multimedia devices +# + +# +# Multimedia core support +# +# CONFIG_VIDEO_DEV is not set +# CONFIG_DVB_CORE is not set +# CONFIG_VIDEO_MEDIA is not set + +# +# Multimedia drivers +# +# CONFIG_DAB is not set + +# +# Graphics support +# +# CONFIG_AGP is not set +# CONFIG_DRM is not set +# CONFIG_VGASTATE is not set +# CONFIG_VIDEO_OUTPUT_CONTROL is not set +# CONFIG_FB is not set +# CONFIG_BACKLIGHT_LCD_SUPPORT is not set + +# +# Display device support +# +# CONFIG_DISPLAY_SUPPORT is not set + +# +# Console display driver support +# +# CONFIG_VGA_CONSOLE is not set +CONFIG_DUMMY_CONSOLE=3Dy +# CONFIG_SOUND is not set +# CONFIG_HID_SUPPORT is not set +# CONFIG_USB_SUPPORT is not set +# CONFIG_UWB is not set +# CONFIG_MMC is not set +# CONFIG_MEMSTICK is not set +# CONFIG_NEW_LEDS is not set +# CONFIG_ACCESSIBILITY is not set +# CONFIG_INFINIBAND is not set +# CONFIG_EDAC is not set +CONFIG_RTC_LIB=3Dy +CONFIG_RTC_CLASS=3Dy +CONFIG_RTC_HCTOSYS=3Dy +CONFIG_RTC_HCTOSYS_DEVICE=3D"rtc1" +# CONFIG_RTC_DEBUG is not set + +# +# RTC interfaces +# +CONFIG_RTC_INTF_SYSFS=3Dy +CONFIG_RTC_INTF_PROC=3Dy +CONFIG_RTC_INTF_DEV=3Dy +# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set +# CONFIG_RTC_DRV_TEST is not set + +# +# I2C RTC drivers +# +# CONFIG_RTC_DRV_DS1307 is not set +# 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=3Dy +# CONFIG_RTC_DRV_M41T80_WDT 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_GENERIC is not set +CONFIG_RTC_DRV_MPC5121=3Dy +CONFIG_DMADEVICES=3Dy + +# +# DMA Devices +# +# CONFIG_FSL_DMA is not set +CONFIG_MPC512X_DMA=3Dy +CONFIG_DMA_ENGINE=3Dy + +# +# DMA Clients +# +# CONFIG_NET_DMA is not set +# CONFIG_ASYNC_TX_DMA is not set +CONFIG_DMATEST=3Dm +# CONFIG_AUXDISPLAY is not set +# CONFIG_UIO is not set +# CONFIG_STAGING is not set + +# +# File systems +# +CONFIG_EXT2_FS=3Dy +# CONFIG_EXT2_FS_XATTR is not set +CONFIG_EXT2_FS_XIP=3Dy +# CONFIG_EXT3_FS is not set +# CONFIG_EXT4_FS is not set +CONFIG_FS_XIP=3Dy +# CONFIG_REISERFS_FS is not set +# CONFIG_JFS_FS is not set +# CONFIG_FS_POSIX_ACL is not set +CONFIG_FILE_LOCKING=3Dy +# CONFIG_XFS_FS is not set +# CONFIG_OCFS2_FS is not set +# CONFIG_BTRFS_FS is not set +# CONFIG_DNOTIFY is not set +# CONFIG_INOTIFY is not set +# CONFIG_QUOTA is not set +# CONFIG_AUTOFS_FS is not set +# CONFIG_AUTOFS4_FS is not set +# CONFIG_FUSE_FS is not set + +# +# Caches +# +# CONFIG_FSCACHE is not set + +# +# CD-ROM/DVD Filesystems +# +# CONFIG_ISO9660_FS is not set +# CONFIG_UDF_FS is not set + +# +# DOS/FAT/NT Filesystems +# +# CONFIG_MSDOS_FS is not set +# CONFIG_VFAT_FS is not set +# CONFIG_NTFS_FS is not set + +# +# Pseudo filesystems +# +CONFIG_PROC_FS=3Dy +# CONFIG_PROC_KCORE is not set +CONFIG_PROC_SYSCTL=3Dy +CONFIG_PROC_PAGE_MONITOR=3Dy +CONFIG_SYSFS=3Dy +CONFIG_TMPFS=3Dy +# CONFIG_TMPFS_POSIX_ACL is not set +# CONFIG_HUGETLB_PAGE is not set +# CONFIG_CONFIGFS_FS is not set +CONFIG_MISC_FILESYSTEMS=3Dy +# CONFIG_ADFS_FS is not set +# CONFIG_AFFS_FS is not set +# CONFIG_HFS_FS is not set +# CONFIG_HFSPLUS_FS is not set +# CONFIG_BEFS_FS is not set +# CONFIG_BFS_FS is not set +# CONFIG_EFS_FS is not set +CONFIG_JFFS2_FS=3Dy +CONFIG_JFFS2_FS_DEBUG=3D0 +CONFIG_JFFS2_FS_WRITEBUFFER=3Dy +# CONFIG_JFFS2_FS_WBUF_VERIFY is not set +# CONFIG_JFFS2_SUMMARY is not set +# CONFIG_JFFS2_FS_XATTR is not set +# CONFIG_JFFS2_COMPRESSION_OPTIONS is not set +CONFIG_JFFS2_ZLIB=3Dy +# CONFIG_JFFS2_LZO is not set +CONFIG_JFFS2_RTIME=3Dy +# CONFIG_JFFS2_RUBIN is not set +CONFIG_UBIFS_FS=3Dy +# CONFIG_UBIFS_FS_XATTR is not set +# CONFIG_UBIFS_FS_ADVANCED_COMPR is not set +CONFIG_UBIFS_FS_LZO=3Dy +CONFIG_UBIFS_FS_ZLIB=3Dy +# CONFIG_UBIFS_FS_DEBUG is not set +# CONFIG_CRAMFS is not set +# CONFIG_SQUASHFS is not set +# CONFIG_VXFS_FS is not set +# CONFIG_MINIX_FS is not set +# CONFIG_OMFS_FS is not set +# CONFIG_HPFS_FS is not set +# CONFIG_QNX4FS_FS is not set +# CONFIG_ROMFS_FS is not set +# CONFIG_SYSV_FS is not set +# CONFIG_UFS_FS is not set +# CONFIG_NILFS2_FS is not set +CONFIG_NETWORK_FILESYSTEMS=3Dy +CONFIG_NFS_FS=3Dy +CONFIG_NFS_V3=3Dy +# CONFIG_NFS_V3_ACL is not set +# CONFIG_NFS_V4 is not set +CONFIG_ROOT_NFS=3Dy +# CONFIG_NFSD is not set +CONFIG_LOCKD=3Dy +CONFIG_LOCKD_V4=3Dy +CONFIG_NFS_COMMON=3Dy +CONFIG_SUNRPC=3Dy +# CONFIG_RPCSEC_GSS_KRB5 is not set +# CONFIG_RPCSEC_GSS_SPKM3 is not set +# CONFIG_SMB_FS is not set +# CONFIG_CIFS is not set +# CONFIG_NCP_FS is not set +# CONFIG_CODA_FS is not set +# CONFIG_AFS_FS is not set + +# +# Partition Types +# +# CONFIG_PARTITION_ADVANCED is not set +CONFIG_MSDOS_PARTITION=3Dy +# CONFIG_NLS is not set +# CONFIG_DLM is not set +# CONFIG_BINARY_PRINTF is not set + +# +# Library routines +# +CONFIG_BITREVERSE=3Dy +CONFIG_GENERIC_FIND_LAST_BIT=3Dy +# CONFIG_CRC_CCITT is not set +CONFIG_CRC16=3Dy +# CONFIG_CRC_T10DIF is not set +# CONFIG_CRC_ITU_T is not set +CONFIG_CRC32=3Dy +# CONFIG_CRC7 is not set +# CONFIG_LIBCRC32C is not set +CONFIG_ZLIB_INFLATE=3Dy +CONFIG_ZLIB_DEFLATE=3Dy +CONFIG_LZO_COMPRESS=3Dy +CONFIG_LZO_DECOMPRESS=3Dy +CONFIG_DECOMPRESS_GZIP=3Dy +CONFIG_DECOMPRESS_BZIP2=3Dy +CONFIG_DECOMPRESS_LZMA=3Dy +CONFIG_HAS_IOMEM=3Dy +CONFIG_HAS_IOPORT=3Dy +CONFIG_HAS_DMA=3Dy +CONFIG_HAVE_LMB=3Dy +CONFIG_NLATTR=3Dy + +# +# Kernel hacking +# +# CONFIG_PRINTK_TIME is not set +# CONFIG_ENABLE_WARN_DEPRECATED is not set +# CONFIG_ENABLE_MUST_CHECK is not set +CONFIG_FRAME_WARN=3D1024 +# CONFIG_MAGIC_SYSRQ is not set +# CONFIG_UNUSED_SYMBOLS is not set +# CONFIG_DEBUG_FS is not set +# CONFIG_HEADERS_CHECK is not set +# CONFIG_DEBUG_KERNEL is not set +CONFIG_DEBUG_BUGVERBOSE=3Dy +CONFIG_DEBUG_MEMORY_INIT=3Dy +# CONFIG_RCU_CPU_STALL_DETECTOR is not set +# CONFIG_LATENCYTOP is not set +# CONFIG_SYSCTL_SYSCALL_CHECK is not set +CONFIG_HAVE_FUNCTION_TRACER=3Dy +CONFIG_HAVE_FUNCTION_GRAPH_TRACER=3Dy +CONFIG_HAVE_DYNAMIC_FTRACE=3Dy +CONFIG_HAVE_FTRACE_MCOUNT_RECORD=3Dy +CONFIG_TRACING_SUPPORT=3Dy + +# +# Tracers +# +# CONFIG_FUNCTION_TRACER is not set +# CONFIG_SCHED_TRACER is not set +# CONFIG_CONTEXT_SWITCH_TRACER is not set +# CONFIG_EVENT_TRACER is not set +# CONFIG_BOOT_TRACER is not set +# CONFIG_TRACE_BRANCH_PROFILING is not set +# CONFIG_STACK_TRACER is not set +# CONFIG_KMEMTRACE is not set +# CONFIG_WORKQUEUE_TRACER is not set +# CONFIG_BLK_DEV_IO_TRACE is not set +# CONFIG_SAMPLES is not set +CONFIG_HAVE_ARCH_KGDB=3Dy +CONFIG_PRINT_STACK_DEPTH=3D64 +# CONFIG_IRQSTACKS is not set +# CONFIG_BOOTX_TEXT is not set +# CONFIG_PPC_EARLY_DEBUG is not set + +# +# Security options +# +# CONFIG_KEYS is not set +# CONFIG_SECURITY is not set +# CONFIG_SECURITYFS is not set +# CONFIG_SECURITY_FILE_CAPABILITIES is not set +CONFIG_CRYPTO=3Dy + +# +# Crypto core or helper +# +# CONFIG_CRYPTO_FIPS is not set +CONFIG_CRYPTO_ALGAPI=3Dy +CONFIG_CRYPTO_ALGAPI2=3Dy +# CONFIG_CRYPTO_MANAGER is not set +# CONFIG_CRYPTO_MANAGER2 is not set +# CONFIG_CRYPTO_GF128MUL is not set +# CONFIG_CRYPTO_NULL is not set +# CONFIG_CRYPTO_CRYPTD is not set +# CONFIG_CRYPTO_AUTHENC is not set +# CONFIG_CRYPTO_TEST is not set + +# +# Authenticated Encryption with Associated Data +# +# CONFIG_CRYPTO_CCM is not set +# CONFIG_CRYPTO_GCM is not set +# CONFIG_CRYPTO_SEQIV is not set + +# +# Block modes +# +# CONFIG_CRYPTO_CBC is not set +# CONFIG_CRYPTO_CTR is not set +# CONFIG_CRYPTO_CTS is not set +# CONFIG_CRYPTO_ECB is not set +# CONFIG_CRYPTO_LRW is not set +# CONFIG_CRYPTO_PCBC is not set +# CONFIG_CRYPTO_XTS is not set + +# +# Hash modes +# +# CONFIG_CRYPTO_HMAC is not set +# CONFIG_CRYPTO_XCBC is not set + +# +# Digest +# +# CONFIG_CRYPTO_CRC32C is not set +# CONFIG_CRYPTO_MD4 is not set +# CONFIG_CRYPTO_MD5 is not set +# CONFIG_CRYPTO_MICHAEL_MIC is not set +# CONFIG_CRYPTO_RMD128 is not set +# CONFIG_CRYPTO_RMD160 is not set +# CONFIG_CRYPTO_RMD256 is not set +# CONFIG_CRYPTO_RMD320 is not set +# CONFIG_CRYPTO_SHA1 is not set +# CONFIG_CRYPTO_SHA256 is not set +# CONFIG_CRYPTO_SHA512 is not set +# CONFIG_CRYPTO_TGR192 is not set +# CONFIG_CRYPTO_WP512 is not set + +# +# Ciphers +# +# CONFIG_CRYPTO_AES is not set +# CONFIG_CRYPTO_ANUBIS is not set +# CONFIG_CRYPTO_ARC4 is not set +# CONFIG_CRYPTO_BLOWFISH is not set +# CONFIG_CRYPTO_CAMELLIA is not set +# CONFIG_CRYPTO_CAST5 is not set +# CONFIG_CRYPTO_CAST6 is not set +# CONFIG_CRYPTO_DES is not set +# CONFIG_CRYPTO_FCRYPT is not set +# CONFIG_CRYPTO_KHAZAD is not set +# CONFIG_CRYPTO_SALSA20 is not set +# CONFIG_CRYPTO_SEED is not set +# CONFIG_CRYPTO_SERPENT is not set +# CONFIG_CRYPTO_TEA is not set +# CONFIG_CRYPTO_TWOFISH is not set + +# +# Compression +# +CONFIG_CRYPTO_DEFLATE=3Dy +# CONFIG_CRYPTO_ZLIB is not set +CONFIG_CRYPTO_LZO=3Dy + +# +# Random Number Generation +# +# CONFIG_CRYPTO_ANSI_CPRNG is not set +# CONFIG_CRYPTO_HW is not set +CONFIG_PPC_CLOCK=3Dy +# CONFIG_VIRTUALIZATION is not set --
Quoted 3 lines
1.6.0.6
--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
Re: [PATCH 01/04] mpc5121: prepare support for additional boards
Dear Grant,
Quoted 4 lines · In message <[email protected]> you…
I'll ignore this one for the time being. After stuff is actually merged and at about -rc2 time is the time to muck around with defconfigs.
Did you receive the first patch series as well:
[PATCH 00/16] Add support for MPC512x etc. ?
It seems it takes ages before linuxppc-dev delivers the messages?
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] It is easier to change the specification to fit the program than vice versa.
Re: [PATCH 01/04] mpc5121: prepare support for additional boards
Quoted 3 lines · Wolfgang Denk
Dear Grant,
In message <[email protected]> y=
Quoted 10 lines · ou
Quoted 4 lines
I'll ignore this one for the time being. =A0After stuff is actually merged and at about -rc2 time is the time to muck around with defconfigs.
Did you receive the first patch series as well:
[PATCH 00/16] Add support for MPC512x etc. ?
It seems it takes ages before linuxppc-dev delivers the messages?
Yup. Just started replying at the wrong point. :-)
g.
--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
PATCH 2/4 ARIA: add device tree source file
In reply to Wolfgang DenkARIA is a MPC5121 based COM Express module by Dave/DENX.
--- arch/powerpc/boot/dts/aria.dts | 410 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 410 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/boot/dts/aria.dts
arch/powerpc/boot/dts/aria.dts new file +407 -0
@@ -0,0 +1,407 @@ +/* + * Aria Device Tree Source + * + * Copyright 2009 Dave Srl www.dave.eu + * Copyright 2009 Wolfgang Denk <[email protected]> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + */ + +/dts-v1/; + +/ { + model = "aria"; + compatible = "davedenx,aria"; + #address-cells = <1>; + #size-cells = <1>; + + aliases { + ethernet0 = &enet; + + serial0 = &serial0; + serial1 = &serial1; + + pci = &pci; + }; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + PowerPC,5121@0 { + device_type = "cpu"; + reg = <0>; + d-cache-line-size = <0x20>; // 32 bytes + i-cache-line-size = <0x20>; // 32 bytes + d-cache-size = <0x8000>; // L1, 32K + i-cache-size = <0x8000>; // L1, 32K + timebase-frequency = <49500000>;// 49.5 MHz (csb/4) + //bus-frequency = <198000000>; // 198 MHz csb bus + //clock-frequency = <396000000>; // 396 MHz ppc core + bus-frequency = <158000000>; + clock-frequency = <316000000>; + }; + }; + + memory { + device_type = "memory"; + reg = <0x00000000 0x10000000>; // 256MB at 0 + }; + + mbx@20000000 { + device_type = "mbx"; + compatible = "fsl,mpc5121-mbx"; + reg = <0x20000000 0x4000>; + interrupts = <66 0x8>; + interrupt-parent = < &ipic >; + }; + + sram@30000000 { + compatible = "fsl,mpc5121-sram"; + reg = <0x30000000 0x20000>; // 128K at 0x30000000 + }; + + nfc@40000000 { + //compatible = "fsl,mpc5121rev2-nfc"; + compatible = "fsl,mpc5121-nfc"; + reg = <0x40000000 0x100000>; // 1M at 0x40000000 + interrupts = <6 8>; + interrupt-parent = < &ipic >; + #address-cells = <1>; + #size-cells = <1>; + write-size = <2048>; + spare-size = <64>; + chips = <1>; + nand@0 { + label = "nand"; + reg = <0x00000000 0x08000000>; // 128 MB + }; + }; + + localbus@80000020 { + compatible = "fsl,mpc5121-localbus"; + #address-cells = <2>; + #size-cells = <1>; + reg = <0x80000020 0x40>; + + ranges = <0x0 0x0 0xF8000000 0x08000000>; + + flash@0,0 { + compatible = "cfi-flash"; + reg = <0 0x0 0x8000000>; + #address-cells = <1>; + #size-cells = <1>; + bank-width = <2>; + device-width = <2>; + partition@0 { + label = "user"; + reg = <0x00000000 0x07000000>; // 112 MiB for user data + }; + partition@07000000 { + label = "rootfs"; + reg = <0x07000000 0x00c00000>; // 12 MiB for root file system + }; + partition@07c00000 { + label = "kernel"; + reg = <0x07c00000 0x00300000>; // 3 MiB for kernel + }; + partition@07f00000 { + label = "u-boot"; + reg = <0x07f00000 0x000c0000>; // 768 KiB for u-boot w/ env + read-only; + }; + partition@07fc0000 { + label = "device-tree"; + reg = <0x07fc0000 0x00040000>; // 256 KiB for device tree + }; + }; + }; + + soc@80000000 { + compatible = "fsl,mpc5121-immr"; + device_type = "soc"; + #address-cells = <1>; + #size-cells = <1>; + #interrupt-cells = <2>; + ranges = <0x0 0x80000000 0x400000>; + reg = <0x80000000 0x400000>; + bus-frequency = <66000000>; // 66 MHz ips bus + + + // IPIC + // interrupts cell = <intr #, sense> + // sense values match linux IORESOURCE_IRQ_* defines: + // sense == 8: Level, low assertion + // sense == 2: Edge, high-to-low change + // + ipic: interrupt-controller@c00 { + compatible = "fsl,mpc5121-ipic", "fsl,ipic"; + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <2>; + reg = <0xc00 0x100>; + }; + + rtc@a00 { // Real time clock + compatible = "fsl,mpc5121-rtc"; + reg = <0xa00 0x100>; + interrupts = <79 0x8 80 0x8>; + interrupt-parent = < &ipic >; + }; + + reset@e00 { // Reset module + compatible = "fsl,mpc5121-reset"; + reg = <0xe00 0x100>; + }; + + clock@f00 { // Clock control + compatible = "fsl,mpc5121rev2-clock", "fsl,mpc5121-clock"; + reg = <0xf00 0x100>; + }; + + pmc@1000{ //Power Management Controller + compatible = "fsl,mpc5121-pmc"; + reg = <0x1000 0x100>; + interrupts = <83 0x2>; + interrupt-parent = < &ipic >; + }; + + gpio@1100 { + compatible = "fsl,mpc5121-gpio"; + reg = <0x1100 0x100>; + interrupts = <78 0x8>; + interrupt-parent = < &ipic >; + }; + + mscan@1300 { + compatible = "fsl,mpc5121-mscan"; + cell-index = <0>; + interrupts = <12 0x8>; + interrupt-parent = < &ipic >; + reg = <0x1300 0x80>; + }; + + mscan@1380 { + compatible = "fsl,mpc5121-mscan"; + cell-index = <1>; + interrupts = <13 0x8>; + interrupt-parent = < &ipic >; + reg = <0x1380 0x80>; + }; + + // this is here for reference only +// sdhc@1500 { +// compatible = "fsl,mpc5121-sdhc"; +// interrupts = <8 0x8>; +// interrupt-parent = < &ipic >; +// reg = <0x1500 0x100>; +// }; + + i2c@1700 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "fsl,mpc5121-i2c", "fsl-i2c"; + cell-index = <0>; + reg = <0x1700 0x20>; + interrupts = <9 0x8>; + interrupt-parent = < &ipic >; + fsl5200-clocking; + + rtc@68 { + compatible = "stm,m41t80"; + reg = <0x68>; + }; + }; + + i2c@1720 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "fsl,mpc5121-i2c", "fsl-i2c"; + cell-index = <1>; + reg = <0x1720 0x20>; + interrupts = <10 0x8>; + interrupt-parent = < &ipic >; + fsl5200-clocking; + }; + + i2c@1740 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "fsl,mpc5121-i2c", "fsl-i2c"; + cell-index = <2>; + reg = <0x1740 0x20>; + interrupts = <11 0x8>; + interrupt-parent = < &ipic >; + fsl5200-clocking; + }; + + i2ccontrol@1760 { + compatible = "fsl,mpc5121-i2c-ctrl"; + reg = <0x1760 0x8>; + }; + + axe@2000 { + compatible = "fsl,mpc5121-axe"; + reg = <0x2000 0x100>; + interrupts = <42 0x8>; + interrupt-parent = < &ipic >; + }; + + diu@2100 { + device_type = "display"; + compatible = "fsl-diu"; + reg = <0x2100 0x100>; + interrupts = <64 0x8>; + interrupt-parent = < &ipic >; + }; + + mdio@2800 { + device_type = "mdio"; + compatible = "fsl,mpc5121-fec-mdio"; + reg = <0x2800 0x800>; + #address-cells = <1>; + #size-cells = <0>; + phy: ethernet-phy@0 { + reg = <23>; + device_type = "ethernet-phy"; + }; + }; + + enet: ethernet@2800 { + device_type = "network"; + compatible = "fsl,mpc5121-fec"; + reg = <0x2800 0x800>; + local-mac-address = [ 00 00 00 00 00 00 ]; + interrupts = <4 0x8>; + interrupt-parent = < &ipic >; + phy-handle = < &phy >; + fsl,align-tx-packets = <4>; + }; + + // 5121e has two dr usb modules + // We use only USB0 + + // USB1 using external ULPI PHY + //usb@3000 { + // device_type = "usb"; + // compatible = "fsl-usb2-dr"; + // reg = <0x3000 0x1000>; + // #address-cells = <1>; + // #size-cells = <0>; + // interrupt-parent = < &ipic >; + // interrupts = <43 0x8>; + // dr_mode = "otg"; + // phy_type = "ulpi"; + //}; + + // USB0 using internal UTMI PHY + usb@4000 { + device_type = "usb"; + compatible = "fsl-usb2-dr"; + reg = <0x4000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + interrupt-parent = < &ipic >; + interrupts = <44 0x8>; + dr_mode = "host"; + phy_type = "utmi_wide"; + //port0; + }; + + // IO control + ioctl@a000 { + compatible = "fsl,mpc5121-ioctl"; + reg = <0xA000 0x1000>; + }; + + pata@10200 { + compatible = "fsl,mpc5121-pata"; + reg = <0x10200 0x100>; + interrupts = <5 0x8>; + interrupt-parent = < &ipic >; + }; + + // 512x PSCs are not 52xx PSCs compatible + // PSC3 serial port A aka ttyPSC0 + serial0: serial@11300 { + device_type = "serial"; + compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc"; + // Logical port assignment needed until driver + // learns to use aliases + port-number = <0>; + cell-index = <3>; + reg = <0x11300 0x100>; + interrupts = <40 0x8 71 0x8>; + interrupt-parent = < &ipic >; + rx-fifo-size = <16>; + tx-fifo-size = <16>; + nodcd; + }; + + // PSC4 serial port B aka ttyPSC1 + serial1: serial@11400 { + device_type = "serial"; + compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc"; + // Logical port assignment needed until driver + // learns to use aliases + port-number = <1>; + cell-index = <4>; + reg = <0x11400 0x100>; + interrupts = <40 0x8 32 0x8>; + interrupt-parent = < &ipic >; + rx-fifo-size = <16>; + tx-fifo-size = <16>; + nodcd; + }; + + // PSC5 in ac97 mode + ac97@11500 { + device_type = "sound"; + compatible = "fsl,mpc5121-psc-ac97", "fsl,mpc5121-psc"; + cell-index = <5>; + reg = <0x11500 0x100>; + interrupts = <40 0x8>; + interrupt-parent = < &ipic >; + fsl,mode = "ac97-slave"; + rx-fifo-size = <384>; + tx-fifo-size = <384>; + }; + + pscfifo@11f00 { + compatible = "fsl,mpc5121-psc-fifo"; + reg = <0x11f00 0x100>; + interrupts = <40 0x8>; + interrupt-parent = < &ipic >; + }; + + dma@14000 { + compatible = "mpc512x-dma"; + reg = <0x14000 0x1800>; + interrupts = <65 0x8>; + interrupt-parent = < &ipic >; + }; + + }; + + pci: pci@80008500 { + interrupt-map-mask = <0xf800 0x0 0x0 0x7>; + interrupt-map = < + >; + interrupt-parent = < &ipic >; + interrupts = <1 0x8>; + bus-range = <0 0>; + ranges = <0x42000000 0x0 0xa0000000 0xa0000000 0x0 0x10000000 + 0x02000000 0x0 0xb0000000 0xb0000000 0x0 0x10000000 + 0x01000000 0x0 0x00000000 0x84000000 0x0 0x01000000>; + clock-frequency = <66666666>; + #interrupt-cells = <1>; + #size-cells = <2>; + #address-cells = <3>; + reg = <0x80008500 0x100>; + compatible = "fsl,mpc5121-pci"; + device_type = "pci"; + }; +};
Signature · 1 line
1.6.0.6
[PATCH 05/04] *** NOT FOR RELEASE *** HACK *** Work around MII clock issue ***
In reply to Wolfgang Denk---
This patch is NOT intended for inclusion into mainline, but rather a request for help. For some reason which I don't understand yet, the Ethernet interface on the ARIA board does not work in the default configuration, because MII probing fails.
What I'm seeing is this; the problem is with this part of code in "drivers/net/fs_enet/mii-fec.c":
156 fec->mii_speed = ((ppc_proc_freq + 4999999) / 5000000) << 1;
...
163 out_be32(&fec->fecp->fec_mii_speed, fec->mii_speed);
I added some debug messages, and this is what I see:
On the ADS5121, we have the CPU clocked at 400 MHz. I get:
...
## ppc_proc_freq = 399999996, fec->mii_speed = 160 FEC MII Bus: probed
...
It works fine.
According to the Ref. Man.:
A value of 0 in this field turns off the MDC and leaves it in a low-voltage state. Any non-zero value results in the MDC frequency of 1/(mii_speed*2) of the system clock frequency.
that means we have a MDC frequency of
400 MHz / (2 * 160) = 1.25 MHz
which is obviously within the 2.5 MHz limit.
Now ARIA is currently running at 316.8 MHz, and this is what I get:
...
## ppc_proc_freq = 316800000, fec->mii_speed = 128
fsl-fec-mdio: probe of 80002800.mdio failed with error -5
...
It fails. MDC frequency is
316.8 MHz / (2 * 128) = 1.24 MHz
which should be fine.
However, If I change the code to
fec->mii_speed = (((ppc_proc_freq / 1000000) / 30) + 1) << 1;
then I get:
...
## ppc_proc_freq = 316800000, fec->mii_speed = 22 FEC MII Bus: probed
... and it's working!!! However, I compute MDC frequency as
316.8 MHz / (2 * 22) = 7.2 MHz
which is far above the maximum allowed clock of 2.5 MHz ???
Has anybody any idea what might be going on here?
drivers/net/fs_enet/mii-fec.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
drivers/net/fs_enet/mii-fec.c +5 -1
@@ -153,8 +153,12 @@ static int __devinit fs_enet_mdio_probe(struct of_device *ofdev,if (!fec->fecp) goto out_fec; +#if 0 fec->mii_speed = ((ppc_proc_freq +4999999 ) /5000000 ) <<1 ; - +#else + fec->mii_speed = (((ppc_proc_freq /1000000 ) /30 ) +1 ) <<1 ; +printk ("## ppc_proc_freq = %d, fec->mii_speed = %d\n" , ppc_proc_freq, fec->mii_speed); +#endif setbits32 (&fec->fecp->fec_r_cntrl,FEC_RCNTRL_MII_MODE );setbits32 (&fec->fecp->fec_ecntrl,FEC_ECNTRL_PINMUX |FEC_ECNTRL_ETHER_EN );
Signature · 1 line
1.6.0.6
Re: [PATCH 05/04] *** NOT FOR RELEASE *** HACK *** Work around MII clock issue ***
Quoted 10 lines
Signed-off-by Wolfgang Denk <[email protected]>Cc Grant Likely <[email protected]>Cc John Rigby <[email protected]>---
This patch is NOT intended for inclusion into mainline, but rather a request for help. For some reason which I don't understand yet, the Ethernet interface on the ARIA board does not work in the default configuration, because MII probing fails.
Quoted 6 lines
What I'm seeing is this; the problem is with this part of code in "
drivers/net/fs_enet/mii-fec.c":156
fec->mii_speed= ((ppc_proc_freq+ 4999999) / 5000000) << 1;
...
163out_be32(&fec->fecp->fec_mii_speed, fec->mii_speed);
Just a stab in the dark: Perhaps the fec->fecp->fec_mii_speed field is misaligned or is 16 bits ?
Jocke
Re: [PATCH 05/04] *** NOT FOR RELEASE *** HACK *** Work around MII clock issue ***
Dear Joakim Tjernlund,
Quoted 3 lines · In message <OF97606123.49B50465-ONC12575AF.002E2518-C12575AF.002E6300@transmode…
Just a stab in the dark: Perhaps the
fec->fecp->fec_mii_speedfield is misaligned or is 16 bits ?
Good idea. The RM documents the register at offset 0x44 and describes it as 32 bits... and it's working fine on the MPC5121ADS board, but fails on ARIA.
Thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Lots of people drink from the wrong bottle sometimes. -- Edith Keeler, "The City on the Edge of Forever", stardate unknown
Re: [PATCH 05/04] *** NOT FOR RELEASE *** HACK *** Work around MII clock issue ***
Wolfgang Denk <[email protected]> wrote on 07/05/2009 11:19:48:
Quoted 4 lines
Dear Joakim Tjernlund,
In message
<OF97606123.49B50465-ONC12575AF.002E2518-C12575AF.002E6300@transmode.se>
Quoted 7 lines · you
Quoted 3 lines
Just a stab in the dark: Perhaps the
fec->fecp->fec_mii_speedfield is misaligned or is 16 bits ?Good idea. The RM documents the register at offset
0x44and describes it as 32 bits... and it's working fine on the MPC5121ADS board, but fails on ARIA.
OK, this is just a guess too: Some odd byte order requirements? No more ideas, sorry.
Jocke
Re: [PATCH 05/04] *** NOT FOR RELEASE *** HACK *** Work around MII clock issue ***
In reply to Wolfgang DenkI think the fec's parent clock is the ipb clock not the ppc core clock. Could that be the problem?
Quoted 84 lines · Wolfgang Denk
Signed-off-by Wolfgang Denk <[email protected]>Cc Grant Likely <[email protected]>Cc John Rigby <[email protected]>---
This patch is NOT intended for inclusion into mainline, but rather a request for help. For some reason which I don't understand yet, the Ethernet interface on the ARIA board does not work in the default configuration, because MII probing fails.What I'm seeing is this; the problem is with this part of code in "
drivers/net/fs_enet/mii-fec.c":156
fec->mii_speed= ((ppc_proc_freq+ 4999999) / 5000000) << 1;
...
163out_be32(&fec->fecp->fec_mii_speed, fec->mii_speed);I added some debug messages, and this is what I see:
On the ADS5121, we have the CPU clocked at 400 MHz. I get:
...
##ppc_proc_freq= 399999996,fec->mii_speed= 160 FEC MII Bus: probed
...
It works fine.According to the Ref. Man.:
A value of 0 in this field turns off the MDC and leaves it in a low-voltage state. Any non-zero value results in the MDC frequency of 1/(mii_speed*2) of the system clock frequency.
that means we have a MDC frequency of400 MHz / (2 * 160) = 1.25 MHzwhich is obviously within the 2.5 MHz limit.
Now ARIA is currently running at 316.8 MHz, and this is what I get:
...
##ppc_proc_freq= 316800000,fec->mii_speed= 128
fsl-fec-mdio: probe of 80002800.mdio failed with error -5
...
It fails. MDC frequency is316.8 MHz / (2 * 128) = 1.24 MHzwhich should be fine.
However, If I change the code to
fec->mii_speed= (((ppc_proc_freq/ 1000000) / 30) + 1) << 1;then I get:
...
##ppc_proc_freq= 316800000,fec->mii_speed= 22 FEC MII Bus: probed
... and it's working!!! However, I compute MDC frequency as316.8 MHz / (2 * 22) = 7.2 MHzwhich is far above the maximum allowed clock of 2.5 MHz ???
Has anybody any idea what might be going on here?
drivers/net/fs_enet/mii-fec.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)drivers/net/fs_enet/mii-fec.c +5
-1@@ -153,8 +153,12 @@ static int __devinit fs_enet_mdio_probe(struct of_device *ofdev, if (!fec->fecp) goto out_fec; +#if 0 fec->mii_speed = ((ppc_proc_freq +4999999 ) /5000000 ) <<1 ; - +#else + fec->mii_speed = (((ppc_proc_freq /1000000 ) /30 ) +1 ) <<1 ; +printk ("## ppc_proc_freq = %d, fec->mii_speed = %d\n" , ppc_proc_freq, fec->mii_speed); +#endif setbits32 (&fec->fecp->fec_r_cntrl,FEC_RCNTRL_MII_MODE );setbits32(&fec->fecp->fec_ecntrl, FEC_ECNTRL_PINMUX | FEC_ECNTRL_ETHER_EN);--
1.6.0.6
Re: [PATCH 05/04] *** NOT FOR RELEASE *** HACK *** Work around MII clock issue ***
Dear John,
Quoted 3 lines · In message <[email protected]> you…
I think the fec's parent clock is the ipb clock not the ppc core clock. Could that be the problem?
I don't think so.
When debugging, I printed the actual clock frequencies, and they looked as expected. And "arch/powerpc/platforms/512x/clock.c" has this:
385 static struct clk fec_clk = {
386 .name = "fec_clk", 387 .flags = CLK_HAS_CTRL, 388 .reg = 0, 389 .bit = 13, 390 .calc = unity_clk_calc, 391 .parent = &ips_clk,
392 };
which looks OK to me.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] The human mind ordinarily operates at only ten percent of its capacity. The rest is overhead for the operating system.
Re: [PATCH 05/04] *** NOT FOR RELEASE *** HACK *** Work around MII clock issue ***
I noticed the latest BSP from Freescale has this patch:
From: Chen Hongjun <[email protected]>
Date: Thu, 16 Apr 2009 20:22:52 +0800
Subject: [PATCH] Fixed FEC bug for bluestone board.
--- drivers/net/fs_enet/mii-fec.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/fs_enet/mii-fec.c +0 -0
@@ -208,7 +208,7 @@ static int __devinit fs_enet_mdio_probe(struct of_device
*ofdev,
if (!fec->fecp)
goto out_fec;- fec->mii_speed = ((ppc_proc_freq + 4999999) / 5000000) << 1;
+ fec->mii_speed = ((((ppc_proc_freq + 4999999) / 2500000) / 2) &0x3F) << 1;
setbits32(&fec->fecp->fec_r_cntrl, FEC_RCNTRL_MII_MODE);
setbits32(&fec->fecp->fec_ecntrl, FEC_ECNTRL_PINMUX |Signature · 1 line
1.5.4
Quoted 36 lines · Wolfgang Denk
Dear John,
In message <[email protected]>
Quoted 3 lines · you
I think the fec's parent clock is the ipb clock not the ppc core clock. Could that be the problem?
I don't think so.
When debugging, I printed the actual clock frequencies, and they looked as expected. And "
arch/powerpc/platforms/512x/clock.c" has this:385 static struct clk
fec_clk= {386 .name = "fec_clk", 387 .flags = CLK_HAS_CTRL, 388 .reg = 0, 389 .bit = 13, 390 .calc = unity_clk_calc, 391 .parent = &ips_clk,392 };
which looks OK to me.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] The human mind ordinarily operates at only ten percent of its capacity. The rest is overhead for the operating system.
Re: [PATCH 05/04] *** NOT FOR RELEASE *** HACK *** Work around MII clock issue ***
Dear John,
Quoted 17 lines · in message <[email protected]> you…
I noticed the latest BSP from Freescale has this patch:
From: Chen Hongjun <[email protected]>
Date: Thu, 16 Apr 2009 20:22:52 +0800
Subject: [PATCH] Fixed FEC bug for bluestone board.Signed-off-by Chen Hongjun <[email protected]>--- drivers/net/fs_enet/mii-fec.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/net/fs_enet/mii-fec.c +0
-0
drivers/net/fs_enet/mii-fec.c static int __devinit fs_enet_mdio_probe(struct of_device · line 212
Quoted 6 lines
drivers/net/fs_enet/mii-fec.c +1
-1@@ -208,7 +208,7 @@ static int __devinit fs_enet_mdio_probe(struct of_device *ofdev, if (!fec->fecp) goto out_fec; - fec->mii_speed = ((ppc_proc_freq +4999999 ) /5000000 ) <<1 ; + fec->mii_speed = ((((ppc_proc_freq +4999999 ) /2500000 ) /2 ) &0x3F ) <<1 ;
Heh. So we now have 3 versions:
mainline:
fec->mii_speed = ((ppc_proc_freq + 4999999) / 5000000) << 1;
Freescale:
fec->mii_speed = ((((ppc_proc_freq + 4999999) / 2500000) / 2) & 0x3F) << 1;
we:
fec->mii_speed = (((ppc_proc_freq / 1000000) / 30) + 1) << 1;
So what does this give:
ppc_proc_freq mii_speed
mainline freescale we
--------------------------------------------------
50 MHz 0x14 -> 2.5 MHz 0x14 -> 2.5 MHz 0x04 -> 12.50 MHz 100 MHz 0x28 -> 2.5 MHz 0x28 -> 2.5 MHz 0x08 -> 12.50 MHz 150 MHz 0x3C -> 2.5 MHz 0x3C -> 2.5 MHz 0x0C -> 12.50 MHz 200 MHz 0x50 -> 2.5 MHz 0x50 -> 2.5 MHz 0x0E -> 14.29 MHz 250 MHz 0x64 -> 2.5 MHz 0x64 -> 2.5 MHz 0x12 -> 13.89 MHz 300 MHz 0x78 -> 2.5 MHz 0x78 -> 2.5 MHz 0x16 -> 13.36 MHz 316.8 MHz 0x80 -> 2.475 MHz 0x00 -> MDC off 0x16 -> 14.40 MHz 350 MHz 0x8C -> 2.5 MHz 0x0C -> 29.17 MHz 0x18 -> 14.58 MHz 400 MHz 0xA0 -> 2.5 MHz 0x20 -> 12.50 MHz 0x1C -> 14.29 MHz 450 MHz 0xB3 -> 2.5 MHz 0x34 -> 8.654 MHz 0x20 -> 14.06 MHz 500 MHz 0xC8 -> 2.5 MHz 0x48 -> 6.944 MHz 0x22 -> 14.71 MHz
So - the mainline version and what we have don't take into account that MII_SPEED uses only bit 25...30, i.e. it must fit into the range from (1 << 1) ... (3F << 1).
The Freescale code tries to address this, but just clipping the data is incorrect as we can see above.
The funny thing is that the RefMan says:
"...MDC frequency of 1/(mii_speed*2) of the system clock frequency"
"To be compliant with the IEEE MII specification, the MII_SPEED field must be programmed with a value that provides an MDC frequency of less than or equal to 2.5 MHz."
The big question seems to be what the RefMan means when talking about the "system clock frequency". Obiously it is NOT the CPU clock as code variants above assume. The examples in "Table 17-24. Programming Examples for MII_SPEED Register" list "system clock frequencies" of 25, 33, 40 and 50 MHz - which also indiocates that some other frequency might be referenced here.
But which one is it?
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] "Today's robots are very primitive, capable of understanding only a few simple instructions such as 'go left', 'go right', and 'build car'." - John Sladek
Re: [PATCH 05/04] *** NOT FOR RELEASE *** HACK *** Work around MII clock issue ***
Quoted 11 lines
The big question seems to be what the RefMan means when talking about the "system clock frequency". Obiously it is NOT the CPU clock as code variants above assume. The examples in "Table 17-24. Programming Examples for
MII_SPEEDRegister" list "system clock frequencies" of 25, 33, 40 and 50 MHz - which also indiocates that some other frequency might be referenced here.But which one is it?
My best guess is still that it is ips clock. I think I stated in a previous email ipb, but I meant ips. 5200 has ibp and 5121 has ips. Have you looked at he MII clock on a scope to see how the calculated values compare to actual?
Quoted 14 lines
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] "Today's robots are very primitive, capable of understanding only a few simple instructions such as 'go left', 'go right', and 'build
car'." - John Sladek
Re: [PATCH 05/04] *** NOT FOR RELEASE *** HACK *** Work around MII clock issue ***
Quoted 1 line
My best guess is still that it is ips clock. I think I stated in a
I fully agree.
a) Table 16-18 in the manual mentions ips and the values given there look much more like ips than ppc_proc_freq (25MHz?)
b) the excerpt from clock.c Wolfgang posted mentions ips as parent
c) I cannot imagine a divider wrapping around at a frequency which is inside the range of what the processor is capable of. MII only up to 300MHz seems like a show-stopper to me :)
d) According to the MPC5200B-manual, ipb _is_ used there (and the linux-driver adheres to that). I'd guess those two CPUs are related enough to assume it is ips here.
Regards,
Wolfram
Signature · 2 lines
Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ |
Re: [PATCH 05/04] *** NOT FOR RELEASE *** HACK *** Work around MII clock issue ***
In reply to John RigbyDear John,
Quoted 3 lines · in message <[email protected]> you…
Quoted 3 lines
The big question seems to be what the RefMan means when talking about the "system clock frequency". Obiously it is NOT the CPU clock as
...
Quoted 6 lines
Quoted 1 line
But which one is it?
My best guess is still that it is ips clock. I think I stated in a previous email ipb, but I meant ips. 5200 has ibp and 5121 has ips. Have you looked at he MII clock on a scope to see how the calculated values compare to actual?
Yes, it seems very much as if you were right again.
When using ips/ibp everything makes sense, and works.
Hm... so that means on MPC512x we should use mpc512x_find_ips_freq(), while on MPC5200 we should use mpc52xx_find_ipb_freq() - but hey, apart from the name these two functions are identical.
Grant - how would you like to see this handled? Should we merge these two code-wise identical functions into one? What should be the name, and in which file should we put it?
[We need this clock thing for "drivers/net/fs_enet/mii-fec.c"...]
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] "Don't think; let the machine do it for you!" - E. C. Berkeley
Re: [PATCH 05/04] *** NOT FOR RELEASE *** HACK *** Work around MII clock issue ***
Quoted 20 lines · Wolfgang Denk
Dear John,
Quoted 2 lines · in message <[email protected]> you…
Quoted 2 lines
The big question seems to be what the RefMan means when talking about the "system clock frequency". Obiously it is NOT the CPU clock as
...
Quoted 5 lines
Quoted 1 line
But which one is it?
My best guess is still that it is ips clock. I think I stated in a previous email ipb, but I meant ips. 5200 has ibp and 5121 has ips. Have you looked at he MII clock on a scope to see how the calculated values compare to actual?
Yes, it seems very much as if you were right again.
When using ips/ibp everything makes sense, and works.
Hm... so that means on MPC512x we should use
mpc512x_find_ips_freq(), while on MPC5200 we should usempc52xx_find_ipb_freq()- but hey, apart from the name these two functions are identical.
Quoted 5 lines
Grant - how would you like to see this handled? Should we merge these two code-wise identical functions into one? What should be the name, and in which file should we put it?
[We need this clock thing for "
drivers/net/fs_enet/mii-fec.c"...]
I2C and MSCAN need it as well. What about implementing the more generic clk api for the MPC5200 as done for the MPC512x?
http://lxr.linux.no/linux+v2.6.29/arch/powerpc/platforms/512x/clock.c
The MSCAN can also operate with other clock sources, e.g. the external oscillator (ref_clk). This would avoid cumbersome frequency calculations from the clock bit settings in the driver as shown below:
/*
* Get the frequency of the external oscillator clock connected
* to the SYS_XTAL_IN pin, or retrun 0 if it cannot be determined. */
static unsigned int __devinit mpc52xx_can_xtal_freq(struct device_node *np)
{
struct mpc52xx_cdm __iomem *cdm;
struct device_node *np_cdm;
unsigned int freq;
u32 val;
freq = mpc52xx_find_ipb_freq(np);
if (!freq)
return 0;
/*
* Detemine SYS_XTAL_IN frequency from the clock domain settings
*/
np_cdm = of_find_matching_node(NULL, mpc52xx_cdm_ids);
cdm = of_iomap(np_cdm, 0);
of_node_put(np_cdm);
if (!np_cdm) {
printk(KERN_ERR "%s() failed abnormally\n", __func__);
return 0;
}
if (in_8(&cdm->ipb_clk_sel) & 0x1)
freq *= 2;
val = in_be32(&cdm->rstcfg);
if (val & (1 << 5))
freq *= 8;
else
freq *= 4;
if (val & (1 << 6))
freq /= 12;
else
freq /= 16;
iounmap(cdm);
return freq;}
Wolfgang.
Re: [PATCH 05/04] *** NOT FOR RELEASE *** HACK *** Work around MII clock issue ***
Dear Wolfgang,
Quoted 9 lines · In message <[email protected]> you wrote:
Quoted 9 lines
Hm... so that means on MPC512x we should use
mpc512x_find_ips_freq(), while on MPC5200 we should usempc52xx_find_ipb_freq()- but hey, apart from the name these two functions are identical.Grant - how would you like to see this handled? Should we merge these two code-wise identical functions into one? What should be the name, and in which file should we put it?
Quoted 6 lines
Quoted 1 line
[We need this clock thing for "
drivers/net/fs_enet/mii-fec.c"...]I2C and MSCAN need it as well. What about implementing the more generic clk api for the MPC5200 as done for the MPC512x?
http://lxr.linux.no/linux+v2.6.29/arch/powerpc/platforms/512x/clock.c
Hmmm... I have to admit that I'm biased he. My primary interest at the moment is obviously just to get the MPC512x stuff into mainline, and thus I'm not happy about extending the scope of the isse to other processors.
Quoted 1 line
From the technical point of view you are right, but I have to admit
that I don't see which direction we should go from here. If we keep in mind that the same FEC core is also used in various i.MX platforms (= ARM processors), we probably cannot come up with a clean, unique implementation that covers all uses.
That's why I asked Grant how to address this. I also added Kumar to the Cc: list - mayby he has some ideas as well?
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] The day-to-day travails of the IBM programmer are so amusing to most of us who are fortunate enough never to have been one - like watching Charlie Chaplin trying to cook a shoe.
Re: [PATCH 05/04] *** NOT FOR RELEASE *** HACK *** Work around MII clock issue ***
Quoted 6 lines · Wolfgang Denk
Dear Wolfgang,
Quoted 3 lines · In message <[email protected]> you wrote:
Quoted 3 lines
Hm... so that means on MPC512x we should use
mpc512x_find_ips_freq(), while on MPC5200 we should use =A0mpc52xx_find_ipb_freq() =A0- =A0but =
=A0hey,
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
apart from the name these two functions are identical.
Grant - how would you like to see this handled? Should we merge these two code-wise identical functions into one? =A0What should be the name=
,
Quoted 10 lines
Quoted 8 lines
Quoted 3 lines
and in which file should we put it?
[We need this clock thing for "
drivers/net/fs_enet/mii-fec.c"...]I2C and MSCAN need it as well. What about implementing the more generic clk api for the MPC5200 as done for the MPC512x?
http://lxr.linux.no/linux+v2.6.29/arch/powerpc/platforms/512x/clock.c
Hmmm... I have to admit that I'm biased he. My =A0primary =A0interest =A0=
at
Quoted 4 lines
the =A0moment is obviously just to get the MPC512x stuff into mainline, and thus I'm not happy about extending the scope of the isse to other processors.
Quoted 8 lines
From the technical point of view you are right, but I have to admit that I don't see which direction we should go from here. If we keep in mind that the same FEC core is also used in various i.MX platforms (=3D ARM processors), we probably cannot come up with a clean, unique implementation that covers all uses.
That's why I asked Grant how to address this. =A0I also added Kumar to the Cc: list - mayby he has some ideas as well?
I say use the simple approach to get it merged; It can always be changed l= ater.
g.
--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
Re: [PATCH 05/04] *** NOT FOR RELEASE *** HACK *** Work around MII clock issue ***
In reply to Wolfgang DenkQuoted 3 lines · Wolfgang Denk
Dear John,
in message <[email protected]> =
Quoted 3 lines · you
Quoted 3 lines
Quoted 3 lines
The big question seems to be what the RefMan means when talking about the "system clock frequency". Obiously it is NOT =A0the =A0CPU =A0cloc=
k =A0as
Quoted 4 lines
...
Quoted 3 lines
Quoted 1 line
But which one is it?
My best guess is still that it is ips clock. =A0I think I stated in a pr=
evious
Quoted 1 line
Quoted 1 line
email ipb, but I meant ips. =A05200 has ibp and 5121 has ips. =A0Have yo=
u looked
Quoted 9 lines
Quoted 2 lines
at he MII clock on a scope to see how the calculated values compare to actual?
Yes, it seems very much as if you were right again.
When using ips/ibp everything makes sense, and works.
Hm... so that means on MPC512x we should use
mpc512x_find_ips_freq(), while on MPC5200 we should use =A0mpc52xx_find_ipb_freq() =A0- =A0but =A0=
hey,
Quoted 5 lines
apart from the name these two functions are identical.
Grant - how would you like to see this handled? Should we merge these two code-wise identical functions into one? =A0What should be the name, and in which file should we put it?
If you want to merge them... Seeing as the function just walks up the parent nodes looking for the "bus-frequency" property; how about "mpc5xxx_get_bus_frequency()"? It should go somewhere in arch/powerpc/sysdev/
Alternately, it is a pretty trivial function; 52xx and 512x could both have their own versions of it. Whichever makes the most sense to you (I haven't personally looked at the device driver impact).
g.
--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
RFC PATCH 1/1 fs_enet/mii-fec.c: fix MII speed calculation
The MII speed calculation was incorrectly based on the CPU clock (ppc_proc_freq) instead of the bus clock; it worked only by chance and for some CPU clock frequencies.
This patch makes it use the correct clock and adds some error handling.
---
This is mostly a fix for an old bug - it's starnge that this went unnoticed so far. It worked only because the incorrectly computed value was truncated due to the fact that the MII_SPEED field in the rebister is only 6 bits wide - but, depending on the system clock frequency, non working systems (MII_SPEED set to zero or DIS_PREAMBLE set to one) might result as well.
This patch is marked a RFC for the following reasons:
1) drivers/net/fs_enet/mii-fec.c now uses mpc5xxx_get_mii_speed() which makes it 5xxx specific. I don't really like this, but did not see a clean way to avoid it either.
2) We probably should also use mpc5xxx_get_mii_speed() in drivers/net/fec_mpc52xx.c and drivers/net/fec_mpc52xx_phy.c, which also contain code to calculate the MII speed. But then we should also add some error checking to the code there, and we should make sure that only the bits that belong to the MII_SPEED field get written when setting the MII speed.
I'm not sure if such changes are considered necessary, and if, if they should be added to this patch or handled in a separate one.
arch/powerpc/sysdev/mpc5xxx_clocks.c | 37 ++++++++++++++++++++++++++++++++++ drivers/net/fs_enet/mii-fec.c | 9 ++++++- 2 files changed, 44 insertions(+), 2 deletions(-)
arch/powerpc/sysdev/mpc5xxx_clocks.c +37 -0
@@ -31,3 +31,40 @@ mpc5xxx_get_bus_frequency(struct device_node *node)return p_bus_freq ? *p_bus_freq :0 ; }EXPORT_SYMBOL (mpc5xxx_get_bus_frequency); + +/** +* mpc5xxx_get_get_mii_speed - Get the MII_SPEED value +* @node: device node +* +* Returns the MII_SPEED value for MPC512x and MPC52xx systems. +* The value gets computed such that the resulting MDC frequency +* is 2.5 MHz or lower. +*/ + +int +mpc5xxx_get_mii_speed (struct of_device *ofdev) +{ +unsigned int clock, speed; + + clock =mpc5xxx_get_bus_frequency (ofdev->node); + +if (!clock) { +dev_err (&ofdev->dev,"could not determine IPS/IPB clock\n" ); +return -ENODEV ; + } + +/* scale for a MII clock <= 2.5 MHz */ + speed = (clock +2499999 ) /2500000 ; + +/* only 6 bits available for MII speed */ +if (speed >0x3F ) { + speed =0x3F ; +dev_err (&ofdev->dev, +"MII clock (%d MHz) exceeds max (2.5 MHz)\n" , + clock / speed); + } + +/* Field is in bits 25:30 of MII_SPEED register */ +return speed <<1 ; +} +EXPORT_SYMBOL (mpc5xxx_get_mii_speed);
drivers/net/fs_enet/mii-fec.c +7 -2
@@ -36,6 +36,7 @@#include <asm/pgtable.h> #include <asm/irq.h> #include <asm/uaccess.h> +#include <asm/mpc5xxx.h> #include "fs_enet.h" #include "fec.h"
@@ -152,13 +153,17 @@ static int __devinit fs_enet_mdio_probe(struct of_device *ofdev,if (!fec->fecp) goto out_fec; - fec->mii_speed = ((ppc_proc_freq +4999999 ) /5000000 ) <<1 ; + i =mpc5xxx_get_mii_speed (ofdev); +if (i <0 ) + goto out_unmap_regs; + + fec->mii_speed = i;setbits32 (&fec->fecp->fec_r_cntrl,FEC_RCNTRL_MII_MODE );setbits32 (&fec->fecp->fec_ecntrl,FEC_ECNTRL_PINMUX |FEC_ECNTRL_ETHER_EN );out_be32 (&fec->fecp->fec_ievent,FEC_ENET_MII ); -out_be32 (&fec->fecp->fec_mii_speed, fec->mii_speed); +clrsetbits_be32 (&fec->fecp->fec_mii_speed,0x7E , fec->mii_speed); new_bus->phy_mask = ~0 ; new_bus->irq =kmalloc (sizeof (int ) *PHY_MAX_ADDR ,GFP_KERNEL );
Signature · 1 line
1.6.0.6
PATCH v2 1/1 fs_enet/mii-fec.c: fix MII speed calculation
The MII speed calculation was based on the CPU clock (ppc_proc_freq), but for MPC512x we must use the bus clock instead.
This patch makes it use the correct clock and makes sure we don't clobber reserved bits in the MII_SPEED register.
---
Note 1: This patch is a rewrite of a previous posting:
http://patchwork.ozlabs.org/patch/28584/
Note 2: Function mpc5xxx_get_mii_speed() was introduced for re-use
in a later patch to drivers/net/fec_mpc52xx.c and drivers/net/fec_mpc52xx_phy.c, which also contain code to calculate the MII speed without taking care to check for overflow or to write only the bits that belong to the MII_SPEED field when setting the MII speed.
arch/powerpc/sysdev/mpc5xxx_clocks.c | 37 ++++++++++++++++++++++++++++++++++ drivers/net/fs_enet/mii-fec.c | 13 +++++++++-- 2 files changed, 47 insertions(+), 3 deletions(-)
arch/powerpc/sysdev/mpc5xxx_clocks.c +37 -0
@@ -31,3 +31,40 @@ mpc5xxx_get_bus_frequency(struct device_node *node)return p_bus_freq ? *p_bus_freq :0 ; }EXPORT_SYMBOL (mpc5xxx_get_bus_frequency); + +/** +* mpc5xxx_get_mii_speed - Get the MII_SPEED value +* @node: device node +* +* Returns the MII_SPEED value for MPC512x and MPC52xx systems. +* The value gets computed such that the resulting MDC frequency +* is 2.5 MHz or lower. +*/ + +int +mpc5xxx_get_mii_speed (struct of_device *ofdev) +{ +unsigned int clock, speed; + + clock =mpc5xxx_get_bus_frequency (ofdev->node); + +if (!clock) { +dev_err (&ofdev->dev,"could not determine IPS/IPB clock\n" ); +return -ENODEV ; + } + +/* scale for a MII clock <= 2.5 MHz */ + speed = (clock +2499999 ) /2500000 ; + +/* only 6 bits available for MII speed */ +if (speed >0x3F ) { + speed =0x3F ; +dev_err (&ofdev->dev, +"MII clock (%d MHz) exceeds max (2.5 MHz)\n" , + clock / speed); + } + +/* Field is in bits 25:30 of MII_SPEED register */ +return speed <<1 ; +} +EXPORT_SYMBOL (mpc5xxx_get_mii_speed);
drivers/net/fs_enet/mii-fec.c +10 -3
@@ -36,6 +36,7 @@#include <asm/pgtable.h> #include <asm/irq.h> #include <asm/uaccess.h> +#include <asm/mpc5xxx.h> #include "fs_enet.h" #include "fec.h"
@@ -103,7 +104,6 @@ static int fs_enet_fec_mii_reset(struct mii_bus *bus)static int __devinit fs_enet_mdio_probe (struct of_device *ofdev,const struct of_device_id *match) { -struct device_node *np =NULL ;struct resource res;struct mii_bus *new_bus;struct fec_info *fec;
@@ -133,13 +133,20 @@ static int __devinit fs_enet_mdio_probe(struct of_device *ofdev,if (!fec->fecp) goto out_fec; - fec->mii_speed = ((ppc_proc_freq +4999999 ) /5000000 ) <<1 ; +if (of_device_is_compatible (ofdev->node,"fsl,mpc5121-fec-mdio" )) { + i =mpc5xxx_get_mii_speed (ofdev); +if (i <0 ) + goto out_unmap_regs; + fec->mii_speed = i; + }else { + fec->mii_speed = ((ppc_proc_freq +4999999 ) /5000000 ) <<1 ; + }setbits32 (&fec->fecp->fec_r_cntrl,FEC_RCNTRL_MII_MODE );setbits32 (&fec->fecp->fec_ecntrl,FEC_ECNTRL_PINMUX |FEC_ECNTRL_ETHER_EN );out_be32 (&fec->fecp->fec_ievent,FEC_ENET_MII ); -out_be32 (&fec->fecp->fec_mii_speed, fec->mii_speed); +clrsetbits_be32 (&fec->fecp->fec_mii_speed,0x7E , fec->mii_speed); new_bus->phy_mask = ~0 ; new_bus->irq =kmalloc (sizeof (int ) *PHY_MAX_ADDR ,GFP_KERNEL );
Signature · 1 line
1.6.0.6
PATCH v3 1/2 fs_enet/mii-fec.c: fix MII speed calculation
The MII speed calculation was based on the CPU clock (ppc_proc_freq), but for MPC512x we must use the bus clock instead.
This patch makes it use the correct clock and makes sure we don't clobber reserved bits in the MII_SPEED register.
---
Please ignore patch v2, it's crap.
Hope this is a bit better.
arch/powerpc/include/asm/mpc5xxx.h | 10 +++++++++ arch/powerpc/sysdev/mpc5xxx_clocks.c | 37 ++++++++++++++++++++++++++++++++++ drivers/net/fs_enet/mii-fec.c | 13 +++++++++-- 3 files changed, 57 insertions(+), 3 deletions(-)
arch/powerpc/include/asm/mpc5xxx.h +10 -0
@@ -15,8 +15,18 @@#ifndef __ASM_POWERPC_MPC5xxx_H__#define __ASM_POWERPC_MPC5xxx_H__ +#include <linux/of_platform.h> extern unsigned long mpc5xxx_get_bus_frequency (struct device_node *node); +#if defined(CONFIG_PPC_MPC512x) || defined(CONFIG_PPC_MPC52xx) +extern int mpc5xxx_get_mii_speed (struct of_device *ofdev); +#else +static inline int mpc5xxx_get_mii_speed (struct of_device *ofdev) +{ +return -1 ; +} +#endif +#endif /* __ASM_POWERPC_MPC5xxx_H__ */
arch/powerpc/sysdev/mpc5xxx_clocks.c +37 -0
@@ -31,3 +31,40 @@ mpc5xxx_get_bus_frequency(struct device_node *node)return p_bus_freq ? *p_bus_freq :0 ; }EXPORT_SYMBOL (mpc5xxx_get_bus_frequency); + +/** +* mpc5xxx_get_mii_speed - Get the MII_SPEED value +* @node: device node +* +* Returns the MII_SPEED value for MPC512x and MPC52xx systems. +* The value gets computed such that the resulting MDC frequency +* is 2.5 MHz or lower. +*/ + +int +mpc5xxx_get_mii_speed (struct of_device *ofdev) +{ +unsigned int clock, speed; + + clock =mpc5xxx_get_bus_frequency (ofdev->node); + +if (!clock) { +dev_err (&ofdev->dev,"could not determine IPS/IPB clock\n" ); +return -ENODEV ; + } + +/* scale for a MII clock <= 2.5 MHz */ + speed = (clock +2499999 ) /2500000 ; + +/* only 6 bits available for MII speed */ +if (speed >0x3F ) { + speed =0x3F ; +dev_err (&ofdev->dev, +"MII clock (%d MHz) exceeds max (2.5 MHz)\n" , + clock / speed); + } + +/* Field is in bits 25:30 of MII_SPEED register */ +return speed <<1 ; +} +EXPORT_SYMBOL (mpc5xxx_get_mii_speed);
drivers/net/fs_enet/mii-fec.c +10 -3
@@ -36,6 +36,7 @@#include <asm/pgtable.h> #include <asm/irq.h> #include <asm/uaccess.h> +#include <asm/mpc5xxx.h> #include "fs_enet.h" #include "fec.h"
@@ -103,7 +104,6 @@ static int fs_enet_fec_mii_reset(struct mii_bus *bus)static int __devinit fs_enet_mdio_probe (struct of_device *ofdev,const struct of_device_id *match) { -struct device_node *np =NULL ;struct resource res;struct mii_bus *new_bus;struct fec_info *fec;
@@ -133,13 +133,20 @@ static int __devinit fs_enet_mdio_probe(struct of_device *ofdev,if (!fec->fecp) goto out_fec; - fec->mii_speed = ((ppc_proc_freq +4999999 ) /5000000 ) <<1 ; +if (of_device_is_compatible (ofdev->node,"fsl,mpc5121-fec-mdio" )) { + i =mpc5xxx_get_mii_speed (ofdev); +if (i <0 ) + goto out_unmap_regs; + fec->mii_speed = i; + }else { + fec->mii_speed = ((ppc_proc_freq +4999999 ) /5000000 ) <<1 ; + }setbits32 (&fec->fecp->fec_r_cntrl,FEC_RCNTRL_MII_MODE );setbits32 (&fec->fecp->fec_ecntrl,FEC_ECNTRL_PINMUX |FEC_ECNTRL_ETHER_EN );out_be32 (&fec->fecp->fec_ievent,FEC_ENET_MII ); -out_be32 (&fec->fecp->fec_mii_speed, fec->mii_speed); +clrsetbits_be32 (&fec->fecp->fec_mii_speed,0x7E , fec->mii_speed); new_bus->phy_mask = ~0 ; new_bus->irq =kmalloc (sizeof (int ) *PHY_MAX_ADDR ,GFP_KERNEL );
Signature · 1 line
1.6.0.6
Re: [PATCH 1/2 v3] fs_enet/mii-fec.c: fix MII speed calculation
Quoted 10 lines · Wolfgang Denk
The MII speed calculation was based on the CPU clock (
ppc_proc_freq), but for MPC512x we must use the bus clock instead.This patch makes it use the correct clock and makes sure we don't clobber reserved bits in the
MII_SPEEDregister.Signed-off-by Wolfgang Denk <[email protected]>Cc Grant Likely <[email protected]>Cc Kumar Gala <[email protected]>Cc <[email protected]>
Quoted 6 lines
---
Please ignore patch v2, it's crap.
Hope this is a bit better.arch/powerpc/include/asm/mpc5xxx.h | 10 +++++++++
arch/powerpc/sysdev/mpc5xxx_clocks.c| 37 ++++++++++++++++++++++++++++++++++
Drop the common code bit. The 5200 and 5121 are different devices and it is a tiny bit of code. I don't think there is any benefit to having it as a common function. Just roll the get_mii_speed function in the mii-fec driver itself.
Also, this patch can be quite a bit simpler if you use the .data pointer in the drivers match table to specify the function used to return the bus clock speed. Something like this:
static struct of_device_id fs_enet_mdio_fec_match[] = {
{
.compatible = "fsl,pq1-fec-mdio",
},
#if defined(CONFIG_PPC_MPC512x)
{
.compatible = "fsl,mpc5121-fec-mdio",
.data = mpc5xxx_get_bus_frequency,
},
#endif
{},
};and
int *get_bus_freq(of_node *) = data;
if (get_bus_freq)
bus_freq = get_bus_freq(np);
else
bus_freq = ppc_proc_freq / 2;... then do the regular calculation here and add in the additional robustification you did in this patch.
Heck, you could even eliminate the if/else above if the normal case you have a get_bus_speed function for the original ppc_proc_freq case, but I'm not sure if it is worth it.
Quoted 118 lines
drivers/net/fs_enet/mii-fec.c | 13 +++++++++--
3 files changed, 57 insertions(+), 3 deletions(-)arch/powerpc/include/asm/mpc5xxx.h +10
-0@@ -15,8 +15,18 @@ #ifndef __ASM_POWERPC_MPC5xxx_H__ #define __ASM_POWERPC_MPC5xxx_H__ +#include <linux/of_platform.h> extern unsigned long mpc5xxx_get_bus_frequency(struct device_node *node); +#if defined(CONFIG_PPC_MPC512x) || defined(CONFIG_PPC_MPC52xx) +extern int mpc5xxx_get_mii_speed (struct of_device *ofdev); +#else +static inline int mpc5xxx_get_mii_speed (struct of_device *ofdev) +{ + return -1; +} +#endif + #endif /* __ASM_POWERPC_MPC5xxx_H__ */arch/powerpc/sysdev/mpc5xxx_clocks.c +37
-0@@ -31,3 +31,40 @@ mpc5xxx_get_bus_frequency(struct device_node *node) return p_bus_freq ? *p_bus_freq : 0; } EXPORT_SYMBOL(mpc5xxx_get_bus_frequency); + +/** +* mpc5xxx_get_mii_speed - Get the MII_SPEED value +* @node: device node +* +* Returns the MII_SPEED value for MPC512x and MPC52xx systems. +* The value gets computed such that the resulting MDC frequency +* is 2.5 MHz or lower. +*/ + +int +mpc5xxx_get_mii_speed (struct of_device *ofdev) +{ + unsigned int clock, speed; + + clock = mpc5xxx_get_bus_frequency(ofdev->node); + + if (!clock) { + dev_err(&ofdev->dev, "could not determine IPS/IPB clock\n"); + return -ENODEV; + } + + /* scale for a MII clock <= 2.5 MHz */ + speed = (clock + 2499999) / 2500000; + + /* only 6 bits available for MII speed */ + if (speed > 0x3F) { + speed = 0x3F; + dev_err(&ofdev->dev, + "MII clock (%d MHz) exceeds max (2.5 MHz)\n", + clock / speed); + } + + /* Field is in bits 25:30 of MII_SPEED register */ + return speed << 1; +} +EXPORT_SYMBOL (mpc5xxx_get_mii_speed);drivers/net/fs_enet/mii-fec.c +9
-2@@ -36,6 +36,7 @@ #include <asm/pgtable.h> #include <asm/irq.h> #include <asm/uaccess.h> +#include <asm/mpc5xxx.h> #include "fs_enet.h" #include "fec.h"@@ -103,7 +104,6 @@ static int fs_enet_fec_mii_reset(struct mii_bus *bus) static int __devinit fs_enet_mdio_probe(struct of_device *ofdev, const struct of_device_id *match) { - struct device_node *np = NULL; struct resource res; struct mii_bus *new_bus; struct fec_info *fec;@@ -133,13 +133,20 @@ static int __devinit fs_enet_mdio_probe(struct of_device *ofdev, if (!fec->fecp) goto out_fec; - fec->mii_speed = ((ppc_proc_freq + 4999999) / 5000000) << 1; + if (of_device_is_compatible(ofdev->node, "fsl,mpc5121-fec-mdio")) { + i = mpc5xxx_get_mii_speed(ofdev); + if (i < 0) + goto out_unmap_regs; + fec->mii_speed = i; + } else { + fec->mii_speed = ((ppc_proc_freq + 4999999) / 5000000) << 1; + } setbits32(&fec->fecp->fec_r_cntrl, FEC_RCNTRL_MII_MODE);setbits32(&fec->fecp->fec_ecntrl,
FEC_ECNTRL_PINMUX|FEC_ECNTRL_ETHER_EN);out_be32(&fec->fecp->fec_ievent, FEC_ENET_MII);
-out_be32(&fec->fecp->fec_mii_speed, fec->mii_speed);
+clrsetbits_be32(&fec->fecp->fec_mii_speed, 0x7E, fec->mii_speed);new_bus->phy_mask = ~0;
new_bus->irq =kmalloc(sizeof(int) * PHY_MAX_ADDR, GFP_KERNEL); --
1.6.0.6
Signature · 2 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.
Re: [PATCH 1/2 v3] fs_enet/mii-fec.c: fix MII speed calculation
Dear Grant Likely,
Quoted 6 lines · In message <[email protected]> you…
Quoted 5 lines · Wolfgang Denk
The MII speed calculation was based on the CPU clock (
ppc_proc_freq), but for MPC512x we must use the bus clock instead.This patch makes it use the correct clock and makes sure we don't clobber reserved bits in the
MII_SPEEDregister.
...
Quoted 4 lines
Drop the common code bit. The 5200 and 5121 are different devices and it is a tiny bit of code. I don't think there is any benefit to having it as a common function. Just roll the
get_mii_speedfunction in the mii-fec driver itself.
I don't like to see the code repeated - it makes maintenance harder and increases the memory footprint. But if you like it that way I'll do that.
Quoted 3 lines
Also, this patch can be quite a bit simpler if you use the .data pointer in the drivers match table to specify the function used to return the bus clock speed. Something like this:
OK, will do that, too.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Weekends were made for programming. - Karl Lehenbauer
Re: [PATCH 1/2 v3] fs_enet/mii-fec.c: fix MII speed calculation
Quoted 10 lines · Wolfgang Denk
Dear Grant Likely,
Quoted 6 lines · In message <[email protected]> you…
Quoted 5 lines · Wolfgang Denk
The MII speed calculation was based on the CPU clock (
ppc_proc_freq), but for MPC512x we must use the bus clock instead.This patch makes it use the correct clock and makes sure we don't clobber reserved bits in the
MII_SPEEDregister....
Quoted 8 lines
Quoted 4 lines
Drop the common code bit. The 5200 and 5121 are different devices and it is a tiny bit of code. I don't think there is any benefit to having it as a common function. Just roll the
get_mii_speedfunction in the mii-fec driver itself.I don't like to see the code repeated - it makes maintenance harder and increases the memory footprint. But if you like it that way I'll do that.
Neither do I, but in this case has some mitigating factors. diff stat is interesting:
Old:
arch/powerpc/include/asm/mpc5xxx.h | 10 +++++++++ arch/powerpc/sysdev/mpc5xxx_clocks.c | 37 ++++++++++++++++++++++++++++++++++ drivers/net/fs_enet/mii-fec.c | 13 +++++++++-- drivers/net/fec_mpc52xx.c | 2 +- drivers/net/fec_mpc52xx_phy.c | 6 ++++-- 5 files changed, 62 insertions(+), 6 deletions(-)
New:
drivers/net/fs_enet/mii-fec.c | 35 +++++++++++++++++++++++++++++++---- drivers/net/fec_mpc52xx.c | 2 +- drivers/net/fec_mpc52xx_phy.c | 21 ++++++++++++++++++--- 3 files changed, 50 insertions(+), 8 deletions(-)
If the two devices were somewhat related then my opinion might be different. However the combination of the tiny amount of calculation code, the drivers being kept completely separate (or at least as separate as they were before), the smaller code impact, and the lower driver complexity (because the calculation code is inline instead of in a different file) makes me like the second approach is better.
g.
Signature · 2 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.
PATCH v4 1/2 fs_enet/mii-fec.c: fix MII speed calculation
In reply to Wolfgang DenkThe MII speed calculation was based on the CPU clock (ppc_proc_freq), but for MPC512x we must use the bus clock instead.
This patch makes it use the correct clock and makes sure we don't clobber reserved bits in the MII_SPEED register.
--- drivers/net/fs_enet/mii-fec.c | 35 +++++++++++++++++++++++++++++++---- 1 files changed, 31 insertions(+), 4 deletions(-)
drivers/net/fs_enet/mii-fec.c +31 -4
@@ -103,11 +103,11 @@ static int fs_enet_fec_mii_reset(struct mii_bus *bus)static int __devinit fs_enet_mdio_probe (struct of_device *ofdev,const struct of_device_id *match) { -struct device_node *np =NULL ;struct resource res;struct mii_bus *new_bus;struct fec_info *fec; -int ret = -ENOMEM , i; +int (*get_bus_freq)(struct device_node *) = match->data; +int ret = -ENOMEM , clock, speed; new_bus =mdiobus_alloc ();if (!new_bus)
@@ -133,13 +133,34 @@ static int __devinit fs_enet_mdio_probe(struct of_device *ofdev,if (!fec->fecp) goto out_fec; - fec->mii_speed = ((ppc_proc_freq +4999999 ) /5000000 ) <<1 ; +if (get_bus_freq) { + clock =get_bus_freq (ofdev->node); + +if (!clock) { +dev_err (&ofdev->dev,"could not determine IPS/IPB clock\n" ); + goto out_unmap_regs; + } + }else + clock = ppc_proc_freq; + +/* scale for a MII clock <= 2.5 MHz */ + speed = (clock +2499999 ) /2500000 ; + +/* only 6 bits (25:30) available for MII speed */ +if (speed >0x3F ) { + speed =0x3F ; +dev_err (&ofdev->dev, +"MII clock (%d Hz) exceeds max (2.5 MHz)\n" , + clock / speed); + } + + fec->mii_speed = speed <<1 ;setbits32 (&fec->fecp->fec_r_cntrl,FEC_RCNTRL_MII_MODE );setbits32 (&fec->fecp->fec_ecntrl,FEC_ECNTRL_PINMUX |FEC_ECNTRL_ETHER_EN );out_be32 (&fec->fecp->fec_ievent,FEC_ENET_MII ); -out_be32 (&fec->fecp->fec_mii_speed, fec->mii_speed); +clrsetbits_be32 (&fec->fecp->fec_mii_speed,0x7E , fec->mii_speed); new_bus->phy_mask = ~0 ; new_bus->irq =kmalloc (sizeof (int ) *PHY_MAX_ADDR ,GFP_KERNEL );
@@ -188,6 +209,12 @@ static struct of_device_id fs_enet_mdio_fec_match[] = { { .compatible = "fsl,pq1-fec-mdio", }, +#if defined(CONFIG_PPC_MPC512x) + { + .compatible = "fsl,mpc5121-fec-mdio", + .data = mpc5xxx_get_bus_frequency, + }, +#endif {}, };
Signature · 1 line
1.6.0.6
Re: [PATCH 1/2 v4] fs_enet/mii-fec.c: fix MII speed calculation
Quoted 10 lines · Wolfgang Denk
The MII speed calculation was based on the CPU clock (
ppc_proc_freq), but for MPC512x we must use the bus clock instead.This patch makes it use the correct clock and makes sure we don't clobber reserved bits in the
MII_SPEEDregister.Signed-off-by Wolfgang Denk <[email protected]>Cc Grant Likely <[email protected]>Cc Kumar Gala <[email protected]>Cc <[email protected]>
Looks good to me. Thanks for the work!
I assume this is tested. I have not tested this on my board, and I've got one question below, but otherwise I think I can say....
drivers/net/fs_enet/mii-fec.c static int __devinit fs_enet_mdio_probe(struct of_device *ofdev, · line 147
Quoted 13 lines
-
fec->mii_speed= ((ppc_proc_freq+ 4999999) / 5000000) << 1;
+ if (get_bus_freq) {
+ clock =get_bus_freq(ofdev->node);drivers/net/fs_enet/mii-fec.c +10
-0+ + if (!clock) { + dev_err(&ofdev->dev, "could not determine IPS/IPB clock\n"); + goto out_unmap_regs; + } + } else + clock = ppc_proc_freq; + + /* scale for a MII clock <= 2.5 MHz */ + speed = (clock + 2499999) / 2500000;
The calculation has changed here for non mpc5121 users. Shouldn't the "clock = ppc_proc_freq;" line above be "clock = ppc_proc_freq / 2;"? Or was this also a bug in the original driver?
g.
Signature · 2 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.
Re: [PATCH 1/2 v4] fs_enet/mii-fec.c: fix MII speed calculation
Dear Grant Likely,
Quoted 2 lines · In message <[email protected]> you…
I assume this is tested. I have not tested this on my board, and I've
It was tested, but as it turns out not quite well :-(
Quoted 1 line
got one question below, but otherwise I think I can say....
...
Quoted 3 lines
The calculation has changed here for non mpc5121 users. Shouldn't the "clock =
ppc_proc_freq;" line above be "clock =ppc_proc_freq/ 2;"? Or was this also a bug in the original driver?
You are right. That's a bug in the new code. Fixed in next version of the patch.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Swap read error. You lose your mind.
Re: [PATCH 1/2 v4] fs_enet/mii-fec.c: fix MII speed calculation
In reply to Wolfgang DenkHi,
Quoted 72 lines · Wolfgang Denk
The MII speed calculation was based on the CPU clock (
ppc_proc_freq), but for MPC512x we must use the bus clock instead.This patch makes it use the correct clock and makes sure we don't clobber reserved bits in the
MII_SPEEDregister.Signed-off-by Wolfgang Denk <[email protected]>Cc Grant Likely <[email protected]>Cc Kumar Gala <[email protected]>Cc <[email protected]>Signed-off-by Wolfgang Denk <[email protected]>--- drivers/net/fs_enet/mii-fec.c | 35 +++++++++++++++++++++++++++++++---- 1 files changed, 31 insertions(+), 4 deletions(-)drivers/net/fs_enet/mii-fec.c +25
-4@@ -103,11 +103,11 @@ static int fs_enet_fec_mii_reset(struct mii_bus *bus)static int __devinit fs_enet_mdio_probe (struct of_device *ofdev,const struct of_device_id *match) { -struct device_node *np =NULL ;struct resource res;struct mii_bus *new_bus;struct fec_info *fec; -int ret = -ENOMEM , i; +int (*get_bus_freq)(struct device_node *) = match->data; +int ret = -ENOMEM , clock, speed; new_bus =mdiobus_alloc ();if (!new_bus)@@ -133,13 +133,34 @@ static int __devinit fs_enet_mdio_probe(struct of_device *ofdev,if (!fec->fecp) goto out_fec; - fec->mii_speed = ((ppc_proc_freq +4999999 ) /5000000 ) <<1 ; +if (get_bus_freq) { + clock =get_bus_freq (ofdev->node); + +if (!clock) { +dev_err (&ofdev->dev,"could not determine IPS/IPB clock\n" ); + goto out_unmap_regs; + } + }else + clock = ppc_proc_freq; + +/* scale for a MII clock <= 2.5 MHz */ + speed = (clock +2499999 ) /2500000 ; + +/* only 6 bits (25:30) available for MII speed */ +if (speed >0x3F ) { + speed =0x3F ; +dev_err (&ofdev->dev, +"MII clock (%d Hz) exceeds max (2.5 MHz)\n" , + clock / speed); + } + + fec->mii_speed = speed <<1 ;setbits32 (&fec->fecp->fec_r_cntrl,FEC_RCNTRL_MII_MODE );setbits32 (&fec->fecp->fec_ecntrl,FEC_ECNTRL_PINMUX |FEC_ECNTRL_ETHER_EN );out_be32 (&fec->fecp->fec_ievent,FEC_ENET_MII ); -out_be32 (&fec->fecp->fec_mii_speed, fec->mii_speed); +clrsetbits_be32 (&fec->fecp->fec_mii_speed,0x7E , fec->mii_speed); new_bus->phy_mask = ~0 ; new_bus->irq =kmalloc (sizeof (int ) *PHY_MAX_ADDR ,GFP_KERNEL );
drivers/net/fs_enet/mii-fec.c static struct of_device_id fs_enet_mdio_fec_match[] = { · line 217
Quoted 9 lines
drivers/net/fs_enet/mii-fec.c +6
-0@@ -188,6 +209,12 @@ static struct of_device_id fs_enet_mdio_fec_match[] = { { .compatible = "fsl,pq1-fec-mdio", }, +#if defined(CONFIG_PPC_MPC512x) + { + .compatible = "fsl,mpc5121-fec-mdio", + .data = mpc5xxx_get_bus_frequency, + }, +#endif
Grepping through 'drivers/*' I see that #ifdefing compatible-entries is highly uncommon (just 3 hits). I think a guideline would be useful. Most people like to avoid #ifdefs at any cost, while I personally think it doesn't spoil readability too much here. Other opinions?
Regards,
Wolfram
Signature · 2 lines
Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ |
Re: [PATCH 1/2 v4] fs_enet/mii-fec.c: fix MII speed calculation
Dear Wolfram Sang,
Quoted 1 line · In message <[email protected]> you wrote:
...
Quoted 7 lines
Quoted 7 lines
drivers/net/fs_enet/mii-fec.c +3
-0@@ -188,6 +209,12 @@ static struct of_device_id fs_enet_mdio_fec_match[] = { { .compatible = "fsl,pq1-fec-mdio", }, +#if defined(CONFIG_PPC_MPC512x) + { + .compatible = "fsl,mpc5121-fec-mdio",
Quoted 8 lines
drivers/net/fs_enet/mii-fec.c static struct of_device_id fs_enet_mdio_fec_match[] = { · line 217
Quoted 3 lines
drivers/net/fs_enet/mii-fec.c +3
-0+ .data = mpc5xxx_get_bus_frequency, + }, +#endif Grepping through '
drivers/*' I see that #ifdefing compatible-entries is highly uncommon (just 3 hits). I think a guideline would be useful. Most people like to avoid #ifdefs at any cost, while I personally think it doesn't spoil readability too much here. Other opinions?
An older version of the patch tried to "hide" the ifdef in a 512x specific header, so at least common code would remain clean, but I agree with Grant that this current version looks cleaner globally.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] "You can have my Unix system when you pry it from my cold, dead fingers." - Cal Keegan
PATCH v3 2/2 MPC52xx FEC: be more conservative when setting MII_SPEED register
In reply to Wolfgang DenkThis patch adds error checking and prevents clobbering unrelated bits (reserved bits or the DIS_PREAMBLE bit) when writing the MII_SPEED register on MPC52xx systems.
---
v3: - use maximum divider in case MPC512x IPS clock is unknown
drivers/net/fec_mpc52xx.c | 2 +- drivers/net/fec_mpc52xx_phy.c | 23 ++++++++++++++++++++--- 2 files changed, 21 insertions(+), 4 deletions(-)
drivers/net/fec_mpc52xx.c +1 -1
@@ -639,7 +639,7 @@ static void mpc52xx_fec_hw_init(struct net_device *dev)/* set phy speed. * this can't be done in phy driver, since it needs to be called * before fec stuff (even on resume) */ -out_be32 (&fec->mii_speed, priv->mdio_speed); +clrsetbits_be32 (&fec->mii_speed,0x7E , priv->mdio_speed); }/**
drivers/net/fec_mpc52xx_phy.c +20 -3
@@ -70,7 +70,7 @@ static int mpc52xx_fec_mdio_probe(struct of_device *of,struct mpc52xx_fec_mdio_priv *priv;struct resource res = {};int err; -int i; +int i, clock, speed; bus =mdiobus_alloc ();if (bus ==NULL )
@@ -105,8 +105,25 @@ static int mpc52xx_fec_mdio_probe(struct of_device *of,dev_set_drvdata (dev, bus);/* set MII speed */ -out_be32 (&priv->regs->mii_speed, - ((mpc5xxx_get_bus_frequency (of->node) >>20 ) /5 ) <<1 ); + clock =mpc5xxx_get_bus_frequency (of->node); +if (!clock) { +/* Use maximum divider if clock is unknown */ +dev_err (&of->dev,"could not determine IPB clock\n" ); + clock =0x3F *5000000 ; + } + +/* +* Scale for a MII clock <= 2.5 MHz +* Note that only 6 bits (25:30) are available for MII speed. +*/ + speed = (clock +4999999 ) /5000000 ; +if (speed >0x3F ) { + speed =0x3F ; +dev_err (&of->dev,"MII clock (%d Hz) exceeds max (2.5 MHz)\n" , + clock / speed); + } + +clrsetbits_be32 (&priv->regs->mii_speed,0x7E , speed <<1 ); err =of_mdiobus_register (bus, np);if (err)
Signature · 1 line
1.6.0.6
PATCH v4 2/2 MPC52xx FEC: be more conservative when setting MII_SPEED register
This patch adds error checking and prevents clobbering unrelated bits (reserved bits or the DIS_PREAMBLE bit) when writing the MII_SPEED register on MPC52xx systems.
---
v3: - use maximum divider in case MPC512x IPS clock is unknown
v4: - use the same code in the probe-function, too
drivers/net/fec_mpc52xx.c | 25 ++++++++++++++++++++++--- drivers/net/fec_mpc52xx_phy.c | 23 ++++++++++++++++++++--- 2 files changed, 42 insertions(+), 6 deletions(-)
drivers/net/fec_mpc52xx.c +22 -3
@@ -639,7 +639,7 @@ static void mpc52xx_fec_hw_init(struct net_device *dev)/* set phy speed. * this can't be done in phy driver, since it needs to be called * before fec stuff (even on resume) */ -out_be32 (&fec->mii_speed, priv->mdio_speed); +clrsetbits_be32 (&fec->mii_speed,0x7E , priv->mdio_speed); }/**
@@ -863,7 +863,7 @@ mpc52xx_fec_probe(struct of_device *op, const struct of_device_id *match)struct mpc52xx_fec_priv *priv =NULL ;struct resource mem;const u32 *prop; -int prop_size; +int prop_size, clock, speed;phys_addr_t rx_fifo;phys_addr_t tx_fifo;
@@ -948,7 +948,26 @@ mpc52xx_fec_probe(struct of_device *op, const struct of_device_id *match)/* Start with safe defaults for link connection */ priv->speed =100 ; priv->duplex =DUPLEX_HALF ; - priv->mdio_speed = ((mpc5xxx_get_bus_frequency (op->node) >>20 ) /5 ) <<1 ; + +/* MII speed */ + clock =mpc5xxx_get_bus_frequency (op->node); +if (!clock) { +/* Use maximum divider if clock is unknown */ +dev_err (&op->dev,"could not determine IPB clock\n" ); + clock =0x3F *5000000 ; + } + +/* +* Scale for a MII clock <= 2.5 MHz +* Note that only 6 bits (25:30) are available for MII speed. +*/ + speed = (clock +4999999 ) /5000000 ; +if (speed >0x3F ) { + speed =0x3F ; +dev_err (&op->dev,"MII clock (%d Hz) exceeds max (2.5 MHz)\n" , + clock / speed); + } + priv->mdio_speed = speed <<1 ;/* The current speed preconfigures the speed of the MII link */ prop =of_get_property (op->node,"current-speed" , &prop_size);
drivers/net/fec_mpc52xx_phy.c +20 -3
@@ -70,7 +70,7 @@ static int mpc52xx_fec_mdio_probe(struct of_device *of,struct mpc52xx_fec_mdio_priv *priv;struct resource res = {};int err; -int i; +int i, clock, speed; bus =mdiobus_alloc ();if (bus ==NULL )
@@ -105,8 +105,25 @@ static int mpc52xx_fec_mdio_probe(struct of_device *of,dev_set_drvdata (dev, bus);/* set MII speed */ -out_be32 (&priv->regs->mii_speed, - ((mpc5xxx_get_bus_frequency (of->node) >>20 ) /5 ) <<1 ); + clock =mpc5xxx_get_bus_frequency (of->node); +if (!clock) { +/* Use maximum divider if clock is unknown */ +dev_err (&of->dev,"could not determine IPB clock\n" ); + clock =0x3F *5000000 ; + } + +/* +* Scale for a MII clock <= 2.5 MHz +* Note that only 6 bits (25:30) are available for MII speed. +*/ + speed = (clock +4999999 ) /5000000 ; +if (speed >0x3F ) { + speed =0x3F ; +dev_err (&of->dev,"MII clock (%d Hz) exceeds max (2.5 MHz)\n" , + clock / speed); + } + +clrsetbits_be32 (&priv->regs->mii_speed,0x7E , speed <<1 ); err =of_mdiobus_register (bus, np);if (err)
Signature · 1 line
1.6.0.6
Re: [PATCH 2/2 v4] MPC52xx FEC: be more conservative when setting MII_SPEED register
Quoted 8 lines · Wolfgang Denk
This patch adds error checking and prevents clobbering unrelated bits (reserved bits or the
DIS_PREAMBLEbit) when writing theMII_SPEEDregister on MPC52xx systems.Signed-off-by Wolfgang Denk <[email protected]>Cc Grant Likely <[email protected]>Cc Kumar Gala <[email protected]>Cc <[email protected]>
Quoted 6 lines
---
v3: - use maximum divider in case MPC512x IPS clock is unknown
v4: - use the same code in the probe-function, toodrivers/net/fec_mpc52xx.c | 25 ++++++++++++++++++++++---
drivers/net/fec_mpc52xx_phy.c| 23 ++++++++++++++++++++---
Blech. now this block of duplicated code I don't like. This is all one device, so surely the mdio speed can be calculated once and used for both drivers.... let me think about this for a bit. 'course this problem is all rolled up in the nastiness of having two drivers working on the same device. I suspect is was a mistake to split up all the powerpc ethernet drivers into separate of_platform drivers.
g.
Quoted 97 lines
2 files changed, 42 insertions(+), 6 deletions(-)drivers/net/fec_mpc52xx.c +22
-3@@ -639,7 +639,7 @@ static void mpc52xx_fec_hw_init(struct net_device *dev) /* set phy speed. * this can't be done in phy driver, since it needs to be called * before fec stuff (even on resume) */ - out_be32(&fec->mii_speed, priv->mdio_speed); + clrsetbits_be32(&fec->mii_speed, 0x7E, priv->mdio_speed); } /**@@ -863,7 +863,7 @@ mpc52xx_fec_probe(struct of_device *op, const struct of_device_id *match) struct mpc52xx_fec_priv *priv = NULL; struct resource mem; const u32 *prop; - int prop_size; + int prop_size, clock, speed; phys_addr_t rx_fifo; phys_addr_t tx_fifo;@@ -948,7 +948,26 @@ mpc52xx_fec_probe(struct of_device *op, const struct of_device_id *match) /* Start with safe defaults for link connection */ priv->speed = 100; priv->duplex = DUPLEX_HALF; - priv->mdio_speed = ((mpc5xxx_get_bus_frequency(op->node) >> 20) / 5) << 1; + + /* MII speed */ + clock = mpc5xxx_get_bus_frequency(op->node); + if (!clock) { + /* Use maximum divider if clock is unknown */ + dev_err(&op->dev, "could not determine IPB clock\n"); + clock = 0x3F * 5000000; + } + + /* + * Scale for a MII clock <= 2.5 MHz + * Note that only 6 bits (25:30) are available for MII speed. + */ + speed = (clock + 4999999) / 5000000; + if (speed > 0x3F) { + speed = 0x3F; + dev_err(&op->dev, "MII clock (%d Hz) exceeds max (2.5 MHz)\n", + clock / speed); + } + priv->mdio_speed = speed << 1; /* The current speed preconfigures the speed of the MII link */ prop = of_get_property(op->node, "current-speed", &prop_size);drivers/net/fec_mpc52xx_phy.c +20
-4@@ -70,7 +70,7 @@ static int mpc52xx_fec_mdio_probe(struct of_device *of, struct mpc52xx_fec_mdio_priv *priv; struct resource res = {}; int err; - int i; + int i, clock, speed; bus = mdiobus_alloc(); if (bus == NULL)@@ -105,8 +105,25 @@ static int mpc52xx_fec_mdio_probe(struct of_device *of, dev_set_drvdata(dev, bus); /* set MII speed */ - out_be32(&priv->regs->mii_speed, - ((mpc5xxx_get_bus_frequency(of->node) >> 20) / 5) << 1); + clock = mpc5xxx_get_bus_frequency(of->node); + if (!clock) { + /* Use maximum divider if clock is unknown */ + dev_err(&of->dev, "could not determine IPB clock\n"); + clock = 0x3F * 5000000; + } + + /* + * Scale for a MII clock <= 2.5 MHz + * Note that only 6 bits (25:30) are available for MII speed. + */ + speed = (clock + 4999999) / 5000000; + if (speed > 0x3F) { + speed = 0x3F; + dev_err(&of->dev, "MII clock (%d Hz) exceeds max (2.5 MHz)\n", + clock / speed); + } + + clrsetbits_be32(&priv->regs->mii_speed, 0x7E, speed << 1); err = of_mdiobus_register(bus, np); if (err) --1.6.0.6
Signature · 2 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.
Re: [PATCH 2/2 v4] MPC52xx FEC: be more conservative when setting MII_SPEED register
Dear Grant Likely,
Quoted 10 lines · In message <[email protected]> you…
Quoted 3 lines
drivers/net/fec_mpc52xx.c | 25 ++++++++++++++++++++++--- drivers/net/fec_mpc52xx_phy.c | 23 ++++++++++++++++++++---Blech. now this block of duplicated code I don't like. This is all one device, so surely the mdio speed can be calculated once and used for both drivers.... let me think about this for a bit. 'course this problem is all rolled up in the nastiness of having two drivers working on the same device. I suspect is was a mistake to split up all the powerpc ethernet drivers into separate
of_platformdrivers.
If you like, I can re-introduce the mpc5xxx_get_mii_speed() I unrolled upon your request (with or without re-using it for the MPC512x case).
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] What is mind? No matter. What is matter? Never mind. -- Thomas Hewitt Key, 1799-1875
Re: [PATCH 2/2 v4] MPC52xx FEC: be more conservative when setting MII_SPEED register
Quoted 14 lines · Wolfgang Denk
Dear Grant Likely,
Quoted 10 lines · In message <[email protected]> you…
Quoted 3 lines
drivers/net/fec_mpc52xx.c | 25 ++++++++++++++++++++++---
drivers/net/fec_mpc52xx_phy.c| 23 ++++++++++++++++++++---Blech. now this block of duplicated code I don't like. This is all one device, so surely the mdio speed can be calculated once and used for both drivers.... let me think about this for a bit. 'course this problem is all rolled up in the nastiness of having two drivers working on the same device. I suspect is was a mistake to split up all the powerpc ethernet drivers into separate
of_platformdrivers.
Quoted 2 lines
If you like, I can re-introduce the
mpc5xxx_get_mii_speed()I unrolled upon your request (with or without re-using it for the MPC512x case).
No, there's a deeper issues here. I'm bothered that the mac driver is impacting the mdio driver. I'd like to find a way for this whole thing to be handled cleaner, and not have two different drivers calculate it.
g.
Quoted 13 lines
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] What is mind? No matter. What is matter? Never mind.
-- Thomas Hewitt Key, 1799-1875
Signature · 2 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.
PATCH v5 1/2 fs_enet/mii-fec.c: fix MII speed calculation
In reply to Wolfgang DenkThe MII speed calculation was based on the CPU clock (ppc_proc_freq), but for MPC512x we must use the bus clock instead.
This patch makes it use the correct clock and makes sure we don't clobber reserved bits in the MII_SPEED register.
---
v5: - fix divider so we really use 2.5 MHz (instead of 1.25)
- use maximum divider in case MPC512x IPS clock is unknown
drivers/net/fs_enet/mii-fec.c | 37 +++++++++++++++++++++++++++++++++---- 1 files changed, 33 insertions(+), 4 deletions(-)
drivers/net/fs_enet/mii-fec.c +33 -4
@@ -36,6 +36,7 @@#include <asm/pgtable.h> #include <asm/irq.h> #include <asm/uaccess.h> +#include <asm/mpc5xxx.h> #include "fs_enet.h" #include "fec.h"
@@ -103,11 +104,11 @@ static int fs_enet_fec_mii_reset(struct mii_bus *bus)static int __devinit fs_enet_mdio_probe (struct of_device *ofdev,const struct of_device_id *match) { -struct device_node *np =NULL ;struct resource res;struct mii_bus *new_bus;struct fec_info *fec; -int ret = -ENOMEM , i; +int (*get_bus_freq)(struct device_node *) = match->data; +int ret = -ENOMEM , clock, speed; new_bus =mdiobus_alloc ();if (!new_bus)
@@ -133,13 +134,35 @@ static int __devinit fs_enet_mdio_probe(struct of_device *ofdev,if (!fec->fecp) goto out_fec; - fec->mii_speed = ((ppc_proc_freq +4999999 ) /5000000 ) <<1 ; +if (get_bus_freq) { + clock =get_bus_freq (ofdev->node); +if (!clock) { +/* Use maximum divider if clock is unknown */ +dev_warn (&ofdev->dev,"could not determine IPS clock\n" ); + clock =0x3F *5000000 ; + } + }else + clock = ppc_proc_freq; + +/* +* Scale for a MII clock <= 2.5 MHz +* Note that only 6 bits (25:30) are available for MII speed. +*/ + speed = (clock +4999999 ) /5000000 ; +if (speed >0x3F ) { + speed =0x3F ; +dev_err (&ofdev->dev, +"MII clock (%d Hz) exceeds max (2.5 MHz)\n" , + clock / speed); + } + + fec->mii_speed = speed <<1 ;setbits32 (&fec->fecp->fec_r_cntrl,FEC_RCNTRL_MII_MODE );setbits32 (&fec->fecp->fec_ecntrl,FEC_ECNTRL_PINMUX |FEC_ECNTRL_ETHER_EN );out_be32 (&fec->fecp->fec_ievent,FEC_ENET_MII ); -out_be32 (&fec->fecp->fec_mii_speed, fec->mii_speed); +clrsetbits_be32 (&fec->fecp->fec_mii_speed,0x7E , fec->mii_speed); new_bus->phy_mask = ~0 ; new_bus->irq =kmalloc (sizeof (int ) *PHY_MAX_ADDR ,GFP_KERNEL );
@@ -188,6 +211,12 @@ static struct of_device_id fs_enet_mdio_fec_match[] = { { .compatible = "fsl,pq1-fec-mdio", }, +#if defined(CONFIG_PPC_MPC512x) + { + .compatible = "fsl,mpc5121-fec-mdio", + .data = mpc5xxx_get_bus_frequency, + }, +#endif {}, };
Signature · 1 line
1.6.0.6
Re: [PATCH 1/2 v5] fs_enet/mii-fec.c: fix MII speed calculation
Quoted 10 lines · Wolfgang Denk
The MII speed calculation was based on the CPU clock (
ppc_proc_freq), but for MPC512x we must use the bus clock instead.This patch makes it use the correct clock and makes sure we don't clobber reserved bits in the
MII_SPEEDregister.Signed-off-by Wolfgang Denk <[email protected]>Cc Grant Likely <[email protected]>Cc Kumar Gala <[email protected]>Cc <[email protected]>
David, this isn't a critical bug fix or a regression, so I think it should be merged for -next.
g.
Quoted 88 lines
---
v5: - fix divider so we really use 2.5 MHz (instead of 1.25)
- use maximum divider in case MPC512x IPS clock is unknowndrivers/net/fs_enet/mii-fec.c | 37 +++++++++++++++++++++++++++++++++----
1 files changed, 33 insertions(+), 4 deletions(-)drivers/net/fs_enet/mii-fec.c +26
-3@@ -36,6 +36,7 @@ #include <asm/pgtable.h> #include <asm/irq.h> #include <asm/uaccess.h> +#include <asm/mpc5xxx.h> #include "fs_enet.h" #include "fec.h"@@ -103,11 +104,11 @@ static int fs_enet_fec_mii_reset(struct mii_bus *bus) static int __devinit fs_enet_mdio_probe(struct of_device *ofdev, const struct of_device_id *match) { - struct device_node *np = NULL; struct resource res; struct mii_bus *new_bus; struct fec_info *fec; - int ret = -ENOMEM, i; + int (*get_bus_freq)(struct device_node *) = match->data; + int ret = -ENOMEM, clock, speed; new_bus = mdiobus_alloc(); if (!new_bus)@@ -133,13 +134,35 @@ static int __devinit fs_enet_mdio_probe(struct of_device *ofdev, if (!fec->fecp) goto out_fec; - fec->mii_speed = ((ppc_proc_freq + 4999999) / 5000000) << 1; + if (get_bus_freq) { + clock = get_bus_freq(ofdev->node); + if (!clock) { + /* Use maximum divider if clock is unknown */ + dev_warn(&ofdev->dev, "could not determine IPS clock\n"); + clock = 0x3F * 5000000; + } + } else + clock = ppc_proc_freq; + + /* + * Scale for a MII clock <= 2.5 MHz + * Note that only 6 bits (25:30) are available for MII speed. + */ + speed = (clock + 4999999) / 5000000; + if (speed > 0x3F) { + speed = 0x3F; + dev_err(&ofdev->dev, + "MII clock (%d Hz) exceeds max (2.5 MHz)\n", + clock / speed); + } + + fec->mii_speed = speed << 1; setbits32(&fec->fecp->fec_r_cntrl, FEC_RCNTRL_MII_MODE);setbits32(&fec->fecp->fec_ecntrl,
FEC_ECNTRL_PINMUX|FEC_ECNTRL_ETHER_EN);out_be32(&fec->fecp->fec_ievent, FEC_ENET_MII);
-out_be32(&fec->fecp->fec_mii_speed, fec->mii_speed);
+clrsetbits_be32(&fec->fecp->fec_mii_speed, 0x7E, fec->mii_speed);new_bus->phy_mask = ~0;
new_bus->irq =kmalloc(sizeof(int) * PHY_MAX_ADDR, GFP_KERNEL);drivers/net/fs_enet/mii-fec.c +6
-1@@ -188,6 +211,12 @@ static struct of_device_id fs_enet_mdio_fec_match[] = { { .compatible = "fsl,pq1-fec-mdio", }, +#if defined(CONFIG_PPC_MPC512x) + { + .compatible = "fsl,mpc5121-fec-mdio", + .data = mpc5xxx_get_bus_frequency, + }, +#endif {}, }; --1.6.0.6
Signature · 2 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.
David Miller
maintainerRe: [PATCH 1/2 v5] fs_enet/mii-fec.c: fix MII speed calculation
From: Grant Likely <[email protected]>
Date: Fri, 17 Jul 2009 08:41:08 -0600
Quoted 2 lines
David, this isn't a critical bug fix or a regression, so I think it should be merged for -next.
Ok.
Re: [PATCH 1/2 v5] fs_enet/mii-fec.c: fix MII speed calculation
In reply to Grant LikelyFrom: Grant Likely <[email protected]>
Date: Fri, 17 Jul 2009 08:41:08 -0600
Quoted 7 lines · Wolfgang Denk
Quoted 6 lines
The MII speed calculation was based on the CPU clock (
ppc_proc_freq), but for MPC512x we must use the bus clock instead.This patch makes it use the correct clock and makes sure we don't clobber reserved bits in the
MII_SPEEDregister.
Quoted 6 lines
Quoted 4 lines
Signed-off-by Wolfgang Denk <[email protected]>Cc Grant Likely <[email protected]>Cc Kumar Gala <[email protected]>Cc <[email protected]>Acked-by Grant Likely <[email protected]>
Applied to net-next-2.6
PATCH v2 2/2 MPC52xx FEC: be more conservative when setting MII_SPEED register
In reply to Wolfgang DenkThis patch adds error checking and prevents clobbering unrelated bits (reserved bits or the DIS_PREAMBLE bit) when writing the MII_SPEED register on MPC52xx systems.
--- drivers/net/fec_mpc52xx.c | 2 +- drivers/net/fec_mpc52xx_phy.c | 21 ++++++++++++++++++--- 2 files changed, 19 insertions(+), 4 deletions(-)
drivers/net/fec_mpc52xx.c +1 -1
@@ -639,7 +639,7 @@ static void mpc52xx_fec_hw_init(struct net_device *dev)/* set phy speed. * this can't be done in phy driver, since it needs to be called * before fec stuff (even on resume) */ -out_be32 (&fec->mii_speed, priv->mdio_speed); +clrsetbits_be32 (&fec->mii_speed,0x7E , priv->mdio_speed); }/**
drivers/net/fec_mpc52xx_phy.c +18 -3
@@ -70,7 +70,7 @@ static int mpc52xx_fec_mdio_probe(struct of_device *of,struct mpc52xx_fec_mdio_priv *priv;struct resource res = {};int err; -int i; +int i, clock, speed; bus =mdiobus_alloc ();if (bus ==NULL )
@@ -105,8 +105,23 @@ static int mpc52xx_fec_mdio_probe(struct of_device *of,dev_set_drvdata (dev, bus);/* set MII speed */ -out_be32 (&priv->regs->mii_speed, - ((mpc5xxx_get_bus_frequency (of->node) >>20 ) /5 ) <<1 ); + clock =mpc5xxx_get_bus_frequency (of->node); +if (!clock) { +dev_err (&of->dev,"could not determine IPS/IPB clock\n" ); + goto out_unmap; + } + +/* scale for a MII clock <= 2.5 MHz */ + speed = (clock +2499999 ) /2500000 ; + +/* only 6 bits (25:30) available for MII speed */ +if (speed >0x3F ) { + speed =0x3F ; +dev_err (&of->dev,"MII clock (%d Hz) exceeds max (2.5 MHz)\n" , + clock / speed); + } + +clrsetbits_be32 (&priv->regs->mii_speed,0x7E , speed <<1 ); err =of_mdiobus_register (bus, np);if (err)
Signature · 1 line
1.6.0.6
Re: [PATCH 2/2 v2] MPC52xx FEC: be more conservative when setting MII_SPEED register
Quoted 8 lines · Wolfgang Denk
This patch adds error checking and prevents clobbering unrelated bits (reserved bits or the
DIS_PREAMBLEbit) when writing theMII_SPEEDregister on MPC52xx systems.Signed-off-by Wolfgang Denk <[email protected]>Cc Grant Likely <[email protected]>Cc Kumar Gala <[email protected]>Cc <[email protected]>
Mostly good. One comment below. When it's resolved, feel free to add my acked-by line. Thanks for getting this done.
drivers/net/fec_mpc52xx_phy.c static int mpc52xx_fec_mdio_probe(struct of_device *of, · line 112
Quoted 11 lines
drivers/net/fec_mpc52xx_phy.c +5
-2@@ -105,8 +105,23 @@ static int mpc52xx_fec_mdio_probe(struct of_device *of, dev_set_drvdata(dev, bus); /* set MII speed */ - out_be32(&priv->regs->mii_speed, - ((mpc5xxx_get_bus_frequency(of->node) >> 20) / 5) << 1); + clock = mpc5xxx_get_bus_frequency(of->node); + if (!clock) { + dev_err(&of->dev, "could not determine IPS/IPB clock\n"); + goto out_unmap; + }
Just thought of something. If it cannot find the clock, then wouldn't it be better to just use the maximum divider and print a warning instead of bailing completely? This goes for the other patch as well.
Quoted 19 lines
drivers/net/fec_mpc52xx_phy.c +12
-1+ + /* scale for a MII clock <= 2.5 MHz */ + speed = (clock + 2499999) / 2500000; + + /* only 6 bits (25:30) available for MII speed */ + if (speed > 0x3F) { + speed = 0x3F; + dev_err(&of->dev, "MII clock (%d Hz) exceeds max (2.5 MHz)\n", + clock / speed); + } + + clrsetbits_be32(&priv->regs->mii_speed, 0x7E, speed << 1); err = of_mdiobus_register(bus, np); if (err) --1.6.0.6
Signature · 2 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.
Re: [PATCH 2/2 v2] MPC52xx FEC: be more conservative when setting MII_SPEED register
Dear Grant Likely,
Quoted 3 lines · In message <[email protected]> you…
Mostly good. One comment below. When it's resolved, feel free to add my acked-by line. Thanks for getting this done.
...
Quoted 3 lines
Just thought of something. If it cannot find the clock, then wouldn't it be better to just use the maximum divider and print a warning instead of bailing completely? This goes for the other patch as well.
Will change this for both patches. Thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Program maintenance is an entropy-increasing process, and even its most skilfull execution only delays the subsidence of the system into unfixable obsolescence. - Fred Brooks, "The Mythical Man Month"
Re: [PATCH 2/2 v2] MPC52xx FEC: be more conservative when setting MII_SPEED register
In reply to Wolfgang DenkHi Wolfgang,
Quoted 18 lines · Wolfgang Denk
This patch adds error checking and prevents clobbering unrelated bits (reserved bits or the
DIS_PREAMBLEbit) when writing theMII_SPEEDregister on MPC52xx systems.Signed-off-by Wolfgang Denk <[email protected]>Cc Grant Likely <[email protected]>Cc Kumar Gala <[email protected]>Cc <[email protected]>--- drivers/net/fec_mpc52xx.c | 2 +- drivers/net/fec_mpc52xx_phy.c | 21 ++++++++++++++++++--- 2 files changed, 19 insertions(+), 4 deletions(-)drivers/net/fec_mpc52xx.c +0
-0
drivers/net/fec_mpc52xx.c static void mpc52xx_fec_hw_init(struct net_device *dev) · line 643
Quoted 6 lines
drivers/net/fec_mpc52xx.c +1
-1@@ -639,7 +639,7 @@ static void mpc52xx_fec_hw_init(struct net_device *dev)/* set phy speed. * this can't be done in phy driver, since it needs to be called * before fec stuff (even on resume) */ -out_be32 (&fec->mii_speed, priv->mdio_speed); +clrsetbits_be32 (&fec->mii_speed,0x7E , priv->mdio_speed); }
In the probe-function when mdio_speed is set, there is still the old formula used. Wouldn't that be better in sync?
Quoted 48 lines
drivers/net/fec_mpc52xx.c +0
-0/** drivers/net/fec_mpc52xx_phy.c +18
-3@@ -70,7 +70,7 @@ static int mpc52xx_fec_mdio_probe(struct of_device *of,struct mpc52xx_fec_mdio_priv *priv;struct resource res = {};int err; -int i; +int i, clock, speed; bus =mdiobus_alloc ();if (bus ==NULL )@@ -105,8 +105,23 @@ static int mpc52xx_fec_mdio_probe(struct of_device *of,dev_set_drvdata (dev, bus);/* set MII speed */ -out_be32 (&priv->regs->mii_speed, - ((mpc5xxx_get_bus_frequency (of->node) >>20 ) /5 ) <<1 ); + clock =mpc5xxx_get_bus_frequency (of->node); +if (!clock) { +dev_err (&of->dev,"could not determine IPS/IPB clock\n" ); + goto out_unmap; + } + +/* scale for a MII clock <= 2.5 MHz */ + speed = (clock +2499999 ) /2500000 ; + +/* only 6 bits (25:30) available for MII speed */ +if (speed >0x3F ) { + speed =0x3F ; +dev_err (&of->dev,"MII clock (%d Hz) exceeds max (2.5 MHz)\n" , + clock / speed); + } + +clrsetbits_be32 (&priv->regs->mii_speed,0x7E , speed <<1 ); err =of_mdiobus_register (bus, np);if (err)Signature · 6 lines
1.6.0.6 _______________________________________________ Linuxppc-dev mailing list [email protected] https://lists.ozlabs.org/listinfo/linuxppc-dev
Regards,
Wolfram
Signature · 2 lines
Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ |
Re: [PATCH 2/2 v2] MPC52xx FEC: be more conservative when setting MII_SPEED register
Dear Wolfram Sang,
Quoted 3 lines · In message <[email protected]> you wrote:
In the probe-function when
mdio_speedis set, there is still the old formula used. Wouldn't that be better in sync?
Good point. Next version of patch following soon.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Prof: So the American government went to IBM to come up with a data encryption standard and they came up with ... Student: EBCDIC!
PATCH 2/2 MPC52xx FEC: be more conservative when setting MII_SPEED register
In reply to Wolfgang DenkThis patch adds error checking and prevents clobbering unrelated bits (reserved bits or the DIS_PREAMBLE bit) when writing the MII_SPEED register on MPC52xx systems.
--- drivers/net/fec_mpc52xx.c | 2 +- drivers/net/fec_mpc52xx_phy.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-)
drivers/net/fec_mpc52xx.c +1 -1
@@ -639,7 +639,7 @@ static void mpc52xx_fec_hw_init(struct net_device *dev)/* set phy speed. * this can't be done in phy driver, since it needs to be called * before fec stuff (even on resume) */ -out_be32 (&fec->mii_speed, priv->mdio_speed); +clrsetbits_be32 (&fec->mii_speed,0x7E , priv->mdio_speed); }/**
drivers/net/fec_mpc52xx_phy.c +4 -2
@@ -105,8 +105,10 @@ static int mpc52xx_fec_mdio_probe(struct of_device *of,dev_set_drvdata (dev, bus);/* set MII speed */ -out_be32 (&priv->regs->mii_speed, - ((mpc5xxx_get_bus_frequency (of->node) >>20 ) /5 ) <<1 ); + i =mpc5xxx_get_mii_speed (of); +if (i<0 ) + goto out_unmap; +clrsetbits_be32 (&priv->regs->mii_speed,0x7E , i); err =of_mdiobus_register (bus, np);if (err)
Signature · 1 line
1.6.0.6
Re: [PATCH 2/2] MPC52xx FEC: be more conservative when setting MII_SPEED register
Quoted 8 lines · Wolfgang Denk
This patch adds error checking and prevents clobbering unrelated bits (reserved bits or the
DIS_PREAMBLEbit) when writing theMII_SPEEDregister on MPC52xx systems.Signed-off-by Wolfgang Denk <[email protected]>Cc Grant Likely <[email protected]>Cc Kumar Gala <[email protected]>Cc <[email protected]>
As I mentioned in the other patch, I don't want the 5121 and 5200 FEC devices using common code for this. It is a tiny block of code and they are different devices. Just open code the needed calculation into this driver.
g.
Quoted 39 lines
---
drivers/net/fec_mpc52xx.c | 2 +-
drivers/net/fec_mpc52xx_phy.c | 6 ++++--2 files changed, 5 insertions(+), 3 deletions(-)drivers/net/fec_mpc52xx.c +1
-1@@ -639,7 +639,7 @@ static void mpc52xx_fec_hw_init(struct net_device *dev) /* set phy speed. * this can't be done in phy driver, since it needs to be called * before fec stuff (even on resume) */ - out_be32(&fec->mii_speed, priv->mdio_speed); + clrsetbits_be32(&fec->mii_speed, 0x7E, priv->mdio_speed); } /**drivers/net/fec_mpc52xx_phy.c +4
-3@@ -105,8 +105,10 @@ static int mpc52xx_fec_mdio_probe(struct of_device *of, dev_set_drvdata(dev, bus); /* set MII speed */ - out_be32(&priv->regs->mii_speed, - ((mpc5xxx_get_bus_frequency(of->node) >> 20) / 5) << 1); + i = mpc5xxx_get_mii_speed(of); + if (i<0) + goto out_unmap; + clrsetbits_be32(&priv->regs->mii_speed, 0x7E, i); err = of_mdiobus_register(bus, np); if (err) --1.6.0.6
Signature · 2 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.
Re: [PATCH 2/2] MPC52xx FEC: be more conservative when setting MII_SPEED register
Dear Grant Likely,
Quoted 4 lines · In message <[email protected]> you…
Quoted 3 lines · Wolfgang Denk
This patch adds error checking and prevents clobbering unrelated bits (reserved bits or the
DIS_PREAMBLEbit) when writing theMII_SPEEDregister on MPC52xx systems.
...
Quoted 4 lines
As I mentioned in the other patch, I don't want the 5121 and 5200 FEC devices using common code for this. It is a tiny block of code and they are different devices. Just open code the needed calculation into this driver.
OK, will do.
PATCH 1/1 mpc5xxx_get_bus_frequency(): use common code on MPC512x and MPC52xx
In reply to Grant LikelySo far, MPC512x used mpc512x_find_ips_freq() to get the bus frequency, while MPC52xx used mpc52xx_find_ipb_freq(). Despite the different clock names (IPS vs. IPB) the code was identical.
Use common code for both processor families.
---
This patch is not only intended to avoid code duplication, but it will be needed in a following patch that fixes a MII speed miscalculation in drivers/net/fs_enet/mii-fec.c - this patch allows for a clean solution that works both on MPC512x and MPC52x systems.
arch/powerpc/include/asm/mpc512x.h | 22 ----------------- arch/powerpc/include/asm/mpc52xx.h | 2 +- arch/powerpc/include/asm/mpc5xxx.h | 22 +++++++++++++++++ arch/powerpc/platforms/512x/clock.c | 2 +- arch/powerpc/platforms/512x/mpc512x.h | 1 - arch/powerpc/platforms/512x/mpc512x_shared.c | 23 ------------------ arch/powerpc/platforms/52xx/mpc52xx_common.c | 32 +------------------------ arch/powerpc/sysdev/Makefile | 3 ++ arch/powerpc/sysdev/mpc5xxx_clocks.c | 33 ++++++++++++++++++++++++++ drivers/ata/pata_mpc52xx.c | 2 +- drivers/i2c/busses/i2c-mpc.c | 2 +- drivers/net/fec_mpc52xx.c | 2 +- drivers/net/fec_mpc52xx_phy.c | 2 +- drivers/serial/mpc52xx_uart.c | 5 +-- drivers/watchdog/mpc5200_wdt.c | 2 +- 15 files changed, 68 insertions(+), 87 deletions(-) delete mode 100644 arch/powerpc/include/asm/mpc512x.h create mode 100644 arch/powerpc/include/asm/mpc5xxx.h create mode 100644 arch/powerpc/sysdev/mpc5xxx_clocks.c
arch/powerpc/include/asm/mpc512x.h deleted +0 -22
@@ -1,22 +0,0 @@ -/* -* Copyright (C) 2007 Freescale Semiconductor, Inc. All rights reserved. -* -* Author: John Rigby, <[email protected]>, Friday Apr 13 2007 -* -* Description: -* MPC5121 Prototypes and definitions -* -* This 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. -* -*/ - -#ifndef __ASM_POWERPC_MPC512x_H__ -#define __ASM_POWERPC_MPC512x_H__ - -extern unsigned long mpc512x_find_ips_freq (struct device_node *node); - -#endif /* __ASM_POWERPC_MPC512x_H__ */ -
arch/powerpc/include/asm/mpc52xx.h +1 -1
@@ -16,6 +16,7 @@#ifndef __ASSEMBLY__#include <asm/types.h> #include <asm/prom.h> +#include <asm/mpc5xxx.h> #endif /* __ASSEMBLY__ */ #include <linux/suspend.h>
@@ -268,7 +269,6 @@ struct mpc52xx_intr {#ifndef __ASSEMBLY__/* mpc52xx_common.c */ -extern unsigned int mpc52xx_find_ipb_freq (struct device_node *node);extern void mpc5200_setup_xlb_arbiter (void );extern void mpc52xx_declare_of_platform_devices (void );extern void mpc52xx_map_common_devices (void );
arch/powerpc/include/asm/mpc5xxx.h new file +22 -0
@@ -0,0 +1,22 @@ +/* +* Copyright (C) 2007 Freescale Semiconductor, Inc. All rights reserved. +* +* Author: John Rigby, <[email protected]>, Friday Apr 13 2007 +* +* Description: +* MPC5xxx Prototypes and definitions +* +* This 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. +* +*/ + +#ifndef __ASM_POWERPC_MPC5xxx_H__ +#define __ASM_POWERPC_MPC5xxx_H__ + +extern unsigned long mpc5xxx_get_bus_frequency (struct device_node *node); + +#endif /* __ASM_POWERPC_MPC5xxx_H__ */ +
arch/powerpc/platforms/512x/clock.c +1 -1
@@ -24,7 +24,7 @@#include <linux/io.h> #include <linux/of_platform.h> -#include <asm/mpc512x.h> +#include <asm/mpc5xxx.h> #include <asm/clk_interface.h> #undef CLK_DEBUG
arch/powerpc/platforms/512x/mpc512x.h +0 -1
@@ -11,7 +11,6 @@#ifndef __MPC512X_H__#define __MPC512X_H__ -extern unsigned long mpc512x_find_ips_freq (struct device_node *node);extern void __init mpc512x_init_IRQ (void );void __init mpc512x_declare_of_platform_devices (void );#endif /* __MPC512X_H__ */
arch/powerpc/platforms/512x/mpc512x_shared.c +0 -23
@@ -24,29 +24,6 @@#include "mpc512x.h" -unsigned long -mpc512x_find_ips_freq (struct device_node *node) -{ -struct device_node *np; -const unsigned int *p_ips_freq =NULL ; - -of_node_get (node); -while (node) { - p_ips_freq =of_get_property (node,"bus-frequency" ,NULL ); -if (p_ips_freq) -break ; - - np =of_get_parent (node); -of_node_put (node); - node = np; - } -if (node) -of_node_put (node); - -return p_ips_freq ? *p_ips_freq :0 ; -} -EXPORT_SYMBOL (mpc512x_find_ips_freq); -void __init mpc512x_init_IRQ (void ) {struct device_node *np;
arch/powerpc/platforms/52xx/mpc52xx_common.c +1 -31
@@ -47,36 +47,6 @@ static DEFINE_SPINLOCK(mpc52xx_lock);static struct mpc52xx_gpt __iomem *mpc52xx_wdt;static struct mpc52xx_cdm __iomem *mpc52xx_cdm; -/** -* mpc52xx_find_ipb_freq - Find the IPB bus frequency for a device -* @node: device node -* -* Returns IPB bus frequency, or 0 if the bus frequency cannot be found. -*/ -unsigned int -mpc52xx_find_ipb_freq (struct device_node *node) -{ -struct device_node *np; -const unsigned int *p_ipb_freq =NULL ; - -of_node_get (node); -while (node) { - p_ipb_freq =of_get_property (node,"bus-frequency" ,NULL ); -if (p_ipb_freq) -break ; - - np =of_get_parent (node); -of_node_put (node); - node = np; - } -if (node) -of_node_put (node); - -return p_ipb_freq ? *p_ipb_freq :0 ; -} -EXPORT_SYMBOL (mpc52xx_find_ipb_freq); - -/* * Configure the XLB arbiter settings to match what Linux expects. */
@@ -221,7 +191,7 @@ unsigned int mpc52xx_get_xtal_freq(struct device_node *node)if (!mpc52xx_cdm)return 0 ; - freq =mpc52xx_find_ipb_freq (node); + freq =mpc5xxx_get_bus_frequency (node);if (!freq)return 0 ;
arch/powerpc/sysdev/Makefile +3 -0
@@ -47,6 +47,9 @@ obj-$(CONFIG_PPC_DCR) += dcr.o obj-$(CONFIG_8xx) += mpc8xx_pic.o cpm1.o obj-$(CONFIG_UCODE_PATCH) += micropatch.o +obj-$(CONFIG_PPC_MPC512x) += mpc5xxx_clocks.o +obj-$(CONFIG_PPC_MPC52xx) += mpc5xxx_clocks.o + ifeq ($(CONFIG_SUSPEND),y) obj-$(CONFIG_6xx) += 6xx-suspend.o endif
arch/powerpc/sysdev/mpc5xxx_clocks.c new file +33 -0
@@ -0,0 +1,33 @@ +/** +* mpc5xxx_get_bus_frequency - Find the bus frequency for a device +* @node: device node +* +* Returns bus frequency (IPS on MPC512x, IPB on MPC52xx), +* or 0 if the bus frequency cannot be found. +*/ + +#include <linux/kernel.h> +#include <linux/of_platform.h> + +unsigned int +mpc5xxx_get_bus_frequency (struct device_node *node) +{ +struct device_node *np; +const unsigned int *p_bus_freq =NULL ; + +of_node_get (node); +while (node) { + p_bus_freq =of_get_property (node,"bus-frequency" ,NULL ); +if (p_bus_freq) +break ; + + np =of_get_parent (node); +of_node_put (node); + node = np; + } +if (node) +of_node_put (node); + +return p_bus_freq ? *p_bus_freq :0 ; +} +EXPORT_SYMBOL (mpc5xxx_get_bus_frequency);
drivers/ata/pata_mpc52xx.c +1 -1
@@ -694,7 +694,7 @@ mpc52xx_ata_probe(struct of_device *op, const struct of_device_id *match)struct bcom_task *dmatsk =NULL ;/* Get ipb frequency */ - ipb_freq =mpc52xx_find_ipb_freq (op->node); + ipb_freq =mpc5xxx_get_bus_frequency (op->node);if (!ipb_freq) {dev_err (&op->dev,"could not determine IPB bus frequency\n" );return -ENODEV ;
drivers/i2c/busses/i2c-mpc.c +1 -1
@@ -197,7 +197,7 @@ int mpc_i2c_get_fdr_52xx(struct device_node *node, u32 clock, int prescaler)return -EINVAL ;/* Determine divider value */ - divider =mpc52xx_find_ipb_freq (node) / clock; + divider =mpc5xxx_get_bus_frequency (node) / clock;/* * We want to choose an FDR/DFSR that generates an I2C bus speed that
drivers/net/fec_mpc52xx.c +1 -1
@@ -1006,7 +1006,7 @@ mpc52xx_fec_probe(struct of_device *op, const struct of_device_id *match) priv->phy_addr =FEC5200_PHYADDR_NONE ; priv->speed =100 ; priv->duplex =DUPLEX_HALF ; - priv->phy_speed = ((mpc52xx_find_ipb_freq (op->node) >>20 ) /5 ) <<1 ; + priv->phy_speed = ((mpc5xxx_get_bus_frequency (op->node) >>20 ) /5 ) <<1 ;/* the 7-wire property means don't use MII mode */ if (of_find_property (op->node,"fsl,7-wire-mode" ,NULL ))
drivers/net/fec_mpc52xx_phy.c +1 -1
@@ -120,7 +120,7 @@ static int mpc52xx_fec_mdio_probe(struct of_device *of,/* set MII speed */ out_be32 (&priv->regs->mii_speed, - ((mpc52xx_find_ipb_freq (of->node) >>20 ) /5 ) <<1 ); + ((mpc5xxx_get_bus_frequency (of->node) >>20 ) /5 ) <<1 ); err =mdiobus_register (bus);if (err)
drivers/serial/mpc52xx_uart.c +2 -3
@@ -76,7 +76,6 @@#include <linux/of_platform.h> #include <asm/mpc52xx.h> -#include <asm/mpc512x.h> #include <asm/mpc52xx_psc.h> #if defined(CONFIG_SERIAL_MPC52xx_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ )
@@ -254,7 +253,7 @@ static unsigned long mpc52xx_getuartclk(void *p)* but the generic serial code assumes 16 * so return ipb freq / 2 */ -return mpc52xx_find_ipb_freq (p) /2 ; +return mpc5xxx_get_bus_frequency (p) /2 ; }static struct psc_ops mpc52xx_psc_ops = {
@@ -391,7 +390,7 @@ static void mpc512x_psc_cw_restore_ints(struct uart_port *port)static unsigned long mpc512x_getuartclk (void *p) { -return mpc512x_find_ips_freq (p); +return mpc5xxx_get_bus_frequency (p); }static struct psc_ops mpc512x_psc_ops = {
drivers/watchdog/mpc5200_wdt.c +1 -1
@@ -188,7 +188,7 @@ static int mpc5200_wdt_probe(struct of_device *op,if (!wdt)return -ENOMEM ; - wdt->ipb_freq =mpc52xx_find_ipb_freq (op->node); + wdt->ipb_freq =mpc5xxx_get_bus_frequency (op->node); err =of_address_to_resource (op->node,0 , &wdt->mem);if (err)
Signature · 1 line
1.6.0.6
Re: [PATCH] mpc5xxx_get_bus_frequency(): use common code on MPC512x and MPC52xx
Quoted 9 lines · Wolfgang Denk
So far, MPC512x used
mpc512x_find_ips_freq()to get the bus frequency, while MPC52xx usedmpc52xx_find_ipb_freq(). =A0Despite the different clock names (IPS vs. IPB) the code was identical.Use common code for both processor families.
Signed-off-by Wolfgang Denk <[email protected]>Cc Grant Likely <[email protected]>Cc Kumar Gala <[email protected]>
You probably already know this, but this patch doesn't apply against mainline, so I won't merge for 2.6.31.
g.
Quoted 8 lines
---
This patch is not only intended to avoid code duplication, but it will be needed in a following patch that fixes a MII speed miscalculation in
drivers/net/fs_enet/mii-fec.c- this patch allows for a clean solution that works both on MPC512x and MPC52x systems.=A0arch/powerpc/include/asm/mpc512x.h =A0 =A0 =A0 =A0 =A0 | =A0 22 ------=
-----------
Quoted 2 lines
=A0arch/powerpc/include/asm/mpc52xx.h =A0 =A0 =A0 =A0 =A0 | =A0 =A02 +- =A0arch/powerpc/include/asm/mpc5xxx.h =A0 =A0 =A0 =A0 =A0 | =A0 22 ++++++=
+++++++++++
Quoted 3 lines
=A0arch/powerpc/platforms/512x/clock.c =A0 =A0 =A0 =A0 =A0| =A0 =A02 +- =A0arch/powerpc/platforms/512x/mpc512x.h =A0 =A0 =A0 =A0| =A0 =A01 - =A0arch/powerpc/platforms/512x/mpc512x_shared.c | =A0 23 ----------------=
--
Quoted 1 line
=A0arch/powerpc/platforms/52xx/mpc52xx_common.c | =A0 32 +---------------=
---------
Quoted 1 line
=A0arch/powerpc/sysdev/Makefile =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | =A0 =A0=
3 ++
Quoted 1 line
=A0arch/powerpc/sysdev/mpc5xxx_clocks.c =A0 =A0 =A0 =A0 | =A0 33 ++++++++=
++++++++++++++++++
Quoted 1 line
=A0drivers/ata/pata_mpc52xx.c =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | =A0 =
=A02 +-
Quoted 1 line
=A0drivers/i2c/busses/i2c-mpc.c =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 | =A0 =A0=
2 +-
Quoted 1 line
=A0drivers/net/fec_mpc52xx.c =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| =A0=
=A02 +-
Quoted 1 line
=A0drivers/net/fec_mpc52xx_phy.c =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| =A0 =A0=
2 +-
Quoted 1 line
=A0drivers/serial/mpc52xx_uart.c =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| =A0 =A0=
5 +--
Quoted 1 line
=A0drivers/watchdog/mpc5200_wdt.c =A0 =A0 =A0 =A0 =A0 =A0 =A0 | =A0 =A02 =
+-
arch/powerpc/include/as=
Quoted 6 lines
=A015 files changed, 68 insertions(+), 87 deletions(-) =A0delete mode 100644
arch/powerpc/include/asm/mpc512x.h=A0create mode 100644arch/powerpc/include/asm/mpc5xxx.h=A0create mode 100644arch/powerpc/sysdev/mpc5xxx_clocks.carch/powerpc/include/as= renamed from arch/powerpc/include/asm/mpc512x.h +0
-0
m/mpc512x.h
arch/powerpc/include/as=
Quoted 28 lines
deleted file mode 100644
index c48a165..0000000arch/powerpc/include/asm/mpc512x.h deleted +0
-22@@ -1,22 +0,0 @@ -/* -* Copyright (C) 2007 Freescale Semiconductor, Inc. All rights reserved. -* -* Author: John Rigby, <[email protected]>, Friday Apr 13 2007 -* -* Description: -* MPC5121 Prototypes and definitions -* -* This 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. -* -*/ - -#ifndef __ASM_POWERPC_MPC512x_H__ -#define __ASM_POWERPC_MPC512x_H__ - -extern unsigned long mpc512x_find_ips_freq (struct device_node *node); - -#endif /* __ASM_POWERPC_MPC512x_H__ */ -arch/powerpc/include/as= renamed from arch/powerpc/include/asm/mpc52xx.h +0
-0
m/mpc52xx.h
arch/powerpc/include/as=
Quoted 20 lines
index 52e049c..1b4f697 100644
arch/powerpc/include/asm/mpc52xx.h +0
-0@@ -16,6 +16,7 @@=A0#ifndef
__ASSEMBLY__
=A0#include <asm/types.h>
=A0#include <asm/prom.h>
+#include <asm/mpc5xxx.h>
=A0#endif /*__ASSEMBLY__*/=A0#include <
linux/suspend.h>arch/powerpc/include/asm/mpc52xx.h +0
-0@@ -268,7 +269,6 @@ struct mpc52xx_intr {=A0#ifndef
__ASSEMBLY__=A0/*
mpc52xx_common.c*/
-extern unsigned intmpc52xx_find_ipb_freq(struct device_node *node); =A0extern voidmpc5200_setup_xlb_arbiter(void);
=A0extern voidmpc52xx_declare_of_platform_devices(void); =A0extern voidmpc52xx_map_common_devices(void);arch/powerpc/include/as= renamed from arch/powerpc/include/asm/mpc5xxx.h +0
-0
m/mpc5xxx.h
Quoted 14 lines
new file mode 100644
index 0000000..5ce9c5farch/powerpc/include/asm/mpc5xxx.h new file +9
-0@@ -0,0 +1,22 @@ +/* +* Copyright (C) 2007 Freescale Semiconductor, Inc. All rights reserved. +* +* Author: John Rigby, <[email protected]>, Friday Apr 13 2007 +* +* Description: +* MPC5xxx Prototypes and definitions +* +* This is free software; you can redistribute it and/or modify it
arch/powerpc/include/asm/mpc5xxx.h line 19
Quoted 10 lines
arch/powerpc/include/asm/mpc5xxx.h new file +10
-0+* 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. +* +*/ + +#ifndef __ASM_POWERPC_MPC5xxx_H__ +#define __ASM_POWERPC_MPC5xxx_H__ + +extern unsigned long mpc5xxx_get_bus_frequency(struct device_node *node)=
;
arch/powerpc/platforms=
Quoted 4 lines
arch/powerpc/include/asm/mpc5xxx.h new file +3
-0+ +#endif /* __ASM_POWERPC_MPC5xxx_H__ */ +arch/powerpc/platforms= renamed from arch/powerpc/platforms/512x/clock.c +0
-0
/512x/clock.c
arch/powerpc/platfor=
Quoted 13 lines
index 1bcff94..f4c4c6f 100644
arch/powerpc/platforms/512x/clock.c +0
-0@@ -24,7 +24,7 @@=A0#include <
linux/io.h>=A0#include <
linux/of_platform.h>arch/powerpc/platforms/512x/clock.c +1
-1-#include <asm/mpc512x.h> +#include <asm/mpc5xxx.h> =A0#include <
asm/clk_interface.h>=A0#undef
CLK_DEBUGarch/powerpc/platfor= renamed from arch/powerpc/platforms/512x/mpc512x.h +0
-0
ms/512x/mpc512x.h
Quoted 11 lines
index 9c03693..22a5352 100644
arch/powerpc/platforms/512x/mpc512x.h +0
-0@@ -11,7 +11,6 @@=A0#ifndef
__MPC512X_H__
=A0#define__MPC512X_H__
-extern unsigned longmpc512x_find_ips_freq(struct device_node *node); =A0extern void__initmpc512x_init_IRQ(void);
=A0void__initmpc512x_declare_of_platform_devices(void); =A0#endif =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 /* __MPC512X_H_=
_ */
arch/powerpc/=
Quoted 1 line
arch/powerpc/= renamed from arch/powerpc/platforms/512x/mpc512x_shared.c +0
-0
platforms/512x/mpc512x_shared.c
Quoted 7 lines
index d8cd579..434d683 100644
arch/powerpc/platforms/512x/mpc512x_shared.c +0
-0@@ -24,29 +24,6 @@=A0#include "
mpc512x.h"
arch/powerpc/platforms/512x/mpc512x_shared.c
Quoted 9 lines
arch/powerpc/platforms/512x/mpc512x_shared.c +0
-9-unsigned long -mpc512x_find_ips_freq(struct device_node *node) -{ - =A0 =A0 =A0 struct device_node *np; - =A0 =A0 =A0 const unsigned int *p_ips_freq =3D NULL; - - =A0 =A0 =A0 of_node_get(node); - =A0 =A0 =A0 while (node) { - =A0 =A0 =A0 =A0 =A0 =A0 =A0 p_ips_freq =3D of_get_property(node, "bus-f=
requency", NULL);
arch/powerpc/=
Quoted 18 lines
- =A0 =A0 =A0 =A0 =A0 =A0 =A0 if (
p_ips_freq)
- =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 break;arch/powerpc/platforms/512x/mpc512x_shared.c +0
-12- - =A0 =A0 =A0 =A0 =A0 =A0 =A0 np =3D of_get_parent(node); - =A0 =A0 =A0 =A0 =A0 =A0 =A0 of_node_put(node); - =A0 =A0 =A0 =A0 =A0 =A0 =A0 node =3D np; - =A0 =A0 =A0 } - =A0 =A0 =A0 if (node) - =A0 =A0 =A0 =A0 =A0 =A0 =A0 of_node_put(node); - - =A0 =A0 =A0 return p_ips_freq ? *p_ips_freq : 0; -} -EXPORT_SYMBOL (mpc512x_find_ips_freq); -=A0void
__initmpc512x_init_IRQ(void)
=A0{
=A0 =A0 =A0 =A0structdevice_node*np;arch/powerpc/= renamed from arch/powerpc/platforms/52xx/mpc52xx_common.c +0
-0
platforms/52xx/mpc52xx_common.c
arch/powerpc/platforms/52xx/mpc52xx_common.c static DEFINE_SPINLOCK(mpc52xx_lock); · line 51
Quoted 9 lines
index 8e3dd5a..a46bad0 100644
arch/powerpc/platforms/52xx/mpc52xx_common.c +0
-2@@ -47,36 +47,6 @@ static DEFINE_SPINLOCK(mpc52xx_lock); =A0static struct mpc52xx_gpt __iomem *mpc52xx_wdt; =A0static struct mpc52xx_cdm __iomem *mpc52xx_cdm; -/** -* =A0 =A0 mpc52xx_find_ipb_freq - Find the IPB bus frequency for a devi=
ce
arch/powerpc/platforms/52xx/mpc52xx_common.c static DEFINE_SPINLOCK(mpc52xx_lock); · line 54
Quoted 3 lines
arch/powerpc/platforms/52xx/mpc52xx_common.c +0
-3-* =A0 =A0 @node: =A0device node -* -* =A0 =A0 Returns IPB bus frequency, or 0 if the bus frequency cannot b=
e found.
arch/powerpc/platforms/52xx/mpc52xx_common.c static DEFINE_SPINLOCK(mpc52xx_lock);
Quoted 10 lines
arch/powerpc/platforms/52xx/mpc52xx_common.c +0
-10- */ -unsigned int -mpc52xx_find_ipb_freq(struct device_node *node) -{ - =A0 =A0 =A0 struct device_node *np; - =A0 =A0 =A0 const unsigned int *p_ipb_freq =3D NULL; - - =A0 =A0 =A0 of_node_get(node); - =A0 =A0 =A0 while (node) { - =A0 =A0 =A0 =A0 =A0 =A0 =A0 p_ipb_freq =3D of_get_property(node, "bus-f=
requency", NULL);
arch/powerpc/platforms/52xx/mpc52xx_common.c unsigned int mpc52xx_get_xtal_freq(struct device_node=
Quoted 19 lines
arch/powerpc/platforms/52xx/mpc52xx_common.c +0
-15- =A0 =A0 =A0 =A0 =A0 =A0 =A0 if (p_ipb_freq) - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 break; - - =A0 =A0 =A0 =A0 =A0 =A0 =A0 np =3D of_get_parent(node); - =A0 =A0 =A0 =A0 =A0 =A0 =A0 of_node_put(node); - =A0 =A0 =A0 =A0 =A0 =A0 =A0 node =3D np; - =A0 =A0 =A0 } - =A0 =A0 =A0 if (node) - =A0 =A0 =A0 =A0 =A0 =A0 =A0 of_node_put(node); - - =A0 =A0 =A0 return p_ipb_freq ? *p_ipb_freq : 0; -} -EXPORT_SYMBOL (mpc52xx_find_ipb_freq); - -=A0/*
=A0* Configure the XLB arbiter settings to match what Linux expects. =A0*/arch/powerpc/platforms/52xx/mpc52xx_common.c +0
-0@@ -221,7 +191,7 @@ unsigned int mpc52xx_get_xtal_freq(struct device_node=
*node)
arch/powerpc/sysdev/m=
Quoted 23 lines
arch/powerpc/platforms/52xx/mpc52xx_common.c +1
-1=A0 =A0 =A0 =A0if (!mpc52xx_cdm) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return 0; - =A0 =A0 =A0 freq =3D mpc52xx_find_ipb_freq(node); + =A0 =A0 =A0 freq =3D mpc5xxx_get_bus_frequency(node); =A0 =A0 =A0 =A0if (!freq) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return 0;arch/powerpc/sysdev/Makefile +0
-0@@ -47,6 +47,9 @@ obj-$(CONFIG_PPC_DCR) =A0 =A0 =A0 =A0 +=3D dcr.o=A0obj-$(CONFIG_8xx) =A0 =A0 =A0 =A0 =A0 =A0 =A0+=3D mpc8xx_pic.o cpm1.o =A0obj-$(CONFIG_UCODE_PATCH) =A0 =A0 =A0+=3D micropatch.o
arch/powerpc/sysdev/Makefile +3
-0+obj-$(CONFIG_PPC_MPC512x) =A0 =A0 =A0+=3D mpc5xxx_clocks.o +obj-$(CONFIG_PPC_MPC52xx) =A0 =A0 =A0+=3D mpc5xxx_clocks.o +=A0ifeq ($(CONFIG_SUSPEND),y)
=A0obj-$(CONFIG_6xx) =A0 =A0 =A0 =A0 =A0 =A0 =A0+=3D 6xx-suspend.o =A0endifarch/powerpc/sysdev/m= renamed from arch/powerpc/sysdev/mpc5xxx_clocks.c +0
-0
pc5xxx_clocks.c
arch/powerpc/sysdev/mpc5xxx_clocks.c line 2
Quoted 7 lines
new file mode 100644
index 0000000..34e12f9arch/powerpc/sysdev/mpc5xxx_clocks.c new file +2
-0@@ -0,0 +1,33 @@ +/** +* =A0 =A0 mpc5xxx_get_bus_frequency - Find the bus frequency for a devi=
ce
Quoted 8 lines
arch/powerpc/sysdev/mpc5xxx_clocks.c new file +8
-0+* =A0 =A0 @node: =A0device node +* +* =A0 =A0 Returns bus frequency (IPS on MPC512x, IPB on MPC52xx), +* =A0 =A0 or 0 if the bus frequency cannot be found. +*/ + +#include <linux/kernel.h> +#include <linux/of_platform.h>
arch/powerpc/sysdev/mpc5xxx_clocks.c
Quoted 10 lines
arch/powerpc/sysdev/mpc5xxx_clocks.c new file +10
-0+ +unsigned int +mpc5xxx_get_bus_frequency(struct device_node *node) +{ + =A0 =A0 =A0 struct device_node *np; + =A0 =A0 =A0 const unsigned int *p_bus_freq =3D NULL; + + =A0 =A0 =A0 of_node_get(node); + =A0 =A0 =A0 while (node) { + =A0 =A0 =A0 =A0 =A0 =A0 =A0 p_bus_freq =3D of_get_property(node, "bus-f=
requency", NULL);
drivers/ata/pata_mpc52xx.c mpc52xx_ata_probe(struct of_device *op, const struct =
Quoted 18 lines
arch/powerpc/sysdev/mpc5xxx_clocks.c new file +13
-0+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 if (p_bus_freq) + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 break; + + =A0 =A0 =A0 =A0 =A0 =A0 =A0 np =3D of_get_parent(node); + =A0 =A0 =A0 =A0 =A0 =A0 =A0 of_node_put(node); + =A0 =A0 =A0 =A0 =A0 =A0 =A0 node =3D np; + =A0 =A0 =A0 } + =A0 =A0 =A0 if (node) + =A0 =A0 =A0 =A0 =A0 =A0 =A0 of_node_put(node); + + =A0 =A0 =A0 return p_bus_freq ? *p_bus_freq : 0; +} +EXPORT_SYMBOL (mpc5xxx_get_bus_frequency);drivers/ata/pata_mpc52xx.c +0
-0@@ -694,7 +694,7 @@ mpc52xx_ata_probe(struct of_device *op, const struct =
of_device_id *match)
Quoted 7 lines
drivers/ata/pata_mpc52xx.c +0
-0=A0 =A0 =A0 =A0struct bcom_task *dmatsk =3D NULL;=A0 =A0 =A0 =A0/* Get ipb frequency */
- =A0 =A0 =A0ipb_freq=3Dmpc52xx_find_ipb_freq(op->node);
+ =A0 =A0 =A0ipb_freq=3Dmpc5xxx_get_bus_frequency(op->node); =A0 =A0 =A0 =A0if (!ipb_freq) {
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0dev_err(&op->dev, "could not determine IPB=
bus frequency\n");
drivers/i2c/busses/i2c-mpc.c int mpc_i2c_get_fdr_52xx(struct device_node *node, u3=
Quoted 6 lines
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return
-ENODEV;drivers/i2c/busses/i2c-mpc.c +0
-0@@ -197,7 +197,7 @@ int mpc_i2c_get_fdr_52xx(struct device_node *node, u3=
2 clock, int prescaler)
Quoted 8 lines
drivers/i2c/busses/i2c-mpc.c +0
-0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return -EINVAL;=A0 =A0 =A0 =A0/* Determine divider value */
- =A0 =A0 =A0 divider =3Dmpc52xx_find_ipb_freq(node)/ clock;
+ =A0 =A0 =A0 divider =3Dmpc5xxx_get_bus_frequency(node)/ clock;=A0 =A0 =A0 =A0/*
=A0 =A0 =A0 =A0 * We want to choose an FDR/DFSR that generates an I2C bus=
speed that
drivers/net/fec_mpc52xx.c mpc52xx_fec_probe(struct of_device *op, const struc=
Quoted 5 lines
drivers/net/fec_mpc52xx.c +0
-0@@ -1006,7 +1006,7 @@ mpc52xx_fec_probe(struct of_device *op, const struc=
t of_device_id *match)
drivers/net/fec_mpc52xx.c mpc52xx_fec_probe(struct of_device *op, const struc= · line 1009
Quoted 4 lines
drivers/net/fec_mpc52xx.c +0
-1=A0 =A0 =A0 =A0priv->phy_addr =3D FEC5200_PHYADDR_NONE; =A0 =A0 =A0 =A0priv->speed =3D 100; =A0 =A0 =A0 =A0priv->duplex =3D DUPLEX_HALF; - =A0 =A0 =A0 priv->phy_speed =3D ((mpc52xx_find_ipb_freq(op->node) >> 20=
) / 5) << 1;
drivers/net/fec_mpc52xx_phy.=
Quoted 6 lines
drivers/net/fec_mpc52xx.c +1
-0+ =A0 =A0 =A0 priv->phy_speed =3D ((mpc5xxx_get_bus_frequency(op->node) >=20 ) /5 ) <<1 ;=A0 =A0 =A0 =A0/* the 7-wire property means don't use MII mode */ =A0 =A0 =A0 =A0if (
of_find_property(op->node, "fsl,7-wire-mode", NULL))drivers/net/fec_mpc52xx_phy.= renamed from drivers/net/fec_mpc52xx_phy.c +0
-0
c
drivers/net/fec_mpc52xx_phy.c static int mpc52xx_fec_mdio_probe(struct of_device *o=
Quoted 4 lines
index dd9bfa4..176e9b8 100644
drivers/net/fec_mpc52xx_phy.c +0
-0@@ -120,7 +120,7 @@ static int mpc52xx_fec_mdio_probe(struct of_device *o=
f,
Quoted 4 lines
=A0 =A0 =A0 =A0/* set MII speed */
=A0 =A0 =A0 =A0out_be32(&priv->regs->mii_speed,
- =A0 =A0 =A0 =A0 =A0 =A0 =A0 ((mpc52xx_find_ipb_freq(of->node)>> 20) / =
5) << 1);
Quoted 1 line
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 ((
mpc5xxx_get_bus_frequency(of->node)>> 20=
) / 5) << 1);
drivers/serial/mpc52xx_uart.=
Quoted 4 lines
=A0 =A0 =A0 =A0err =3D
mdiobus_register(bus);
=A0 =A0 =A0 =A0if (err)drivers/serial/mpc52xx_uart.= renamed from drivers/serial/mpc52xx_uart.c +0
-0
c
Quoted 11 lines
index b3feb61..abbd146 100644
drivers/serial/mpc52xx_uart.c +0
-0@@ -76,7 +76,6 @@=A0#include <
linux/of_platform.h>=A0#include <
asm/mpc52xx.h>
-#include <asm/mpc512x.h>
=A0#include <asm/mpc52xx_psc.h>=A0#if
defined(CONFIG_SERIAL_MPC52xx_CONSOLE)&& defined(CONFIG_MAGIC_SYS=
RQ)
drivers/serial/mpc52xx_uart.c static void mpc512x_psc_cw_restore_ints(struct uart_p=
Quoted 10 lines
drivers/serial/mpc52xx_uart.c +0
-0@@ -254,7 +253,7 @@ static unsigned long mpc52xx_getuartclk(void *p)=A0 =A0 =A0 =A0 * but the generic serial code assumes 16 =A0 =A0 =A0 =A0 * so return ipb freq / 2
=A0 =A0 =A0 =A0 */
- =A0 =A0 =A0 returnmpc52xx_find_ipb_freq(p)/ 2;
+ =A0 =A0 =A0 returnmpc5xxx_get_bus_frequency(p)/ 2; =A0}=A0static struct
psc_opsmpc52xx_psc_ops=3D {drivers/serial/mpc52xx_uart.c +0
-0@@ -391,7 +390,7 @@ static void mpc512x_psc_cw_restore_ints(struct uart_p=
ort *port)
drivers/watchdog/mpc5200_wd=
Quoted 9 lines
drivers/serial/mpc52xx_uart.c +1
-1=A0static unsigned long mpc512x_getuartclk(void *p) =A0{ - =A0 =A0 =A0 return mpc512x_find_ips_freq(p); + =A0 =A0 =A0 return mpc5xxx_get_bus_frequency(p); =A0} =A0static struct psc_ops mpc512x_psc_ops =3D {drivers/watchdog/mpc5200_wd= renamed from drivers/watchdog/mpc5200_wdt.c +0
-0
t.c
Quoted 13 lines
index 465fe36..fa9c47c 100644
drivers/watchdog/mpc5200_wdt.c +1
-2@@ -188,7 +188,7 @@ static int mpc5200_wdt_probe(struct of_device *op, =A0 =A0 =A0 =A0if (!wdt) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return -ENOMEM ; - =A0 =A0 =A0 wdt->ipb_freq =3D mpc52xx_find_ipb_freq(op->node); + =A0 =A0 =A0 wdt->ipb_freq =3D mpc5xxx_get_bus_frequency(op->node); =A0 =A0 =A0 =A0err =3D of_address_to_resource(op->node, 0, &wdt->mem); =A0 =A0 =A0 =A0if (err) --
Quoted 3 lines
1.6.0.6
--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
Re: [PATCH] mpc5xxx_get_bus_frequency(): use common code on MPC512x and MPC52xx
On Wed, Jun 17, 2009 at 12:14 AM, Grant Likely<[email protected]> w= rote:
Quoted 5 lines · Wolfgang Denk
Quoted 4 lines
So far, MPC512x used
mpc512x_find_ips_freq()to get the bus frequency, while MPC52xx usedmpc52xx_find_ipb_freq(). =A0Despite the different clock names (IPS vs. IPB) the code was identical.
Quoted 8 lines
Quoted 5 lines
Use common code for both processor families.
Signed-off-by Wolfgang Denk <[email protected]>Cc Grant Likely <[email protected]>Cc Kumar Gala <[email protected]>You probably already know this, but this patch doesn't apply against mainline, so I won't merge for 2.6.31.
Never mind; I'm smoking something. The patch applies fine.
g.
--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
PATCH 3/4 mpc5121: add support for ARIA board
In reply to Wolfgang DenkARIA is a MPC5121E based COM Express module by Dave/DENX.
--- arch/powerpc/platforms/512x/Kconfig | 9 +++ arch/powerpc/platforms/512x/Makefile | 1 + arch/powerpc/platforms/512x/aria.c | 73 +++++++++++++++++++++++++ arch/powerpc/platforms/512x/mpc5121_generic.c | 1 + 4 files changed, 84 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/platforms/512x/aria.c
arch/powerpc/platforms/512x/Kconfig +9 -0
@@ -10,6 +10,15 @@ config PPC_MPC5121 bool select PPC_MPC512x +config ARIA + bool "Dave/DENX ARIA COM Express module" + depends on 6xx + select DEFAULT_UIMAGE + select PPC_MPC5121 + help + This option enables support for the ARIA board, + a MPC5121E based COM Express module by Dave/DENX. + config MPC5121_ADS bool "Freescale MPC5121E ADS" depends on 6xx
arch/powerpc/platforms/512x/Makefile +1 -0
@@ -2,5 +2,6 @@ # Makefile for the Freescale PowerPC 512x linux kernel. # obj-y += clock.o mpc512x_shared.o +obj-$(CONFIG_ARIA) += aria.o obj-$(CONFIG_MPC5121_ADS) += mpc5121_ads.o mpc5121_ads_cpld.o obj-$(CONFIG_MPC5121_GENERIC) += mpc5121_generic.o
arch/powerpc/platforms/512x/aria.c new file +70 -0
70 lines not on this page · raw message
arch/powerpc/platforms/512x/mpc5121_generic.c +1 -0
@@ -27,6 +27,7 @@* list of supported boards */ static char *board[]__initdata = { +"davedenx,aria" ,"prt,prtlvt" ,NULL };
Signature · 1 line
1.6.0.6
PATCH 4/4 ARIA: add default config file
In reply to Wolfgang DenkDefault config file for the ARIA board,
a MPC5121 based COM Express module by Dave/DENX.
--- arch/powerpc/configs/512x/aria_defconfig | 1789 ++++++++++++++++++++++++++++++ 1 files changed, 1789 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/configs/512x/aria_defconfig
arch/powerpc/configs/512x/aria_defconfig new file +1789 -0
@@ -0,0 +1,1789 @@ +# +# Automatically generated make config: don't edit +# Linux kernel version: 2.6.30-rc3 +# Thu Apr 30 00:27:08 2009 +# +# CONFIG_PPC64 is not set + +# +# Processor support +# +CONFIG_6xx=y +# CONFIG_PPC_85xx is not set +# CONFIG_PPC_8xx is not set +# CONFIG_40x is not set +# CONFIG_44x is not set +# CONFIG_E200 is not set +CONFIG_PPC_BOOK3S=y +CONFIG_PPC_FPU=y +# CONFIG_ALTIVEC is not set +CONFIG_PPC_STD_MMU=y +CONFIG_PPC_STD_MMU_32=y +# CONFIG_PPC_MM_SLICES is not set +# CONFIG_SMP is not set +CONFIG_NOT_COHERENT_CACHE=y +CONFIG_PPC32=y +CONFIG_WORD_SIZE=32 +# CONFIG_ARCH_PHYS_ADDR_T_64BIT is not set +CONFIG_MMU=y +CONFIG_GENERIC_CMOS_UPDATE=y +CONFIG_GENERIC_TIME=y +CONFIG_GENERIC_TIME_VSYSCALL=y +CONFIG_GENERIC_CLOCKEVENTS=y +CONFIG_GENERIC_HARDIRQS=y +# CONFIG_HAVE_SETUP_PER_CPU_AREA is not set +CONFIG_IRQ_PER_CPU=y +CONFIG_STACKTRACE_SUPPORT=y +CONFIG_HAVE_LATENCYTOP_SUPPORT=y +CONFIG_LOCKDEP_SUPPORT=y +CONFIG_RWSEM_XCHGADD_ALGORITHM=y +CONFIG_ARCH_HAS_ILOG2_U32=y +CONFIG_GENERIC_HWEIGHT=y +CONFIG_GENERIC_CALIBRATE_DELAY=y +CONFIG_GENERIC_FIND_NEXT_BIT=y +# CONFIG_ARCH_NO_VIRT_TO_BUS is not set +CONFIG_PPC=y +CONFIG_EARLY_PRINTK=y +CONFIG_GENERIC_NVRAM=y +CONFIG_SCHED_OMIT_FRAME_POINTER=y +CONFIG_ARCH_MAY_HAVE_PC_FDC=y +CONFIG_PPC_OF=y +CONFIG_OF=y +# CONFIG_PPC_UDBG_16550 is not set +# CONFIG_GENERIC_TBSYNC is not set +CONFIG_AUDIT_ARCH=y +CONFIG_GENERIC_BUG=y +CONFIG_DEFAULT_UIMAGE=y +# CONFIG_PPC_DCR_NATIVE is not set +# CONFIG_PPC_DCR_MMIO is not set +CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y +CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" + +# +# General setup +# +CONFIG_EXPERIMENTAL=y +CONFIG_BROKEN_ON_SMP=y +CONFIG_INIT_ENV_ARG_LIMIT=32 +CONFIG_LOCALVERSION="" +CONFIG_LOCALVERSION_AUTO=y +# CONFIG_SWAP is not set +CONFIG_SYSVIPC=y +CONFIG_SYSVIPC_SYSCTL=y +# CONFIG_POSIX_MQUEUE is not set +# 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=16 +# 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 +# CONFIG_NAMESPACES is not set +CONFIG_BLK_DEV_INITRD=y +CONFIG_INITRAMFS_SOURCE="" +CONFIG_RD_GZIP=y +# CONFIG_RD_BZIP2 is not set +# CONFIG_RD_LZMA is not set +CONFIG_CC_OPTIMIZE_FOR_SIZE=y +CONFIG_SYSCTL=y +CONFIG_ANON_INODES=y +CONFIG_EMBEDDED=y +CONFIG_SYSCTL_SYSCALL=y +CONFIG_KALLSYMS=y +# CONFIG_KALLSYMS_ALL is not set +# CONFIG_KALLSYMS_EXTRA_PASS is not set +# CONFIG_STRIP_ASM_SYMS is not set +CONFIG_HOTPLUG=y +CONFIG_PRINTK=y +CONFIG_BUG=y +CONFIG_ELF_CORE=y +CONFIG_BASE_FULL=y +CONFIG_FUTEX=y +CONFIG_EPOLL=y +CONFIG_SIGNALFD=y +CONFIG_TIMERFD=y +CONFIG_EVENTFD=y +CONFIG_SHMEM=y +CONFIG_AIO=y +CONFIG_VM_EVENT_COUNTERS=y +CONFIG_PCI_QUIRKS=y +# CONFIG_SLUB_DEBUG is not set +CONFIG_COMPAT_BRK=y +# CONFIG_SLAB is not set +CONFIG_SLUB=y +# CONFIG_SLOB is not set +# CONFIG_PROFILING is not set +# CONFIG_MARKERS is not set +CONFIG_HAVE_OPROFILE=y +# CONFIG_KPROBES is not set +CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y +CONFIG_HAVE_IOREMAP_PROT=y +CONFIG_HAVE_KPROBES=y +CONFIG_HAVE_KRETPROBES=y +CONFIG_HAVE_ARCH_TRACEHOOK=y +CONFIG_HAVE_CLK=y +# CONFIG_SLOW_WORK is not set +# CONFIG_HAVE_GENERIC_DMA_COHERENT is not set +CONFIG_RT_MUTEXES=y +CONFIG_BASE_SMALL=0 +CONFIG_MODULES=y +# CONFIG_MODULE_FORCE_LOAD is not set +CONFIG_MODULE_UNLOAD=y +# CONFIG_MODULE_FORCE_UNLOAD is not set +# CONFIG_MODVERSIONS is not set +# CONFIG_MODULE_SRCVERSION_ALL is not set +CONFIG_BLOCK=y +# CONFIG_LBD is not set +# CONFIG_BLK_DEV_BSG is not set +# CONFIG_BLK_DEV_INTEGRITY is not set + +# +# IO Schedulers +# +CONFIG_IOSCHED_NOOP=y +CONFIG_IOSCHED_AS=y +CONFIG_IOSCHED_DEADLINE=y +CONFIG_IOSCHED_CFQ=y +CONFIG_DEFAULT_AS=y +# CONFIG_DEFAULT_DEADLINE is not set +# CONFIG_DEFAULT_CFQ is not set +# CONFIG_DEFAULT_NOOP is not set +CONFIG_DEFAULT_IOSCHED="anticipatory" +# CONFIG_FREEZER is not set + +# +# Platform support +# +# CONFIG_PPC_CHRP is not set +CONFIG_PPC_MPC512x=y +CONFIG_PPC_MPC5121=y +CONFIG_ARIA=y +# CONFIG_MPC5121_ADS is not set +# CONFIG_MPC5121_GENERIC is not set +# CONFIG_PPC_MPC52xx is not set +# CONFIG_PPC_PMAC is not set +# CONFIG_PPC_CELL is not set +# CONFIG_PPC_CELL_NATIVE is not set +# CONFIG_PPC_82xx is not set +# CONFIG_PQ2ADS is not set +# CONFIG_PPC_83xx is not set +# CONFIG_PPC_86xx is not set +# CONFIG_EMBEDDED6xx is not set +# CONFIG_AMIGAONE is not set +CONFIG_PPC_OF_BOOT_TRAMPOLINE=y +CONFIG_IPIC=y +# CONFIG_MPIC is not set +# CONFIG_MPIC_WEIRD is not set +# CONFIG_PPC_I8259 is not set +# CONFIG_PPC_RTAS is not set +# CONFIG_MMIO_NVRAM is not set +# CONFIG_PPC_MPC106 is not set +# CONFIG_PPC_970_NAP is not set +# CONFIG_PPC_INDIRECT_IO is not set +# CONFIG_GENERIC_IOMAP is not set +# CONFIG_CPU_FREQ is not set +# CONFIG_TAU is not set +# CONFIG_QUICC_ENGINE is not set +# CONFIG_FSL_ULI1575 is not set +# CONFIG_SIMPLE_GPIO is not set + +# +# Kernel options +# +# CONFIG_HIGHMEM is not set +CONFIG_TICK_ONESHOT=y +CONFIG_NO_HZ=y +CONFIG_HIGH_RES_TIMERS=y +CONFIG_GENERIC_CLOCKEVENTS_BUILD=y +CONFIG_HZ_100=y +# CONFIG_HZ_250 is not set +# CONFIG_HZ_300 is not set +# CONFIG_HZ_1000 is not set +CONFIG_HZ=100 +CONFIG_SCHED_HRTICK=y +CONFIG_PREEMPT_NONE=y +# CONFIG_PREEMPT_VOLUNTARY is not set +# CONFIG_PREEMPT is not set +CONFIG_BINFMT_ELF=y +CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y +# CONFIG_HAVE_AOUT is not set +# CONFIG_BINFMT_MISC is not set +# CONFIG_IOMMU_HELPER is not set +CONFIG_PPC_NEED_DMA_SYNC_OPS=y +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 +CONFIG_FLATMEM_MANUAL=y +# CONFIG_DISCONTIGMEM_MANUAL is not set +# CONFIG_SPARSEMEM_MANUAL is not set +CONFIG_FLATMEM=y +CONFIG_FLAT_NODE_MEM_MAP=y +CONFIG_PAGEFLAGS_EXTENDED=y +CONFIG_SPLIT_PTLOCK_CPUS=4 +# CONFIG_MIGRATION 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_HAVE_MLOCK=y +CONFIG_HAVE_MLOCKED_PAGE_BIT=y +CONFIG_PPC_4K_PAGES=y +# CONFIG_PPC_16K_PAGES is not set +# CONFIG_PPC_64K_PAGES is not set +# CONFIG_PPC_256K_PAGES is not set +CONFIG_FORCE_MAX_ZONEORDER=11 +CONFIG_PROC_DEVICETREE=y +# CONFIG_CMDLINE_BOOL is not set +CONFIG_EXTRA_TARGETS="" +# CONFIG_PM is not set +# CONFIG_SECCOMP is not set +CONFIG_ISA_DMA_API=y + +# +# Bus options +# +CONFIG_ZONE_DMA=y +CONFIG_GENERIC_ISA_DMA=y +CONFIG_PPC_INDIRECT_PCI=y +CONFIG_FSL_SOC=y +CONFIG_FSL_PCI=y +CONFIG_PPC_PCI_CHOICE=y +CONFIG_PCI=y +CONFIG_PCI_DOMAINS=y +CONFIG_PCI_SYSCALL=y +# CONFIG_PCIEPORTBUS is not set +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_PCI_IOV is not set +# CONFIG_PCCARD is not set +# CONFIG_HOTPLUG_PCI is not set +# CONFIG_HAS_RAPIDIO is not set + +# +# Advanced setup +# +CONFIG_ADVANCED_OPTIONS=y +# CONFIG_LOWMEM_SIZE_BOOL is not set +CONFIG_LOWMEM_SIZE=0x30000000 +# CONFIG_PAGE_OFFSET_BOOL is not set +CONFIG_PAGE_OFFSET=0xc0000000 +# CONFIG_KERNEL_START_BOOL is not set +CONFIG_KERNEL_START=0xc0000000 +CONFIG_PHYSICAL_START=0x00000000 +# CONFIG_TASK_SIZE_BOOL is not set +CONFIG_TASK_SIZE=0xc0000000 +CONFIG_NET=y + +# +# Networking options +# +CONFIG_PACKET=y +# CONFIG_PACKET_MMAP is not set +CONFIG_UNIX=y +CONFIG_XFRM=y +CONFIG_XFRM_USER=m +# CONFIG_XFRM_SUB_POLICY is not set +# CONFIG_XFRM_MIGRATE is not set +# CONFIG_XFRM_STATISTICS is not set +# CONFIG_NET_KEY is not set +CONFIG_INET=y +CONFIG_IP_MULTICAST=y +# CONFIG_IP_ADVANCED_ROUTER is not set +CONFIG_IP_FIB_HASH=y +CONFIG_IP_PNP=y +CONFIG_IP_PNP_DHCP=y +CONFIG_IP_PNP_BOOTP=y +# CONFIG_IP_PNP_RARP is not set +# CONFIG_NET_IPIP is not set +# CONFIG_NET_IPGRE is not set +# CONFIG_IP_MROUTE is not set +# CONFIG_ARPD is not set +CONFIG_SYN_COOKIES=y +# CONFIG_INET_AH is not set +# CONFIG_INET_ESP is not set +# CONFIG_INET_IPCOMP is not set +# CONFIG_INET_XFRM_TUNNEL is not set +# CONFIG_INET_TUNNEL is not set +CONFIG_INET_XFRM_MODE_TRANSPORT=y +CONFIG_INET_XFRM_MODE_TUNNEL=y +CONFIG_INET_XFRM_MODE_BEET=y +# CONFIG_INET_LRO is not set +CONFIG_INET_DIAG=y +CONFIG_INET_TCP_DIAG=y +# CONFIG_TCP_CONG_ADVANCED is not set +CONFIG_TCP_CONG_CUBIC=y +CONFIG_DEFAULT_TCP_CONG="cubic" +# CONFIG_TCP_MD5SIG is not set +# CONFIG_IPV6 is not set +# CONFIG_NETWORK_SECMARK is not set +# CONFIG_NETFILTER is not set +# CONFIG_IP_DCCP is not set +# CONFIG_IP_SCTP is not set +# CONFIG_TIPC is not set +# CONFIG_ATM is not set +# CONFIG_BRIDGE is not set +# CONFIG_NET_DSA is not set +# CONFIG_VLAN_8021Q is not set +# CONFIG_DECNET is not set +# CONFIG_LLC2 is not set +# CONFIG_IPX is not set +# CONFIG_ATALK is not set +# CONFIG_X25 is not set +# CONFIG_LAPB is not set +# CONFIG_ECONET is not set +# CONFIG_WAN_ROUTER is not set +# CONFIG_PHONET is not set +# CONFIG_NET_SCHED is not set +# CONFIG_DCB is not set + +# +# Network testing +# +# CONFIG_NET_PKTGEN is not set +# CONFIG_HAMRADIO is not set +# CONFIG_CAN is not set +# CONFIG_IRDA is not set +# CONFIG_BT is not set +# CONFIG_AF_RXRPC is not set +# CONFIG_WIRELESS is not set +# CONFIG_WIMAX is not set +# CONFIG_RFKILL is not set +# CONFIG_NET_9P is not set + +# +# Device Drivers +# + +# +# Generic Driver Options +# +CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" +CONFIG_STANDALONE=y +CONFIG_PREVENT_FIRMWARE_BUILD=y +# CONFIG_FW_LOADER is not set +# CONFIG_DEBUG_DRIVER is not set +# CONFIG_DEBUG_DEVRES is not set +# CONFIG_SYS_HYPERVISOR is not set +# CONFIG_CONNECTOR is not set +CONFIG_MTD=y +# CONFIG_MTD_DEBUG is not set +# CONFIG_MTD_CONCAT is not set +CONFIG_MTD_PARTITIONS=y +# CONFIG_MTD_TESTS is not set +# CONFIG_MTD_REDBOOT_PARTS is not set +# CONFIG_MTD_CMDLINE_PARTS is not set +CONFIG_MTD_OF_PARTS=y +# CONFIG_MTD_AR7_PARTS is not set + +# +# User Modules And Translation Layers +# +CONFIG_MTD_CHAR=y +CONFIG_MTD_BLKDEVS=y +CONFIG_MTD_BLOCK=y +# 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_OOPS is not set + +# +# RAM/ROM/Flash chip drivers +# +CONFIG_MTD_CFI=y +CONFIG_MTD_JEDECPROBE=y +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 is not set +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=y +# CONFIG_MTD_CFI_I4 is not set +# CONFIG_MTD_CFI_I8 is not set +# CONFIG_MTD_OTP is not set +CONFIG_MTD_CFI_INTELEXT=y +CONFIG_MTD_CFI_AMDSTD=y +CONFIG_MTD_CFI_STAA=y +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_COMPAT is not set +CONFIG_MTD_PHYSMAP_OF=y +# CONFIG_MTD_INTEL_VR_NOR is not set +# CONFIG_MTD_PLATRAM is not set + +# +# Self-contained MTD device drivers +# +# CONFIG_MTD_PMC551 is not set +# 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 is not set +# CONFIG_MTD_NAND_ECC_SMC is not set +# CONFIG_MTD_NAND_MUSEUM_IDS is not set +CONFIG_MTD_NAND_IDS=y +# CONFIG_MTD_NAND_DISKONCHIP is not set +# CONFIG_MTD_NAND_CAFE is not set +# CONFIG_MTD_NAND_NANDSIM is not set +# CONFIG_MTD_NAND_PLATFORM is not set +# CONFIG_MTD_ALAUDA is not set +# CONFIG_MTD_NAND_FSL_ELBC is not set +CONFIG_MTD_NAND_MPC5121_NFC=y +# CONFIG_MTD_ONENAND is not set + +# +# LPDDR flash memory drivers +# +# CONFIG_MTD_LPDDR is not set + +# +# UBI - Unsorted block images +# +CONFIG_MTD_UBI=y +CONFIG_MTD_UBI_WL_THRESHOLD=4096 +CONFIG_MTD_UBI_BEB_RESERVE=1 +# CONFIG_MTD_UBI_GLUEBI is not set + +# +# UBI debugging options +# +# CONFIG_MTD_UBI_DEBUG is not set +CONFIG_OF_DEVICE=y +CONFIG_OF_I2C=y +# CONFIG_PARPORT is not set +CONFIG_BLK_DEV=y +# CONFIG_BLK_DEV_FD is not set +# CONFIG_BLK_CPQ_DA is not set +# CONFIG_BLK_CPQ_CISS_DA is not set +# CONFIG_BLK_DEV_DAC960 is not set +# CONFIG_BLK_DEV_UMEM is not set +# CONFIG_BLK_DEV_COW_COMMON is not set +# CONFIG_BLK_DEV_LOOP is not set +# CONFIG_BLK_DEV_NBD is not set +# CONFIG_BLK_DEV_SX8 is not set +# CONFIG_BLK_DEV_UB is not set +CONFIG_BLK_DEV_RAM=y +CONFIG_BLK_DEV_RAM_COUNT=2 +CONFIG_BLK_DEV_RAM_SIZE=8192 +# CONFIG_BLK_DEV_XIP is not set +# CONFIG_CDROM_PKTCDVD is not set +# CONFIG_ATA_OVER_ETH is not set +# CONFIG_BLK_DEV_HD is not set +# CONFIG_MISC_DEVICES is not set +CONFIG_HAVE_IDE=y +CONFIG_IDE=y + +# +# Please see Documentation/ide/ide.txt for help/info on IDE drives +# +CONFIG_IDE_ATAPI=y +# CONFIG_BLK_DEV_IDE_SATA is not set +CONFIG_IDE_GD=y +CONFIG_IDE_GD_ATA=y +# CONFIG_IDE_GD_ATAPI is not set +CONFIG_BLK_DEV_IDECD=y +CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS=y +# CONFIG_BLK_DEV_IDETAPE is not set +# CONFIG_IDE_TASK_IOCTL is not set +CONFIG_IDE_PROC_FS=y + +# +# IDE chipset support/bugfixes +# +# CONFIG_BLK_DEV_PLATFORM is not set + +# +# PCI IDE chipsets support +# +# CONFIG_BLK_DEV_GENERIC is not set +# CONFIG_BLK_DEV_OPTI621 is not set +# CONFIG_BLK_DEV_AEC62XX is not set +# CONFIG_BLK_DEV_ALI15X3 is not set +# CONFIG_BLK_DEV_AMD74XX is not set +# CONFIG_BLK_DEV_CMD64X is not set +# CONFIG_BLK_DEV_TRIFLEX is not set +# CONFIG_BLK_DEV_CS5520 is not set +# CONFIG_BLK_DEV_CS5530 is not set +# CONFIG_BLK_DEV_HPT366 is not set +# CONFIG_BLK_DEV_JMICRON is not set +# CONFIG_BLK_DEV_SC1200 is not set +# CONFIG_BLK_DEV_PIIX is not set +# CONFIG_BLK_DEV_IT8172 is not set +# CONFIG_BLK_DEV_IT8213 is not set +# CONFIG_BLK_DEV_IT821X is not set +# CONFIG_BLK_DEV_NS87415 is not set +# CONFIG_BLK_DEV_PDC202XX_OLD is not set +# CONFIG_BLK_DEV_PDC202XX_NEW is not set +# CONFIG_BLK_DEV_SVWKS is not set +# CONFIG_BLK_DEV_SIIMAGE is not set +# CONFIG_BLK_DEV_SL82C105 is not set +# CONFIG_BLK_DEV_SLC90E66 is not set +# CONFIG_BLK_DEV_TRM290 is not set +# CONFIG_BLK_DEV_VIA82CXXX is not set +# CONFIG_BLK_DEV_TC86C001 is not set +# CONFIG_BLK_DEV_IDEDMA is not set + +# +# SCSI device support +# +# CONFIG_RAID_ATTRS is not set +CONFIG_SCSI=y +CONFIG_SCSI_DMA=y +# CONFIG_SCSI_TGT is not set +# CONFIG_SCSI_NETLINK is not set +CONFIG_SCSI_PROC_FS=y + +# +# SCSI support type (disk, tape, CD-ROM) +# +CONFIG_BLK_DEV_SD=y +# CONFIG_CHR_DEV_ST is not set +# CONFIG_CHR_DEV_OSST is not set +# CONFIG_BLK_DEV_SR is not set +CONFIG_CHR_DEV_SG=y +# CONFIG_CHR_DEV_SCH is not set + +# +# Some SCSI devices (e.g. CD jukebox) support multiple LUNs +# +CONFIG_SCSI_MULTI_LUN=y +# CONFIG_SCSI_CONSTANTS is not set +# CONFIG_SCSI_LOGGING is not set +# CONFIG_SCSI_SCAN_ASYNC is not set +CONFIG_SCSI_WAIT_SCAN=m + +# +# SCSI Transports +# +# CONFIG_SCSI_SPI_ATTRS is not set +# CONFIG_SCSI_FC_ATTRS is not set +# CONFIG_SCSI_ISCSI_ATTRS is not set +# CONFIG_SCSI_SAS_LIBSAS is not set +# CONFIG_SCSI_SRP_ATTRS is not set +CONFIG_SCSI_LOWLEVEL=y +# CONFIG_ISCSI_TCP is not set +# CONFIG_BLK_DEV_3W_XXXX_RAID is not set +# CONFIG_SCSI_3W_9XXX is not set +# CONFIG_SCSI_ACARD is not set +# CONFIG_SCSI_AACRAID is not set +# CONFIG_SCSI_AIC7XXX is not set +# CONFIG_SCSI_AIC7XXX_OLD is not set +# CONFIG_SCSI_AIC79XX is not set +# CONFIG_SCSI_AIC94XX is not set +# CONFIG_SCSI_DPT_I2O is not set +# CONFIG_SCSI_ADVANSYS is not set +# CONFIG_SCSI_ARCMSR is not set +# CONFIG_MEGARAID_NEWGEN is not set +# CONFIG_MEGARAID_LEGACY is not set +# CONFIG_MEGARAID_SAS is not set +# CONFIG_SCSI_MPT2SAS is not set +# CONFIG_SCSI_HPTIOP is not set +# CONFIG_SCSI_BUSLOGIC is not set +# CONFIG_LIBFC is not set +# CONFIG_LIBFCOE 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 +# CONFIG_SCSI_GDTH is not set +# CONFIG_SCSI_IPS is not set +# CONFIG_SCSI_INITIO is not set +# CONFIG_SCSI_INIA100 is not set +# CONFIG_SCSI_MVSAS is not set +# CONFIG_SCSI_STEX is not set +# CONFIG_SCSI_SYM53C8XX_2 is not set +# CONFIG_SCSI_IPR is not set +# CONFIG_SCSI_QLOGIC_1280 is not set +# CONFIG_SCSI_QLA_FC is not set +# CONFIG_SCSI_QLA_ISCSI is not set +# CONFIG_SCSI_LPFC is not set +# CONFIG_SCSI_DC395x is not set +# CONFIG_SCSI_DC390T is not set +# CONFIG_SCSI_NSP32 is not set +# CONFIG_SCSI_DEBUG is not set +# CONFIG_SCSI_SRP is not set +# CONFIG_SCSI_DH is not set +# CONFIG_SCSI_OSD_INITIATOR is not set +CONFIG_ATA=y +# CONFIG_ATA_NONSTANDARD is not set +CONFIG_SATA_PMP=y +# CONFIG_SATA_AHCI is not set +# CONFIG_SATA_SIL24 is not set +# CONFIG_SATA_FSL is not set +CONFIG_ATA_SFF=y +# CONFIG_SATA_SVW is not set +# CONFIG_ATA_PIIX is not set +# CONFIG_SATA_MV is not set +# CONFIG_SATA_NV is not set +# CONFIG_PDC_ADMA is not set +# CONFIG_SATA_QSTOR is not set +# CONFIG_SATA_PROMISE is not set +# CONFIG_SATA_SX4 is not set +# CONFIG_SATA_SIL is not set +# CONFIG_SATA_SIS is not set +# CONFIG_SATA_ULI is not set +# CONFIG_SATA_VIA is not set +# CONFIG_SATA_VITESSE is not set +# CONFIG_SATA_INIC162X is not set +# CONFIG_PATA_ALI is not set +# CONFIG_PATA_AMD is not set +# CONFIG_PATA_ARTOP is not set +# CONFIG_PATA_ATIIXP is not set +# CONFIG_PATA_CMD640_PCI is not set +# CONFIG_PATA_CMD64X is not set +# CONFIG_PATA_CS5520 is not set +# CONFIG_PATA_CS5530 is not set +# CONFIG_PATA_CYPRESS is not set +# CONFIG_PATA_EFAR is not set +# CONFIG_ATA_GENERIC is not set +# CONFIG_PATA_HPT366 is not set +# CONFIG_PATA_HPT37X is not set +# CONFIG_PATA_HPT3X2N is not set +# CONFIG_PATA_HPT3X3 is not set +# CONFIG_PATA_IT821X is not set +# CONFIG_PATA_IT8213 is not set +# CONFIG_PATA_JMICRON is not set +# CONFIG_PATA_TRIFLEX is not set +# CONFIG_PATA_MARVELL is not set +# CONFIG_PATA_MPIIX is not set +# CONFIG_PATA_OLDPIIX is not set +# CONFIG_PATA_NETCELL is not set +# CONFIG_PATA_NINJA32 is not set +# CONFIG_PATA_NS87410 is not set +# CONFIG_PATA_NS87415 is not set +# CONFIG_PATA_OPTI is not set +# CONFIG_PATA_OPTIDMA is not set +# CONFIG_PATA_PDC_OLD is not set +# CONFIG_PATA_RADISYS is not set +# CONFIG_PATA_RZ1000 is not set +# CONFIG_PATA_SC1200 is not set +# CONFIG_PATA_SERVERWORKS is not set +# CONFIG_PATA_PDC2027X is not set +# CONFIG_PATA_SIL680 is not set +# CONFIG_PATA_SIS is not set +# CONFIG_PATA_VIA is not set +# CONFIG_PATA_WINBOND is not set +CONFIG_PATA_PLATFORM=y +CONFIG_PATA_OF_PLATFORM=y +# CONFIG_PATA_SCH is not set +# CONFIG_MD is not set +# CONFIG_FUSION is not set + +# +# IEEE 1394 (FireWire) support +# + +# +# Enable only one of the two stacks, unless you know what you are doing +# +# CONFIG_FIREWIRE is not set +# CONFIG_IEEE1394 is not set +# CONFIG_I2O is not set +# CONFIG_MACINTOSH_DRIVERS is not set +CONFIG_NETDEVICES=y +CONFIG_COMPAT_NET_DEV_OPS=y +# CONFIG_DUMMY is not set +# CONFIG_BONDING is not set +# CONFIG_MACVLAN is not set +# CONFIG_EQUALIZER is not set +# CONFIG_TUN is not set +# CONFIG_VETH is not set +# CONFIG_ARCNET is not set +CONFIG_PHYLIB=y + +# +# MII PHY device drivers +# +# 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_CICADA_PHY is not set +# CONFIG_VITESSE_PHY is not set +CONFIG_SMSC_PHY=y +# 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 +CONFIG_MII=y +# CONFIG_HAPPYMEAL is not set +# CONFIG_SUNGEM is not set +# CONFIG_CASSINI is not set +# CONFIG_NET_VENDOR_3COM is not set +# CONFIG_ETHOC is not set +# CONFIG_DNET is not set +# CONFIG_NET_TULIP is not set +# CONFIG_HP100 is not set +# CONFIG_IBM_NEW_EMAC_ZMII is not set +# CONFIG_IBM_NEW_EMAC_RGMII is not set +# CONFIG_IBM_NEW_EMAC_TAH is not set +# CONFIG_IBM_NEW_EMAC_EMAC4 is not set +# CONFIG_IBM_NEW_EMAC_NO_FLOW_CTRL is not set +# CONFIG_IBM_NEW_EMAC_MAL_CLR_ICINTSTAT is not set +# CONFIG_IBM_NEW_EMAC_MAL_COMMON_ERR is not set +# CONFIG_NET_PCI is not set +# CONFIG_B44 is not set +# CONFIG_ATL2 is not set +CONFIG_FS_ENET=y +CONFIG_FS_ENET_MPC5121_FEC=y +CONFIG_FS_ENET_FEC_TX_ALIGN_WORKAROUND=y +CONFIG_FS_ENET_HAS_FEC=y +CONFIG_FS_ENET_MDIO_FEC=y +# CONFIG_NETDEV_1000 is not set +# CONFIG_NETDEV_10000 is not set +# CONFIG_TR is not set + +# +# Wireless LAN +# +# CONFIG_WLAN_PRE80211 is not set +# CONFIG_WLAN_80211 is not set + +# +# Enable WiMAX (Networking options) to see the WiMAX drivers +# + +# +# USB Network Adapters +# +# CONFIG_USB_CATC is not set +CONFIG_USB_KAWETH=m +CONFIG_USB_PEGASUS=m +CONFIG_USB_RTL8150=m +CONFIG_USB_USBNET=m +CONFIG_USB_NET_AX8817X=m +CONFIG_USB_NET_CDCETHER=m +# CONFIG_USB_NET_DM9601 is not set +# CONFIG_USB_NET_SMSC95XX is not set +# CONFIG_USB_NET_GL620A is not set +# CONFIG_USB_NET_NET1080 is not set +# CONFIG_USB_NET_PLUSB is not set +# CONFIG_USB_NET_MCS7830 is not set +# CONFIG_USB_NET_RNDIS_HOST is not set +# CONFIG_USB_NET_CDC_SUBSET is not set +# CONFIG_USB_NET_ZAURUS is not set +# CONFIG_WAN is not set +# CONFIG_FDDI is not set +# CONFIG_HIPPI is not set +# CONFIG_PPP is not set +# CONFIG_SLIP is not set +# CONFIG_NET_FC is not set +# CONFIG_NETCONSOLE is not set +# CONFIG_NETPOLL is not set +# CONFIG_NET_POLL_CONTROLLER is not set +# CONFIG_ISDN is not set +# CONFIG_PHONE is not set + +# +# Input device support +# +CONFIG_INPUT=y +# CONFIG_INPUT_FF_MEMLESS is not set +# CONFIG_INPUT_POLLDEV is not set + +# +# Userland interfaces +# +CONFIG_INPUT_MOUSEDEV=y +# CONFIG_INPUT_MOUSEDEV_PSAUX is not set +CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 +CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 +# CONFIG_INPUT_JOYDEV is not set +CONFIG_INPUT_EVDEV=y +# CONFIG_INPUT_EVBUG is not set + +# +# Input Device Drivers +# +CONFIG_INPUT_KEYBOARD=y +# CONFIG_KEYBOARD_ATKBD is not set +# CONFIG_KEYBOARD_SUNKBD is not set +# CONFIG_KEYBOARD_LKKBD is not set +# CONFIG_KEYBOARD_XTKBD is not set +# CONFIG_KEYBOARD_NEWTON is not set +# CONFIG_KEYBOARD_STOWAWAY is not set +# CONFIG_INPUT_MOUSE is not set +# CONFIG_INPUT_JOYSTICK is not set +# CONFIG_INPUT_TABLET is not set +# CONFIG_INPUT_TOUCHSCREEN is not set +# CONFIG_INPUT_MISC is not set + +# +# Hardware I/O ports +# +CONFIG_SERIO=y +CONFIG_SERIO_I8042=y +CONFIG_SERIO_SERPORT=y +# CONFIG_SERIO_PCIPS2 is not set +CONFIG_SERIO_LIBPS2=y +# CONFIG_SERIO_RAW is not set +# CONFIG_SERIO_XILINX_XPS_PS2 is not set +# CONFIG_GAMEPORT is not set + +# +# Character devices +# +CONFIG_VT=y +CONFIG_CONSOLE_TRANSLATIONS=y +CONFIG_VT_CONSOLE=y +CONFIG_HW_CONSOLE=y +# CONFIG_VT_HW_CONSOLE_BINDING is not set +CONFIG_DEVKMEM=y +# CONFIG_SERIAL_NONSTANDARD is not set +# CONFIG_NOZOMI is not set + +# +# Serial drivers +# +# CONFIG_SERIAL_8250 is not set + +# +# Non-8250 serial port support +# +# CONFIG_SERIAL_UARTLITE is not set +CONFIG_SERIAL_CORE=y +CONFIG_SERIAL_CORE_CONSOLE=y +CONFIG_SERIAL_MPC52xx=y +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_UDBG is not set +# CONFIG_IPMI_HANDLER is not set +# CONFIG_HW_RANDOM is not set +# CONFIG_NVRAM is not set +# CONFIG_R3964 is not set +# CONFIG_APPLICOM is not set +# CONFIG_RAW_DRIVER is not set +# CONFIG_TCG_TPM is not set +CONFIG_DEVPORT=y +CONFIG_I2C=y +CONFIG_I2C_BOARDINFO=y +CONFIG_I2C_CHARDEV=y +CONFIG_I2C_HELPER_AUTO=y + +# +# I2C Hardware Bus support +# + +# +# PC SMBus host controller drivers +# +# CONFIG_I2C_ALI1535 is not set +# CONFIG_I2C_ALI1563 is not set +# CONFIG_I2C_ALI15X3 is not set +# CONFIG_I2C_AMD756 is not set +# CONFIG_I2C_AMD8111 is not set +# CONFIG_I2C_I801 is not set +# CONFIG_I2C_ISCH is not set +# CONFIG_I2C_PIIX4 is not set +# CONFIG_I2C_NFORCE2 is not set +# CONFIG_I2C_SIS5595 is not set +# CONFIG_I2C_SIS630 is not set +# CONFIG_I2C_SIS96X is not set +# CONFIG_I2C_VIA is not set +# CONFIG_I2C_VIAPRO is not set + +# +# I2C system bus drivers (mostly embedded / system-on-chip) +# +CONFIG_I2C_MPC=y +# CONFIG_I2C_OCORES is not set +# CONFIG_I2C_SIMTEC is not set + +# +# External I2C/SMBus adapter drivers +# +# CONFIG_I2C_PARPORT_LIGHT is not set +# CONFIG_I2C_TAOS_EVM is not set +# CONFIG_I2C_TINY_USB is not set + +# +# Graphics adapter I2C/DDC channel drivers +# +# CONFIG_I2C_VOODOO3 is not set + +# +# Other I2C/SMBus bus drivers +# +# CONFIG_I2C_PCA_PLATFORM is not set +# CONFIG_I2C_STUB is not set + +# +# Miscellaneous I2C Chip support +# +# CONFIG_DS1682 is not set +# CONFIG_SENSORS_PCF8574 is not set +# CONFIG_PCF8575 is not set +# CONFIG_SENSORS_PCA9539 is not set +# CONFIG_SENSORS_MAX6875 is not set +# CONFIG_SENSORS_TSL2550 is not set +# CONFIG_I2C_DEBUG_CORE is not set +# CONFIG_I2C_DEBUG_ALGO is not set +# CONFIG_I2C_DEBUG_BUS is not set +# CONFIG_I2C_DEBUG_CHIP is not set +# CONFIG_SPI is not set +CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y +# CONFIG_GPIOLIB is not set +# CONFIG_W1 is not set +# CONFIG_POWER_SUPPLY is not set +# CONFIG_HWMON is not set +# CONFIG_THERMAL is not set +# CONFIG_THERMAL_HWMON is not set +# CONFIG_WATCHDOG is not set +CONFIG_SSB_POSSIBLE=y + +# +# Sonics Silicon Backplane +# +# CONFIG_SSB is not set + +# +# Multifunction device drivers +# +# 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 + +# +# Multimedia devices +# + +# +# Multimedia core support +# +# CONFIG_VIDEO_DEV is not set +# CONFIG_DVB_CORE is not set +# CONFIG_VIDEO_MEDIA is not set + +# +# Multimedia drivers +# +CONFIG_DAB=y +# CONFIG_USB_DABUSB is not set + +# +# Graphics support +# +# CONFIG_AGP is not set +# CONFIG_DRM is not set +# CONFIG_VGASTATE is not set +# CONFIG_VIDEO_OUTPUT_CONTROL is not set +CONFIG_FB=y +# CONFIG_FIRMWARE_EDID is not set +# CONFIG_FB_DDC is not set +# CONFIG_FB_BOOT_VESA_SUPPORT is not set +# CONFIG_FB_CFB_FILLRECT is not set +# CONFIG_FB_CFB_COPYAREA is not set +# CONFIG_FB_CFB_IMAGEBLIT is not set +# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set +# CONFIG_FB_SYS_FILLRECT is not set +# CONFIG_FB_SYS_COPYAREA is not set +# CONFIG_FB_SYS_IMAGEBLIT is not set +# CONFIG_FB_FOREIGN_ENDIAN is not set +# CONFIG_FB_SYS_FOPS is not set +# CONFIG_FB_SVGALIB is not set +# CONFIG_FB_MACMODES is not set +# CONFIG_FB_BACKLIGHT is not set +# CONFIG_FB_MODE_HELPERS is not set +# CONFIG_FB_TILEBLITTING is not set + +# +# Frame buffer hardware drivers +# +# CONFIG_FB_CIRRUS is not set +# CONFIG_FB_PM2 is not set +# CONFIG_FB_CYBER2000 is not set +# CONFIG_FB_OF is not set +# CONFIG_FB_CT65550 is not set +# CONFIG_FB_ASILIANT is not set +# CONFIG_FB_IMSTT is not set +# CONFIG_FB_VGA16 is not set +# CONFIG_FB_S1D13XXX is not set +# CONFIG_FB_NVIDIA is not set +# CONFIG_FB_RIVA is not set +# CONFIG_FB_MATROX is not set +# CONFIG_FB_RADEON is not set +# CONFIG_FB_ATY128 is not set +# CONFIG_FB_ATY is not set +# CONFIG_FB_S3 is not set +# CONFIG_FB_SAVAGE is not set +# CONFIG_FB_SIS is not set +# CONFIG_FB_VIA is not set +# CONFIG_FB_NEOMAGIC is not set +# CONFIG_FB_KYRO is not set +# CONFIG_FB_3DFX is not set +# CONFIG_FB_VOODOO1 is not set +# CONFIG_FB_VT8623 is not set +# CONFIG_FB_TRIDENT is not set +# CONFIG_FB_ARK is not set +# CONFIG_FB_PM3 is not set +# CONFIG_FB_CARMINE is not set +# CONFIG_FB_FSL_DIU is not set +# CONFIG_FB_IBM_GXT4500 is not set +# CONFIG_FB_VIRTUAL is not set +# CONFIG_FB_METRONOME is not set +# CONFIG_FB_MB862XX is not set +# CONFIG_FB_BROADSHEET is not set +# CONFIG_BACKLIGHT_LCD_SUPPORT is not set + +# +# Display device support +# +CONFIG_DISPLAY_SUPPORT=y + +# +# Display hardware drivers +# + +# +# Console display driver support +# +CONFIG_VGA_CONSOLE=y +CONFIG_VGACON_SOFT_SCROLLBACK=y +CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=64 +CONFIG_DUMMY_CONSOLE=y +CONFIG_FRAMEBUFFER_CONSOLE=y +# CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set +# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set +# CONFIG_FONTS is not set +CONFIG_FONT_8x8=y +CONFIG_FONT_8x16=y +CONFIG_LOGO=y +CONFIG_LOGO_LINUX_MONO=y +CONFIG_LOGO_LINUX_VGA16=y +CONFIG_LOGO_LINUX_CLUT224=y +# CONFIG_SOUND is not set +CONFIG_HID_SUPPORT=y +CONFIG_HID=y +# CONFIG_HID_DEBUG is not set +# CONFIG_HIDRAW is not set + +# +# USB Input Devices +# +CONFIG_USB_HID=y +# CONFIG_HID_PID is not set +# CONFIG_USB_HIDDEV is not set + +# +# Special HID drivers +# +# CONFIG_HID_A4TECH is not set +# CONFIG_HID_APPLE is not set +# CONFIG_HID_BELKIN is not set +# CONFIG_HID_CHERRY is not set +# CONFIG_HID_CHICONY is not set +# CONFIG_HID_CYPRESS is not set +# CONFIG_DRAGONRISE_FF is not set +# CONFIG_HID_EZKEY is not set +# CONFIG_HID_KYE is not set +# CONFIG_HID_GYRATION is not set +# CONFIG_HID_KENSINGTON 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 +CONFIG_USB_ARCH_HAS_HCD=y +CONFIG_USB_ARCH_HAS_OHCI=y +CONFIG_USB_ARCH_HAS_EHCI=y +CONFIG_USB=y +# CONFIG_USB_DEBUG is not set +# CONFIG_USB_ANNOUNCE_NEW_DEVICES is not set + +# +# Miscellaneous USB options +# +CONFIG_USB_DEVICEFS=y +# CONFIG_USB_DEVICE_CLASS is not set +# CONFIG_USB_DYNAMIC_MINORS is not set +# CONFIG_USB_OTG is not set +# CONFIG_USB_OTG_WHITELIST is not set +# CONFIG_USB_OTG_BLACKLIST_HUB is not set +# CONFIG_USB_MON is not set +# CONFIG_USB_WUSB is not set +# CONFIG_USB_WUSB_CBAF is not set + +# +# USB Host Controller Drivers +# +# CONFIG_USB_C67X00_HCD is not set +CONFIG_USB_EHCI_HCD=y +CONFIG_USB_EHCI_ROOT_HUB_TT=y +# CONFIG_USB_EHCI_TT_NEWSCHED is not set +# CONFIG_USB_EHCI_FSL is not set +CONFIG_USB_EHCI_HCD_PPC_OF=y +# 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 is not set +# CONFIG_USB_UHCI_HCD is not set +# CONFIG_USB_SL811_HCD is not set +# CONFIG_USB_R8A66597_HCD is not set +# CONFIG_USB_WHCI_HCD is not set +# CONFIG_USB_HWA_HCD is not set +# CONFIG_USB_MUSB_HDRC is not set +# CONFIG_USB_GADGET_MUSB_HDRC is not set + +# +# USB Device Class drivers +# +# CONFIG_USB_ACM is not set +# CONFIG_USB_PRINTER is not set +# CONFIG_USB_WDM is not set +# CONFIG_USB_TMC is not set + +# +# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may +# + +# +# also be needed; see USB_STORAGE Help for more info +# +CONFIG_USB_STORAGE=y +CONFIG_USB_STORAGE_DEBUG=y +# CONFIG_USB_STORAGE_DATAFAB is not set +# CONFIG_USB_STORAGE_FREECOM is not set +# CONFIG_USB_STORAGE_ISD200 is not set +# CONFIG_USB_STORAGE_USBAT is not set +# CONFIG_USB_STORAGE_SDDR09 is not set +# CONFIG_USB_STORAGE_SDDR55 is not set +# CONFIG_USB_STORAGE_JUMPSHOT is not set +# CONFIG_USB_STORAGE_ALAUDA is not set +# CONFIG_USB_STORAGE_ONETOUCH is not set +# CONFIG_USB_STORAGE_KARMA is not set +# CONFIG_USB_STORAGE_CYPRESS_ATACB is not set +# CONFIG_USB_LIBUSUAL is not set + +# +# USB Imaging devices +# +# CONFIG_USB_MDC800 is not set +# CONFIG_USB_MICROTEK is not set + +# +# USB port drivers +# +# CONFIG_USB_SERIAL is not set + +# +# USB Miscellaneous drivers +# +# CONFIG_USB_EMI62 is not set +# CONFIG_USB_EMI26 is not set +# CONFIG_USB_ADUTUX is not set +# CONFIG_USB_SEVSEG is not set +# CONFIG_USB_RIO500 is not set +# CONFIG_USB_LEGOTOWER is not set +# CONFIG_USB_LCD is not set +# CONFIG_USB_BERRY_CHARGE is not set +# CONFIG_USB_LED is not set +# CONFIG_USB_CYPRESS_CY7C63 is not set +# CONFIG_USB_CYTHERM is not set +# CONFIG_USB_IDMOUSE is not set +# CONFIG_USB_FTDI_ELAN is not set +# CONFIG_USB_APPLEDISPLAY is not set +# CONFIG_USB_SISUSBVGA is not set +# CONFIG_USB_LD is not set +# CONFIG_USB_TRANCEVIBRATOR is not set +# CONFIG_USB_IOWARRIOR is not set +# CONFIG_USB_TEST is not set +# CONFIG_USB_ISIGHTFW is not set +# CONFIG_USB_VST is not set +CONFIG_USB_GADGET=y +# CONFIG_USB_GADGET_DEBUG is not set +# CONFIG_USB_GADGET_DEBUG_FILES is not set +# CONFIG_USB_GADGET_DEBUG_FS is not set +CONFIG_USB_GADGET_VBUS_DRAW=2 +CONFIG_USB_GADGET_SELECTED=y +# CONFIG_USB_GADGET_AT91 is not set +# CONFIG_USB_GADGET_ATMEL_USBA is not set +# CONFIG_USB_GADGET_FSL_USB2 is not set +# CONFIG_USB_GADGET_LH7A40X is not set +# CONFIG_USB_GADGET_OMAP is not set +# CONFIG_USB_GADGET_PXA25X is not set +# CONFIG_USB_GADGET_PXA27X is not set +# CONFIG_USB_GADGET_S3C2410 is not set +# CONFIG_USB_GADGET_IMX is not set +CONFIG_USB_GADGET_M66592=y +CONFIG_USB_M66592=y +# CONFIG_USB_GADGET_AMD5536UDC is not set +# CONFIG_USB_GADGET_FSL_QE is not set +# CONFIG_USB_GADGET_CI13XXX is not set +# CONFIG_USB_GADGET_NET2280 is not set +# CONFIG_USB_GADGET_GOKU is not set +# CONFIG_USB_GADGET_DUMMY_HCD is not set +CONFIG_USB_GADGET_DUALSPEED=y +# CONFIG_USB_ZERO is not set +CONFIG_USB_ETH=m +CONFIG_USB_ETH_RNDIS=y +CONFIG_USB_GADGETFS=m +CONFIG_USB_FILE_STORAGE=m +# CONFIG_USB_FILE_STORAGE_TEST is not set +# CONFIG_USB_G_SERIAL is not set +# CONFIG_USB_MIDI_GADGET is not set +# CONFIG_USB_G_PRINTER is not set +# CONFIG_USB_CDC_COMPOSITE is not set + +# +# OTG and related infrastructure +# +# CONFIG_NOP_USB_XCEIV is not set +# CONFIG_UWB is not set +# CONFIG_MMC is not set +# CONFIG_MEMSTICK is not set +# CONFIG_NEW_LEDS is not set +# CONFIG_ACCESSIBILITY is not set +# CONFIG_INFINIBAND is not set +# CONFIG_EDAC 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 is not set +# 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_GENERIC is not set +CONFIG_RTC_DRV_MPC5121=y +CONFIG_DMADEVICES=y + +# +# DMA Devices +# +# CONFIG_FSL_DMA is not set +CONFIG_MPC512X_DMA=y +CONFIG_DMA_ENGINE=y + +# +# DMA Clients +# +CONFIG_NET_DMA=y +CONFIG_ASYNC_TX_DMA=y +# CONFIG_DMATEST is not set +# CONFIG_AUXDISPLAY is not set +# CONFIG_UIO is not set +# CONFIG_STAGING is not set + +# +# File systems +# +CONFIG_EXT2_FS=y +# CONFIG_EXT2_FS_XATTR is not set +# CONFIG_EXT2_FS_XIP is not set +CONFIG_EXT3_FS=y +# CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set +CONFIG_EXT3_FS_XATTR=y +# CONFIG_EXT3_FS_POSIX_ACL is not set +# CONFIG_EXT3_FS_SECURITY is not set +# CONFIG_EXT4_FS is not set +CONFIG_JBD=y +# CONFIG_JBD_DEBUG is not set +CONFIG_FS_MBCACHE=y +# CONFIG_REISERFS_FS is not set +# CONFIG_JFS_FS is not set +CONFIG_FS_POSIX_ACL=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 +# CONFIG_QUOTA is not set +# CONFIG_AUTOFS_FS is not set +# CONFIG_AUTOFS4_FS is not set +# CONFIG_FUSE_FS is not set + +# +# Caches +# +# CONFIG_FSCACHE is not set + +# +# CD-ROM/DVD Filesystems +# +# CONFIG_ISO9660_FS is not set +# CONFIG_UDF_FS is not set + +# +# DOS/FAT/NT Filesystems +# +CONFIG_FAT_FS=y +CONFIG_MSDOS_FS=y +CONFIG_VFAT_FS=y +CONFIG_FAT_DEFAULT_CODEPAGE=437 +CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" +# CONFIG_NTFS_FS is not set + +# +# Pseudo filesystems +# +CONFIG_PROC_FS=y +CONFIG_PROC_KCORE=y +CONFIG_PROC_SYSCTL=y +CONFIG_PROC_PAGE_MONITOR=y +CONFIG_SYSFS=y +CONFIG_TMPFS=y +# CONFIG_TMPFS_POSIX_ACL is not set +# CONFIG_HUGETLB_PAGE is not set +# CONFIG_CONFIGFS_FS is not set +CONFIG_MISC_FILESYSTEMS=y +# CONFIG_ADFS_FS is not set +# CONFIG_AFFS_FS is not set +# CONFIG_HFS_FS is not set +# CONFIG_HFSPLUS_FS is not set +# CONFIG_BEFS_FS is not set +# CONFIG_BFS_FS is not set +# CONFIG_EFS_FS is not set +CONFIG_JFFS2_FS=y +CONFIG_JFFS2_FS_DEBUG=0 +CONFIG_JFFS2_FS_WRITEBUFFER=y +# CONFIG_JFFS2_FS_WBUF_VERIFY is not set +# CONFIG_JFFS2_SUMMARY is not set +# CONFIG_JFFS2_FS_XATTR is not set +# CONFIG_JFFS2_COMPRESSION_OPTIONS is not set +CONFIG_JFFS2_ZLIB=y +# CONFIG_JFFS2_LZO is not set +CONFIG_JFFS2_RTIME=y +# CONFIG_JFFS2_RUBIN is not set +CONFIG_UBIFS_FS=y +CONFIG_UBIFS_FS_XATTR=y +CONFIG_UBIFS_FS_ADVANCED_COMPR=y +CONFIG_UBIFS_FS_LZO=y +CONFIG_UBIFS_FS_ZLIB=y +# CONFIG_UBIFS_FS_DEBUG is not set +# CONFIG_CRAMFS is not set +CONFIG_SQUASHFS=y +# CONFIG_SQUASHFS_EMBEDDED is not set +CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3 +# CONFIG_VXFS_FS is not set +# CONFIG_MINIX_FS is not set +# CONFIG_OMFS_FS is not set +# CONFIG_HPFS_FS is not set +# CONFIG_QNX4FS_FS is not set +# CONFIG_ROMFS_FS is not set +# CONFIG_SYSV_FS is not set +# CONFIG_UFS_FS is not set +# CONFIG_NILFS2_FS is not set +CONFIG_NETWORK_FILESYSTEMS=y +CONFIG_NFS_FS=y +CONFIG_NFS_V3=y +CONFIG_NFS_V3_ACL=y +CONFIG_NFS_V4=y +CONFIG_ROOT_NFS=y +# CONFIG_NFSD is not set +CONFIG_LOCKD=y +CONFIG_LOCKD_V4=y +CONFIG_NFS_ACL_SUPPORT=y +CONFIG_NFS_COMMON=y +CONFIG_SUNRPC=y +CONFIG_SUNRPC_GSS=y +CONFIG_RPCSEC_GSS_KRB5=y +# CONFIG_RPCSEC_GSS_SPKM3 is not set +# CONFIG_SMB_FS is not set +# CONFIG_CIFS is not set +# CONFIG_NCP_FS is not set +# CONFIG_CODA_FS is not set +# CONFIG_AFS_FS is not set + +# +# Partition Types +# +CONFIG_PARTITION_ADVANCED=y +# CONFIG_ACORN_PARTITION is not set +# CONFIG_OSF_PARTITION is not set +# CONFIG_AMIGA_PARTITION is not set +# CONFIG_ATARI_PARTITION is not set +# CONFIG_MAC_PARTITION is not set +CONFIG_MSDOS_PARTITION=y +# CONFIG_BSD_DISKLABEL is not set +# CONFIG_MINIX_SUBPARTITION is not set +# CONFIG_SOLARIS_X86_PARTITION is not set +# CONFIG_UNIXWARE_DISKLABEL is not set +# CONFIG_LDM_PARTITION is not set +# CONFIG_SGI_PARTITION is not set +# CONFIG_ULTRIX_PARTITION is not set +# CONFIG_SUN_PARTITION is not set +# CONFIG_KARMA_PARTITION is not set +# CONFIG_EFI_PARTITION is not set +# CONFIG_SYSV68_PARTITION is not set +CONFIG_NLS=y +CONFIG_NLS_DEFAULT="iso8859-1" +CONFIG_NLS_CODEPAGE_437=y +# CONFIG_NLS_CODEPAGE_737 is not set +# CONFIG_NLS_CODEPAGE_775 is not set +# CONFIG_NLS_CODEPAGE_850 is not set +# CONFIG_NLS_CODEPAGE_852 is not set +# CONFIG_NLS_CODEPAGE_855 is not set +# CONFIG_NLS_CODEPAGE_857 is not set +# CONFIG_NLS_CODEPAGE_860 is not set +# CONFIG_NLS_CODEPAGE_861 is not set +# CONFIG_NLS_CODEPAGE_862 is not set +# CONFIG_NLS_CODEPAGE_863 is not set +# CONFIG_NLS_CODEPAGE_864 is not set +# CONFIG_NLS_CODEPAGE_865 is not set +# CONFIG_NLS_CODEPAGE_866 is not set +# CONFIG_NLS_CODEPAGE_869 is not set +# CONFIG_NLS_CODEPAGE_936 is not set +# CONFIG_NLS_CODEPAGE_950 is not set +# CONFIG_NLS_CODEPAGE_932 is not set +# CONFIG_NLS_CODEPAGE_949 is not set +# CONFIG_NLS_CODEPAGE_874 is not set +# CONFIG_NLS_ISO8859_8 is not set +# CONFIG_NLS_CODEPAGE_1250 is not set +# CONFIG_NLS_CODEPAGE_1251 is not set +# CONFIG_NLS_ASCII is not set +CONFIG_NLS_ISO8859_1=y +# CONFIG_NLS_ISO8859_2 is not set +# CONFIG_NLS_ISO8859_3 is not set +# CONFIG_NLS_ISO8859_4 is not set +# CONFIG_NLS_ISO8859_5 is not set +# CONFIG_NLS_ISO8859_6 is not set +# CONFIG_NLS_ISO8859_7 is not set +# CONFIG_NLS_ISO8859_9 is not set +# CONFIG_NLS_ISO8859_13 is not set +# CONFIG_NLS_ISO8859_14 is not set +# CONFIG_NLS_ISO8859_15 is not set +# CONFIG_NLS_KOI8_R is not set +# CONFIG_NLS_KOI8_U is not set +# CONFIG_NLS_UTF8 is not set +# CONFIG_DLM is not set +# CONFIG_BINARY_PRINTF is not set + +# +# Library routines +# +CONFIG_BITREVERSE=y +CONFIG_GENERIC_FIND_LAST_BIT=y +# CONFIG_CRC_CCITT is not set +CONFIG_CRC16=y +# CONFIG_CRC_T10DIF is not set +# CONFIG_CRC_ITU_T is not set +CONFIG_CRC32=y +# CONFIG_CRC7 is not set +# CONFIG_LIBCRC32C is not set +CONFIG_ZLIB_INFLATE=y +CONFIG_ZLIB_DEFLATE=y +CONFIG_LZO_COMPRESS=y +CONFIG_LZO_DECOMPRESS=y +CONFIG_DECOMPRESS_GZIP=y +CONFIG_HAS_IOMEM=y +CONFIG_HAS_IOPORT=y +CONFIG_HAS_DMA=y +CONFIG_HAVE_LMB=y +CONFIG_NLATTR=y + +# +# Kernel hacking +# +CONFIG_PRINTK_TIME=y +CONFIG_ENABLE_WARN_DEPRECATED=y +CONFIG_ENABLE_MUST_CHECK=y +CONFIG_FRAME_WARN=1024 +# CONFIG_MAGIC_SYSRQ is not set +# CONFIG_UNUSED_SYMBOLS is not set +CONFIG_DEBUG_FS=y +# CONFIG_HEADERS_CHECK is not set +CONFIG_DEBUG_KERNEL=y +# CONFIG_DEBUG_SHIRQ is not set +# CONFIG_DETECT_SOFTLOCKUP is not set +# CONFIG_DETECT_HUNG_TASK is not set +CONFIG_SCHED_DEBUG=y +# CONFIG_SCHEDSTATS is not set +# CONFIG_TIMER_STATS is not set +# CONFIG_DEBUG_OBJECTS is not set +# CONFIG_DEBUG_RT_MUTEXES is not set +# CONFIG_RT_MUTEX_TESTER is not set +# CONFIG_DEBUG_SPINLOCK is not set +# CONFIG_DEBUG_MUTEXES is not set +# CONFIG_DEBUG_SPINLOCK_SLEEP is not set +# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set +# CONFIG_DEBUG_KOBJECT is not set +CONFIG_DEBUG_BUGVERBOSE=y +CONFIG_DEBUG_INFO=y +# CONFIG_DEBUG_VM is not set +# CONFIG_DEBUG_WRITECOUNT is not set +# 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 +# CONFIG_BACKTRACE_SELF_TEST is not set +# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set +# CONFIG_FAULT_INJECTION is not set +# CONFIG_LATENCYTOP is not set +# CONFIG_SYSCTL_SYSCALL_CHECK is not set +# CONFIG_DEBUG_PAGEALLOC is not set +CONFIG_HAVE_FUNCTION_TRACER=y +CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y +CONFIG_HAVE_DYNAMIC_FTRACE=y +CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y +CONFIG_TRACING_SUPPORT=y + +# +# Tracers +# +# CONFIG_FUNCTION_TRACER is not set +# CONFIG_SCHED_TRACER is not set +# CONFIG_CONTEXT_SWITCH_TRACER is not set +# CONFIG_EVENT_TRACER is not set +# CONFIG_BOOT_TRACER is not set +# CONFIG_TRACE_BRANCH_PROFILING is not set +# CONFIG_STACK_TRACER is not set +# CONFIG_KMEMTRACE is not set +# CONFIG_WORKQUEUE_TRACER is not set +# CONFIG_BLK_DEV_IO_TRACE is not set +# CONFIG_DYNAMIC_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_CODE_PATCHING_SELFTEST is not set +# CONFIG_FTR_FIXUP_SELFTEST is not set +# CONFIG_MSI_BITMAP_SELFTEST is not set +# CONFIG_XMON is not set +# CONFIG_IRQSTACKS is not set +# CONFIG_VIRQ_DEBUG is not set +# CONFIG_BDI_SWITCH is not set +CONFIG_BOOTX_TEXT=y +CONFIG_PPC_EARLY_DEBUG=y +# CONFIG_PPC_EARLY_DEBUG_LPAR is not set +# CONFIG_PPC_EARLY_DEBUG_G5 is not set +# CONFIG_PPC_EARLY_DEBUG_RTAS_PANEL is not set +# CONFIG_PPC_EARLY_DEBUG_RTAS_CONSOLE is not set +# CONFIG_PPC_EARLY_DEBUG_MAPLE is not set +# CONFIG_PPC_EARLY_DEBUG_ISERIES is not set +# CONFIG_PPC_EARLY_DEBUG_PAS_REALMODE is not set +# CONFIG_PPC_EARLY_DEBUG_BEAT is not set +# CONFIG_PPC_EARLY_DEBUG_44x is not set +# CONFIG_PPC_EARLY_DEBUG_40x is not set +# CONFIG_PPC_EARLY_DEBUG_CPM is not set + +# +# Security options +# +# CONFIG_KEYS is not set +# CONFIG_SECURITY is not set +# CONFIG_SECURITYFS is not set +# CONFIG_SECURITY_FILE_CAPABILITIES is not set +CONFIG_CRYPTO=y + +# +# Crypto core or helper +# +# CONFIG_CRYPTO_FIPS is not set +CONFIG_CRYPTO_ALGAPI=y +CONFIG_CRYPTO_ALGAPI2=y +CONFIG_CRYPTO_AEAD2=y +CONFIG_CRYPTO_BLKCIPHER=y +CONFIG_CRYPTO_BLKCIPHER2=y +CONFIG_CRYPTO_HASH=y +CONFIG_CRYPTO_HASH2=y +CONFIG_CRYPTO_RNG2=y +CONFIG_CRYPTO_PCOMP=y +CONFIG_CRYPTO_MANAGER=y +CONFIG_CRYPTO_MANAGER2=y +# CONFIG_CRYPTO_GF128MUL is not set +# CONFIG_CRYPTO_NULL is not set +CONFIG_CRYPTO_WORKQUEUE=y +# CONFIG_CRYPTO_CRYPTD is not set +# CONFIG_CRYPTO_AUTHENC is not set +# CONFIG_CRYPTO_TEST is not set + +# +# Authenticated Encryption with Associated Data +# +# CONFIG_CRYPTO_CCM is not set +# CONFIG_CRYPTO_GCM is not set +# CONFIG_CRYPTO_SEQIV is not set + +# +# Block modes +# +CONFIG_CRYPTO_CBC=y +# CONFIG_CRYPTO_CTR is not set +# CONFIG_CRYPTO_CTS is not set +# CONFIG_CRYPTO_ECB is not set +# CONFIG_CRYPTO_LRW is not set +# CONFIG_CRYPTO_PCBC is not set +# CONFIG_CRYPTO_XTS is not set + +# +# Hash modes +# +# CONFIG_CRYPTO_HMAC is not set +# CONFIG_CRYPTO_XCBC is not set + +# +# Digest +# +# CONFIG_CRYPTO_CRC32C is not set +# CONFIG_CRYPTO_MD4 is not set +CONFIG_CRYPTO_MD5=y +# CONFIG_CRYPTO_MICHAEL_MIC is not set +# CONFIG_CRYPTO_RMD128 is not set +# CONFIG_CRYPTO_RMD160 is not set +# CONFIG_CRYPTO_RMD256 is not set +# CONFIG_CRYPTO_RMD320 is not set +# CONFIG_CRYPTO_SHA1 is not set +# CONFIG_CRYPTO_SHA256 is not set +# CONFIG_CRYPTO_SHA512 is not set +# CONFIG_CRYPTO_TGR192 is not set +# CONFIG_CRYPTO_WP512 is not set + +# +# Ciphers +# +# CONFIG_CRYPTO_AES is not set +# CONFIG_CRYPTO_ANUBIS is not set +# CONFIG_CRYPTO_ARC4 is not set +# CONFIG_CRYPTO_BLOWFISH is not set +# CONFIG_CRYPTO_CAMELLIA is not set +# CONFIG_CRYPTO_CAST5 is not set +# CONFIG_CRYPTO_CAST6 is not set +CONFIG_CRYPTO_DES=y +# CONFIG_CRYPTO_FCRYPT is not set +# CONFIG_CRYPTO_KHAZAD is not set +# CONFIG_CRYPTO_SALSA20 is not set +# CONFIG_CRYPTO_SEED is not set +# CONFIG_CRYPTO_SERPENT is not set +# CONFIG_CRYPTO_TEA is not set +# CONFIG_CRYPTO_TWOFISH is not set + +# +# Compression +# +CONFIG_CRYPTO_DEFLATE=y +# CONFIG_CRYPTO_ZLIB is not set +CONFIG_CRYPTO_LZO=y + +# +# Random Number Generation +# +# CONFIG_CRYPTO_ANSI_CPRNG is not set +# CONFIG_CRYPTO_HW is not set +CONFIG_PPC_CLOCK=y +# CONFIG_VIRTUALIZATION is not set
Signature · 1 line
1.6.0.6