···11+/*22+ * Device Tree Source for AMCC Arches (dual 460GT board)33+ *44+ * (C) Copyright 2008 Applied Micro Circuits Corporation55+ * Victor Gallardo <vgallardo@amcc.com>66+ * Adam Graham <agraham@amcc.com>77+ *88+ * Based on the glacier.dts file99+ * Stefan Roese <sr@denx.de>1010+ * Copyright 2008 DENX Software Engineering1111+ *1212+ * See file CREDITS for list of people who contributed to this1313+ * project.1414+ *1515+ * This program is free software; you can redistribute it and/or1616+ * modify it under the terms of the GNU General Public License as1717+ * published by the Free Software Foundation; either version 2 of1818+ * the License, or (at your option) any later version.1919+ *2020+ * This program is distributed in the hope that it will be useful,2121+ * but WITHOUT ANY WARRANTY; without even the implied warranty of2222+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the2323+ * GNU General Public License for more details.2424+ *2525+ * You should have received a copy of the GNU General Public License2626+ * along with this program; if not, write to the Free Software2727+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,2828+ * MA 02111-1307 USA2929+ */3030+3131+/dts-v1/;3232+3333+/ {3434+ #address-cells = <2>;3535+ #size-cells = <1>;3636+ model = "amcc,arches";3737+ compatible = "amcc,arches";3838+ dcr-parent = <&{/cpus/cpu@0}>;3939+4040+ aliases {4141+ ethernet0 = &EMAC0;4242+ ethernet1 = &EMAC1;4343+ ethernet2 = &EMAC2;4444+ serial0 = &UART0;4545+ };4646+4747+ cpus {4848+ #address-cells = <1>;4949+ #size-cells = <0>;5050+5151+ cpu@0 {5252+ device_type = "cpu";5353+ model = "PowerPC,460GT";5454+ reg = <0x00000000>;5555+ clock-frequency = <0>; /* Filled in by U-Boot */5656+ timebase-frequency = <0>; /* Filled in by U-Boot */5757+ i-cache-line-size = <32>;5858+ d-cache-line-size = <32>;5959+ i-cache-size = <32768>;6060+ d-cache-size = <32768>;6161+ dcr-controller;6262+ dcr-access-method = "native";6363+ };6464+ };6565+6666+ memory {6767+ device_type = "memory";6868+ reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by U-Boot */6969+ };7070+7171+ UIC0: interrupt-controller0 {7272+ compatible = "ibm,uic-460gt","ibm,uic";7373+ interrupt-controller;7474+ cell-index = <0>;7575+ dcr-reg = <0x0c0 0x009>;7676+ #address-cells = <0>;7777+ #size-cells = <0>;7878+ #interrupt-cells = <2>;7979+ };8080+8181+ UIC1: interrupt-controller1 {8282+ compatible = "ibm,uic-460gt","ibm,uic";8383+ interrupt-controller;8484+ cell-index = <1>;8585+ dcr-reg = <0x0d0 0x009>;8686+ #address-cells = <0>;8787+ #size-cells = <0>;8888+ #interrupt-cells = <2>;8989+ interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */9090+ interrupt-parent = <&UIC0>;9191+ };9292+9393+ UIC2: interrupt-controller2 {9494+ compatible = "ibm,uic-460gt","ibm,uic";9595+ interrupt-controller;9696+ cell-index = <2>;9797+ dcr-reg = <0x0e0 0x009>;9898+ #address-cells = <0>;9999+ #size-cells = <0>;100100+ #interrupt-cells = <2>;101101+ interrupts = <0xa 0x4 0xb 0x4>; /* cascade */102102+ interrupt-parent = <&UIC0>;103103+ };104104+105105+ UIC3: interrupt-controller3 {106106+ compatible = "ibm,uic-460gt","ibm,uic";107107+ interrupt-controller;108108+ cell-index = <3>;109109+ dcr-reg = <0x0f0 0x009>;110110+ #address-cells = <0>;111111+ #size-cells = <0>;112112+ #interrupt-cells = <2>;113113+ interrupts = <0x10 0x4 0x11 0x4>; /* cascade */114114+ interrupt-parent = <&UIC0>;115115+ };116116+117117+ SDR0: sdr {118118+ compatible = "ibm,sdr-460gt";119119+ dcr-reg = <0x00e 0x002>;120120+ };121121+122122+ CPR0: cpr {123123+ compatible = "ibm,cpr-460gt";124124+ dcr-reg = <0x00c 0x002>;125125+ };126126+127127+ plb {128128+ compatible = "ibm,plb-460gt", "ibm,plb4";129129+ #address-cells = <2>;130130+ #size-cells = <1>;131131+ ranges;132132+ clock-frequency = <0>; /* Filled in by U-Boot */133133+134134+ SDRAM0: sdram {135135+ compatible = "ibm,sdram-460gt", "ibm,sdram-405gp";136136+ dcr-reg = <0x010 0x002>;137137+ };138138+139139+ MAL0: mcmal {140140+ compatible = "ibm,mcmal-460gt", "ibm,mcmal2";141141+ dcr-reg = <0x180 0x062>;142142+ num-tx-chans = <3>;143143+ num-rx-chans = <24>;144144+ #address-cells = <0>;145145+ #size-cells = <0>;146146+ interrupt-parent = <&UIC2>;147147+ interrupts = < /*TXEOB*/ 0x6 0x4148148+ /*RXEOB*/ 0x7 0x4149149+ /*SERR*/ 0x3 0x4150150+ /*TXDE*/ 0x4 0x4151151+ /*RXDE*/ 0x5 0x4>;152152+ desc-base-addr-high = <0x8>;153153+ };154154+155155+ POB0: opb {156156+ compatible = "ibm,opb-460gt", "ibm,opb";157157+ #address-cells = <1>;158158+ #size-cells = <1>;159159+ ranges = <0xb0000000 0x00000004 0xb0000000 0x50000000>;160160+ clock-frequency = <0>; /* Filled in by U-Boot */161161+162162+ EBC0: ebc {163163+ compatible = "ibm,ebc-460gt", "ibm,ebc";164164+ dcr-reg = <0x012 0x002>;165165+ #address-cells = <2>;166166+ #size-cells = <1>;167167+ clock-frequency = <0>; /* Filled in by U-Boot */168168+ /* ranges property is supplied by U-Boot */169169+ interrupts = <0x6 0x4>;170170+ interrupt-parent = <&UIC1>;171171+ };172172+173173+ UART0: serial@ef600300 {174174+ device_type = "serial";175175+ compatible = "ns16550";176176+ reg = <0xef600300 0x00000008>;177177+ virtual-reg = <0xef600300>;178178+ clock-frequency = <0>; /* Filled in by U-Boot */179179+ current-speed = <0>; /* Filled in by U-Boot */180180+ interrupt-parent = <&UIC1>;181181+ interrupts = <0x1 0x4>;182182+ };183183+184184+ IIC0: i2c@ef600700 {185185+ compatible = "ibm,iic-460gt", "ibm,iic";186186+ reg = <0xef600700 0x00000014>;187187+ interrupt-parent = <&UIC0>;188188+ interrupts = <0x2 0x4>;189189+ };190190+191191+ IIC1: i2c@ef600800 {192192+ compatible = "ibm,iic-460gt", "ibm,iic";193193+ reg = <0xef600800 0x00000014>;194194+ interrupt-parent = <&UIC0>;195195+ interrupts = <0x3 0x4>;196196+ };197197+198198+ TAH0: emac-tah@ef601350 {199199+ compatible = "ibm,tah-460gt", "ibm,tah";200200+ reg = <0xef601350 0x00000030>;201201+ };202202+203203+ TAH1: emac-tah@ef601450 {204204+ compatible = "ibm,tah-460gt", "ibm,tah";205205+ reg = <0xef601450 0x00000030>;206206+ };207207+208208+ EMAC0: ethernet@ef600e00 {209209+ device_type = "network";210210+ compatible = "ibm,emac-460gt", "ibm,emac4sync";211211+ interrupt-parent = <&EMAC0>;212212+ interrupts = <0x0 0x1>;213213+ #interrupt-cells = <1>;214214+ #address-cells = <0>;215215+ #size-cells = <0>;216216+ interrupt-map = </*Status*/ 0x0 &UIC2 0x10 0x4217217+ /*Wake*/ 0x1 &UIC2 0x14 0x4>;218218+ reg = <0xef600e00 0x000000c4>;219219+ local-mac-address = [000000000000]; /* Filled in by U-Boot */220220+ mal-device = <&MAL0>;221221+ mal-tx-channel = <0>;222222+ mal-rx-channel = <0>;223223+ cell-index = <0>;224224+ max-frame-size = <9000>;225225+ rx-fifo-size = <4096>;226226+ tx-fifo-size = <2048>;227227+ phy-mode = "sgmii";228228+ phy-map = <0xffffffff>;229229+ gpcs-address = <0x0000000a>;230230+ tah-device = <&TAH0>;231231+ tah-channel = <0>;232232+ has-inverted-stacr-oc;233233+ has-new-stacr-staopc;234234+ };235235+236236+ EMAC1: ethernet@ef600f00 {237237+ device_type = "network";238238+ compatible = "ibm,emac-460gt", "ibm,emac4sync";239239+ interrupt-parent = <&EMAC1>;240240+ interrupts = <0x0 0x1>;241241+ #interrupt-cells = <1>;242242+ #address-cells = <0>;243243+ #size-cells = <0>;244244+ interrupt-map = </*Status*/ 0x0 &UIC2 0x11 0x4245245+ /*Wake*/ 0x1 &UIC2 0x15 0x4>;246246+ reg = <0xef600f00 0x000000c4>;247247+ local-mac-address = [000000000000]; /* Filled in by U-Boot */248248+ mal-device = <&MAL0>;249249+ mal-tx-channel = <1>;250250+ mal-rx-channel = <8>;251251+ cell-index = <1>;252252+ max-frame-size = <9000>;253253+ rx-fifo-size = <4096>;254254+ tx-fifo-size = <2048>;255255+ phy-mode = "sgmii";256256+ phy-map = <0x00000000>;257257+ gpcs-address = <0x0000000b>;258258+ tah-device = <&TAH1>;259259+ tah-channel = <1>;260260+ has-inverted-stacr-oc;261261+ has-new-stacr-staopc;262262+ mdio-device = <&EMAC0>;263263+ };264264+265265+ EMAC2: ethernet@ef601100 {266266+ device_type = "network";267267+ compatible = "ibm,emac-460gt", "ibm,emac4sync";268268+ interrupt-parent = <&EMAC2>;269269+ interrupts = <0x0 0x1>;270270+ #interrupt-cells = <1>;271271+ #address-cells = <0>;272272+ #size-cells = <0>;273273+ interrupt-map = </*Status*/ 0x0 &UIC2 0x12 0x4274274+ /*Wake*/ 0x1 &UIC2 0x16 0x4>;275275+ reg = <0xef601100 0x000000c4>;276276+ local-mac-address = [000000000000]; /* Filled in by U-Boot */277277+ mal-device = <&MAL0>;278278+ mal-tx-channel = <2>;279279+ mal-rx-channel = <16>;280280+ cell-index = <2>;281281+ max-frame-size = <9000>;282282+ rx-fifo-size = <4096>;283283+ tx-fifo-size = <2048>;284284+ phy-mode = "sgmii";285285+ phy-map = <0x00000001>;286286+ gpcs-address = <0x0000000C>;287287+ has-inverted-stacr-oc;288288+ has-new-stacr-staopc;289289+ mdio-device = <&EMAC0>;290290+ };291291+ };292292+ };293293+};
+767
arch/powerpc/configs/44x/arches_defconfig
···11+#22+# Automatically generated make config: don't edit33+# Linux kernel version: 2.6.27-rc544+# Wed Oct 1 15:54:57 200855+#66+# CONFIG_PPC64 is not set77+88+#99+# Processor support1010+#1111+# CONFIG_6xx is not set1212+# CONFIG_PPC_85xx is not set1313+# CONFIG_PPC_8xx is not set1414+# CONFIG_40x is not set1515+CONFIG_44x=y1616+# CONFIG_E200 is not set1717+CONFIG_PPC_FPU=y1818+CONFIG_4xx=y1919+CONFIG_BOOKE=y2020+CONFIG_PTE_64BIT=y2121+CONFIG_PHYS_64BIT=y2222+# CONFIG_PPC_MM_SLICES is not set2323+CONFIG_NOT_COHERENT_CACHE=y2424+CONFIG_PPC32=y2525+CONFIG_WORD_SIZE=322626+CONFIG_PPC_MERGE=y2727+CONFIG_MMU=y2828+CONFIG_GENERIC_CMOS_UPDATE=y2929+CONFIG_GENERIC_TIME=y3030+CONFIG_GENERIC_TIME_VSYSCALL=y3131+CONFIG_GENERIC_CLOCKEVENTS=y3232+CONFIG_GENERIC_HARDIRQS=y3333+# CONFIG_HAVE_SETUP_PER_CPU_AREA is not set3434+CONFIG_IRQ_PER_CPU=y3535+CONFIG_STACKTRACE_SUPPORT=y3636+CONFIG_HAVE_LATENCYTOP_SUPPORT=y3737+CONFIG_LOCKDEP_SUPPORT=y3838+CONFIG_RWSEM_XCHGADD_ALGORITHM=y3939+CONFIG_ARCH_HAS_ILOG2_U32=y4040+CONFIG_GENERIC_HWEIGHT=y4141+CONFIG_GENERIC_CALIBRATE_DELAY=y4242+CONFIG_GENERIC_FIND_NEXT_BIT=y4343+# CONFIG_ARCH_NO_VIRT_TO_BUS is not set4444+CONFIG_PPC=y4545+CONFIG_EARLY_PRINTK=y4646+CONFIG_GENERIC_NVRAM=y4747+CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y4848+CONFIG_ARCH_MAY_HAVE_PC_FDC=y4949+CONFIG_PPC_OF=y5050+CONFIG_OF=y5151+CONFIG_PPC_UDBG_16550=y5252+# CONFIG_GENERIC_TBSYNC is not set5353+CONFIG_AUDIT_ARCH=y5454+CONFIG_GENERIC_BUG=y5555+# CONFIG_DEFAULT_UIMAGE is not set5656+CONFIG_PPC_DCR_NATIVE=y5757+# CONFIG_PPC_DCR_MMIO is not set5858+CONFIG_PPC_DCR=y5959+CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"6060+6161+#6262+# General setup6363+#6464+CONFIG_EXPERIMENTAL=y6565+CONFIG_BROKEN_ON_SMP=y6666+CONFIG_INIT_ENV_ARG_LIMIT=326767+CONFIG_LOCALVERSION=""6868+CONFIG_LOCALVERSION_AUTO=y6969+CONFIG_SWAP=y7070+CONFIG_SYSVIPC=y7171+CONFIG_SYSVIPC_SYSCTL=y7272+CONFIG_POSIX_MQUEUE=y7373+# CONFIG_BSD_PROCESS_ACCT is not set7474+# CONFIG_TASKSTATS is not set7575+# CONFIG_AUDIT is not set7676+# CONFIG_IKCONFIG is not set7777+CONFIG_LOG_BUF_SHIFT=147878+# CONFIG_CGROUPS is not set7979+# CONFIG_GROUP_SCHED is not set8080+CONFIG_SYSFS_DEPRECATED=y8181+CONFIG_SYSFS_DEPRECATED_V2=y8282+# CONFIG_RELAY is not set8383+# CONFIG_NAMESPACES is not set8484+CONFIG_BLK_DEV_INITRD=y8585+CONFIG_INITRAMFS_SOURCE=""8686+# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set8787+CONFIG_SYSCTL=y8888+CONFIG_EMBEDDED=y8989+CONFIG_SYSCTL_SYSCALL=y9090+CONFIG_KALLSYMS=y9191+# CONFIG_KALLSYMS_ALL is not set9292+# CONFIG_KALLSYMS_EXTRA_PASS is not set9393+CONFIG_HOTPLUG=y9494+CONFIG_PRINTK=y9595+CONFIG_BUG=y9696+CONFIG_ELF_CORE=y9797+CONFIG_COMPAT_BRK=y9898+CONFIG_BASE_FULL=y9999+CONFIG_FUTEX=y100100+CONFIG_ANON_INODES=y101101+CONFIG_EPOLL=y102102+CONFIG_SIGNALFD=y103103+CONFIG_TIMERFD=y104104+CONFIG_EVENTFD=y105105+CONFIG_SHMEM=y106106+CONFIG_VM_EVENT_COUNTERS=y107107+CONFIG_SLUB_DEBUG=y108108+# CONFIG_SLAB is not set109109+CONFIG_SLUB=y110110+# CONFIG_SLOB is not set111111+# CONFIG_PROFILING is not set112112+# CONFIG_MARKERS is not set113113+CONFIG_HAVE_OPROFILE=y114114+# CONFIG_KPROBES is not set115115+CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y116116+CONFIG_HAVE_IOREMAP_PROT=y117117+CONFIG_HAVE_KPROBES=y118118+CONFIG_HAVE_KRETPROBES=y119119+CONFIG_HAVE_ARCH_TRACEHOOK=y120120+# CONFIG_HAVE_DMA_ATTRS is not set121121+# CONFIG_USE_GENERIC_SMP_HELPERS is not set122122+# CONFIG_HAVE_CLK is not set123123+CONFIG_PROC_PAGE_MONITOR=y124124+# CONFIG_HAVE_GENERIC_DMA_COHERENT is not set125125+CONFIG_SLABINFO=y126126+CONFIG_RT_MUTEXES=y127127+# CONFIG_TINY_SHMEM is not set128128+CONFIG_BASE_SMALL=0129129+CONFIG_MODULES=y130130+# CONFIG_MODULE_FORCE_LOAD is not set131131+CONFIG_MODULE_UNLOAD=y132132+# CONFIG_MODULE_FORCE_UNLOAD is not set133133+# CONFIG_MODVERSIONS is not set134134+# CONFIG_MODULE_SRCVERSION_ALL is not set135135+CONFIG_KMOD=y136136+CONFIG_BLOCK=y137137+CONFIG_LBD=y138138+# CONFIG_BLK_DEV_IO_TRACE is not set139139+# CONFIG_LSF is not set140140+# CONFIG_BLK_DEV_BSG is not set141141+# CONFIG_BLK_DEV_INTEGRITY is not set142142+143143+#144144+# IO Schedulers145145+#146146+CONFIG_IOSCHED_NOOP=y147147+CONFIG_IOSCHED_AS=y148148+CONFIG_IOSCHED_DEADLINE=y149149+CONFIG_IOSCHED_CFQ=y150150+CONFIG_DEFAULT_AS=y151151+# CONFIG_DEFAULT_DEADLINE is not set152152+# CONFIG_DEFAULT_CFQ is not set153153+# CONFIG_DEFAULT_NOOP is not set154154+CONFIG_DEFAULT_IOSCHED="anticipatory"155155+CONFIG_CLASSIC_RCU=y156156+CONFIG_PPC4xx_PCI_EXPRESS=y157157+158158+#159159+# Platform support160160+#161161+# CONFIG_PPC_CELL is not set162162+# CONFIG_PPC_CELL_NATIVE is not set163163+# CONFIG_PQ2ADS is not set164164+# CONFIG_BAMBOO is not set165165+# CONFIG_EBONY is not set166166+# CONFIG_SAM440EP is not set167167+# CONFIG_SEQUOIA is not set168168+# CONFIG_TAISHAN is not set169169+# CONFIG_KATMAI is not set170170+# CONFIG_RAINIER is not set171171+# CONFIG_WARP is not set172172+CONFIG_ARCHES=y173173+# CONFIG_CANYONLANDS is not set174174+# CONFIG_GLACIER is not set175175+# CONFIG_YOSEMITE is not set176176+# CONFIG_XILINX_VIRTEX440_GENERIC_BOARD is not set177177+CONFIG_PPC44x_SIMPLE=y178178+CONFIG_460EX=y179179+# CONFIG_IPIC is not set180180+# CONFIG_MPIC is not set181181+# CONFIG_MPIC_WEIRD is not set182182+# CONFIG_PPC_I8259 is not set183183+# CONFIG_PPC_RTAS is not set184184+# CONFIG_MMIO_NVRAM is not set185185+# CONFIG_PPC_MPC106 is not set186186+# CONFIG_PPC_970_NAP is not set187187+# CONFIG_PPC_INDIRECT_IO is not set188188+# CONFIG_GENERIC_IOMAP is not set189189+# CONFIG_CPU_FREQ is not set190190+# CONFIG_FSL_ULI1575 is not set191191+192192+#193193+# Kernel options194194+#195195+# CONFIG_HIGHMEM is not set196196+CONFIG_TICK_ONESHOT=y197197+CONFIG_NO_HZ=y198198+CONFIG_HIGH_RES_TIMERS=y199199+CONFIG_GENERIC_CLOCKEVENTS_BUILD=y200200+# CONFIG_HZ_100 is not set201201+CONFIG_HZ_250=y202202+# CONFIG_HZ_300 is not set203203+# CONFIG_HZ_1000 is not set204204+CONFIG_HZ=250205205+CONFIG_SCHED_HRTICK=y206206+CONFIG_PREEMPT_NONE=y207207+# CONFIG_PREEMPT_VOLUNTARY is not set208208+# CONFIG_PREEMPT is not set209209+CONFIG_BINFMT_ELF=y210210+# CONFIG_BINFMT_MISC is not set211211+# CONFIG_MATH_EMULATION is not set212212+# CONFIG_IOMMU_HELPER is not set213213+CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y214214+CONFIG_ARCH_HAS_WALK_MEMORY=y215215+CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y216216+CONFIG_ARCH_FLATMEM_ENABLE=y217217+CONFIG_ARCH_POPULATES_NODE_MAP=y218218+CONFIG_SELECT_MEMORY_MODEL=y219219+CONFIG_FLATMEM_MANUAL=y220220+# CONFIG_DISCONTIGMEM_MANUAL is not set221221+# CONFIG_SPARSEMEM_MANUAL is not set222222+CONFIG_FLATMEM=y223223+CONFIG_FLAT_NODE_MEM_MAP=y224224+# CONFIG_SPARSEMEM_STATIC is not set225225+# CONFIG_SPARSEMEM_VMEMMAP_ENABLE is not set226226+CONFIG_PAGEFLAGS_EXTENDED=y227227+CONFIG_SPLIT_PTLOCK_CPUS=4228228+CONFIG_MIGRATION=y229229+CONFIG_RESOURCES_64BIT=y230230+CONFIG_ZONE_DMA_FLAG=1231231+CONFIG_BOUNCE=y232232+CONFIG_VIRT_TO_BUS=y233233+CONFIG_FORCE_MAX_ZONEORDER=11234234+CONFIG_PROC_DEVICETREE=y235235+CONFIG_CMDLINE_BOOL=y236236+CONFIG_CMDLINE=""237237+CONFIG_EXTRA_TARGETS=""238238+CONFIG_SECCOMP=y239239+CONFIG_ISA_DMA_API=y240240+241241+#242242+# Bus options243243+#244244+CONFIG_ZONE_DMA=y245245+CONFIG_PPC_INDIRECT_PCI=y246246+CONFIG_4xx_SOC=y247247+CONFIG_PPC_PCI_CHOICE=y248248+CONFIG_PCI=y249249+CONFIG_PCI_DOMAINS=y250250+CONFIG_PCI_SYSCALL=y251251+# CONFIG_PCIEPORTBUS is not set252252+CONFIG_ARCH_SUPPORTS_MSI=y253253+# CONFIG_PCI_MSI is not set254254+CONFIG_PCI_LEGACY=y255255+# CONFIG_PCI_DEBUG is not set256256+# CONFIG_PCCARD is not set257257+# CONFIG_HOTPLUG_PCI is not set258258+# CONFIG_HAS_RAPIDIO is not set259259+260260+#261261+# Advanced setup262262+#263263+# CONFIG_ADVANCED_OPTIONS is not set264264+265265+#266266+# Default settings for advanced configuration options are used267267+#268268+CONFIG_LOWMEM_SIZE=0x30000000269269+CONFIG_PAGE_OFFSET=0xc0000000270270+CONFIG_KERNEL_START=0xc0000000271271+CONFIG_PHYSICAL_START=0x00000000272272+CONFIG_TASK_SIZE=0xc0000000273273+CONFIG_CONSISTENT_START=0xff100000274274+CONFIG_CONSISTENT_SIZE=0x00200000275275+CONFIG_NET=y276276+277277+#278278+# Networking options279279+#280280+CONFIG_PACKET=y281281+# CONFIG_PACKET_MMAP is not set282282+CONFIG_UNIX=y283283+# CONFIG_NET_KEY is not set284284+CONFIG_INET=y285285+# CONFIG_IP_MULTICAST is not set286286+# CONFIG_IP_ADVANCED_ROUTER is not set287287+CONFIG_IP_FIB_HASH=y288288+CONFIG_IP_PNP=y289289+CONFIG_IP_PNP_DHCP=y290290+CONFIG_IP_PNP_BOOTP=y291291+# CONFIG_IP_PNP_RARP is not set292292+# CONFIG_NET_IPIP is not set293293+# CONFIG_NET_IPGRE is not set294294+# CONFIG_ARPD is not set295295+# CONFIG_SYN_COOKIES is not set296296+# CONFIG_INET_AH is not set297297+# CONFIG_INET_ESP is not set298298+# CONFIG_INET_IPCOMP is not set299299+# CONFIG_INET_XFRM_TUNNEL is not set300300+# CONFIG_INET_TUNNEL is not set301301+# CONFIG_INET_XFRM_MODE_TRANSPORT is not set302302+# CONFIG_INET_XFRM_MODE_TUNNEL is not set303303+# CONFIG_INET_XFRM_MODE_BEET is not set304304+# CONFIG_INET_LRO is not set305305+CONFIG_INET_DIAG=y306306+CONFIG_INET_TCP_DIAG=y307307+# CONFIG_TCP_CONG_ADVANCED is not set308308+CONFIG_TCP_CONG_CUBIC=y309309+CONFIG_DEFAULT_TCP_CONG="cubic"310310+# CONFIG_TCP_MD5SIG is not set311311+# CONFIG_IPV6 is not set312312+# CONFIG_NETWORK_SECMARK is not set313313+# CONFIG_NETFILTER is not set314314+# CONFIG_IP_DCCP is not set315315+# CONFIG_IP_SCTP is not set316316+# CONFIG_TIPC is not set317317+# CONFIG_ATM is not set318318+# CONFIG_BRIDGE is not set319319+# CONFIG_VLAN_8021Q is not set320320+# CONFIG_DECNET is not set321321+# CONFIG_LLC2 is not set322322+# CONFIG_IPX is not set323323+# CONFIG_ATALK is not set324324+# CONFIG_X25 is not set325325+# CONFIG_LAPB is not set326326+# CONFIG_ECONET is not set327327+# CONFIG_WAN_ROUTER is not set328328+# CONFIG_NET_SCHED is not set329329+330330+#331331+# Network testing332332+#333333+# CONFIG_NET_PKTGEN is not set334334+# CONFIG_HAMRADIO is not set335335+# CONFIG_CAN is not set336336+# CONFIG_IRDA is not set337337+# CONFIG_BT is not set338338+# CONFIG_AF_RXRPC is not set339339+340340+#341341+# Wireless342342+#343343+# CONFIG_CFG80211 is not set344344+# CONFIG_WIRELESS_EXT is not set345345+# CONFIG_MAC80211 is not set346346+# CONFIG_IEEE80211 is not set347347+# CONFIG_RFKILL is not set348348+# CONFIG_NET_9P is not set349349+350350+#351351+# Device Drivers352352+#353353+354354+#355355+# Generic Driver Options356356+#357357+CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"358358+CONFIG_STANDALONE=y359359+CONFIG_PREVENT_FIRMWARE_BUILD=y360360+CONFIG_FW_LOADER=y361361+CONFIG_FIRMWARE_IN_KERNEL=y362362+CONFIG_EXTRA_FIRMWARE=""363363+# CONFIG_DEBUG_DRIVER is not set364364+# CONFIG_DEBUG_DEVRES is not set365365+# CONFIG_SYS_HYPERVISOR is not set366366+CONFIG_CONNECTOR=y367367+CONFIG_PROC_EVENTS=y368368+# CONFIG_MTD is not set369369+CONFIG_OF_DEVICE=y370370+# CONFIG_PARPORT is not set371371+CONFIG_BLK_DEV=y372372+# CONFIG_BLK_DEV_FD is not set373373+# CONFIG_BLK_CPQ_DA is not set374374+# CONFIG_BLK_CPQ_CISS_DA is not set375375+# CONFIG_BLK_DEV_DAC960 is not set376376+# CONFIG_BLK_DEV_UMEM is not set377377+# CONFIG_BLK_DEV_COW_COMMON is not set378378+# CONFIG_BLK_DEV_LOOP is not set379379+# CONFIG_BLK_DEV_NBD is not set380380+# CONFIG_BLK_DEV_SX8 is not set381381+CONFIG_BLK_DEV_RAM=y382382+CONFIG_BLK_DEV_RAM_COUNT=16383383+CONFIG_BLK_DEV_RAM_SIZE=35000384384+# CONFIG_BLK_DEV_XIP is not set385385+# CONFIG_CDROM_PKTCDVD is not set386386+# CONFIG_ATA_OVER_ETH is not set387387+# CONFIG_XILINX_SYSACE is not set388388+# CONFIG_BLK_DEV_HD is not set389389+# CONFIG_MISC_DEVICES is not set390390+CONFIG_HAVE_IDE=y391391+# CONFIG_IDE is not set392392+393393+#394394+# SCSI device support395395+#396396+# CONFIG_RAID_ATTRS is not set397397+# CONFIG_SCSI is not set398398+# CONFIG_SCSI_DMA is not set399399+# CONFIG_SCSI_NETLINK is not set400400+# CONFIG_ATA is not set401401+# CONFIG_MD is not set402402+# CONFIG_FUSION is not set403403+404404+#405405+# IEEE 1394 (FireWire) support406406+#407407+408408+#409409+# Enable only one of the two stacks, unless you know what you are doing410410+#411411+# CONFIG_FIREWIRE is not set412412+# CONFIG_IEEE1394 is not set413413+# CONFIG_I2O is not set414414+# CONFIG_MACINTOSH_DRIVERS is not set415415+CONFIG_NETDEVICES=y416416+# CONFIG_DUMMY is not set417417+# CONFIG_BONDING is not set418418+# CONFIG_MACVLAN is not set419419+# CONFIG_EQUALIZER is not set420420+# CONFIG_TUN is not set421421+# CONFIG_VETH is not set422422+# CONFIG_ARCNET is not set423423+# CONFIG_PHYLIB is not set424424+CONFIG_NET_ETHERNET=y425425+# CONFIG_MII is not set426426+# CONFIG_HAPPYMEAL is not set427427+# CONFIG_SUNGEM is not set428428+# CONFIG_CASSINI is not set429429+# CONFIG_NET_VENDOR_3COM is not set430430+# CONFIG_NET_TULIP is not set431431+# CONFIG_HP100 is not set432432+CONFIG_IBM_NEW_EMAC=y433433+CONFIG_IBM_NEW_EMAC_RXB=256434434+CONFIG_IBM_NEW_EMAC_TXB=256435435+CONFIG_IBM_NEW_EMAC_POLL_WEIGHT=32436436+CONFIG_IBM_NEW_EMAC_RX_COPY_THRESHOLD=256437437+CONFIG_IBM_NEW_EMAC_RX_SKB_HEADROOM=0438438+# CONFIG_IBM_NEW_EMAC_DEBUG is not set439439+# CONFIG_IBM_NEW_EMAC_ZMII is not set440440+# CONFIG_IBM_NEW_EMAC_RGMII is not set441441+CONFIG_IBM_NEW_EMAC_TAH=y442442+CONFIG_IBM_NEW_EMAC_EMAC4=y443443+# CONFIG_NET_PCI is not set444444+# CONFIG_B44 is not set445445+# CONFIG_NETDEV_1000 is not set446446+# CONFIG_NETDEV_10000 is not set447447+# CONFIG_TR is not set448448+449449+#450450+# Wireless LAN451451+#452452+# CONFIG_WLAN_PRE80211 is not set453453+# CONFIG_WLAN_80211 is not set454454+# CONFIG_IWLWIFI_LEDS is not set455455+# CONFIG_WAN is not set456456+# CONFIG_FDDI is not set457457+# CONFIG_HIPPI is not set458458+# CONFIG_PPP is not set459459+# CONFIG_SLIP is not set460460+# CONFIG_NETCONSOLE is not set461461+# CONFIG_NETPOLL is not set462462+# CONFIG_NET_POLL_CONTROLLER is not set463463+# CONFIG_ISDN is not set464464+# CONFIG_PHONE is not set465465+466466+#467467+# Input device support468468+#469469+# CONFIG_INPUT is not set470470+471471+#472472+# Hardware I/O ports473473+#474474+# CONFIG_SERIO is not set475475+# CONFIG_GAMEPORT is not set476476+477477+#478478+# Character devices479479+#480480+# CONFIG_VT is not set481481+CONFIG_DEVKMEM=y482482+# CONFIG_SERIAL_NONSTANDARD is not set483483+# CONFIG_NOZOMI is not set484484+485485+#486486+# Serial drivers487487+#488488+CONFIG_SERIAL_8250=y489489+CONFIG_SERIAL_8250_CONSOLE=y490490+# CONFIG_SERIAL_8250_PCI is not set491491+CONFIG_SERIAL_8250_NR_UARTS=4492492+CONFIG_SERIAL_8250_RUNTIME_UARTS=4493493+CONFIG_SERIAL_8250_EXTENDED=y494494+# CONFIG_SERIAL_8250_MANY_PORTS is not set495495+CONFIG_SERIAL_8250_SHARE_IRQ=y496496+# CONFIG_SERIAL_8250_DETECT_IRQ is not set497497+# CONFIG_SERIAL_8250_RSA is not set498498+499499+#500500+# Non-8250 serial port support501501+#502502+# CONFIG_SERIAL_UARTLITE is not set503503+CONFIG_SERIAL_CORE=y504504+CONFIG_SERIAL_CORE_CONSOLE=y505505+# CONFIG_SERIAL_JSM is not set506506+CONFIG_SERIAL_OF_PLATFORM=y507507+CONFIG_UNIX98_PTYS=y508508+CONFIG_LEGACY_PTYS=y509509+CONFIG_LEGACY_PTY_COUNT=256510510+# CONFIG_IPMI_HANDLER is not set511511+# CONFIG_HW_RANDOM is not set512512+# CONFIG_NVRAM is not set513513+# CONFIG_GEN_RTC is not set514514+# CONFIG_R3964 is not set515515+# CONFIG_APPLICOM is not set516516+# CONFIG_RAW_DRIVER is not set517517+# CONFIG_TCG_TPM is not set518518+CONFIG_DEVPORT=y519519+# CONFIG_I2C is not set520520+# CONFIG_SPI is not set521521+CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y522522+# CONFIG_GPIOLIB is not set523523+# CONFIG_W1 is not set524524+# CONFIG_POWER_SUPPLY is not set525525+# CONFIG_HWMON is not set526526+# CONFIG_THERMAL is not set527527+# CONFIG_THERMAL_HWMON is not set528528+# CONFIG_WATCHDOG is not set529529+530530+#531531+# Sonics Silicon Backplane532532+#533533+CONFIG_SSB_POSSIBLE=y534534+# CONFIG_SSB is not set535535+536536+#537537+# Multifunction device drivers538538+#539539+# CONFIG_MFD_CORE is not set540540+# CONFIG_MFD_SM501 is not set541541+# CONFIG_HTC_PASIC3 is not set542542+# CONFIG_MFD_TMIO is not set543543+544544+#545545+# Multimedia devices546546+#547547+548548+#549549+# Multimedia core support550550+#551551+# CONFIG_VIDEO_DEV is not set552552+# CONFIG_DVB_CORE is not set553553+# CONFIG_VIDEO_MEDIA is not set554554+555555+#556556+# Multimedia drivers557557+#558558+CONFIG_DAB=y559559+560560+#561561+# Graphics support562562+#563563+# CONFIG_AGP is not set564564+# CONFIG_DRM is not set565565+# CONFIG_VGASTATE is not set566566+CONFIG_VIDEO_OUTPUT_CONTROL=m567567+# CONFIG_FB is not set568568+# CONFIG_BACKLIGHT_LCD_SUPPORT is not set569569+570570+#571571+# Display device support572572+#573573+# CONFIG_DISPLAY_SUPPORT is not set574574+# CONFIG_SOUND is not set575575+# CONFIG_USB_SUPPORT is not set576576+# CONFIG_MMC is not set577577+# CONFIG_MEMSTICK is not set578578+# CONFIG_NEW_LEDS is not set579579+# CONFIG_ACCESSIBILITY is not set580580+# CONFIG_INFINIBAND is not set581581+# CONFIG_EDAC is not set582582+# CONFIG_RTC_CLASS is not set583583+# CONFIG_DMADEVICES is not set584584+# CONFIG_UIO is not set585585+586586+#587587+# File systems588588+#589589+CONFIG_EXT2_FS=y590590+# CONFIG_EXT2_FS_XATTR is not set591591+# CONFIG_EXT2_FS_XIP is not set592592+# CONFIG_EXT3_FS is not set593593+# CONFIG_EXT4DEV_FS is not set594594+# CONFIG_REISERFS_FS is not set595595+# CONFIG_JFS_FS is not set596596+# CONFIG_FS_POSIX_ACL is not set597597+# CONFIG_XFS_FS is not set598598+# CONFIG_OCFS2_FS is not set599599+CONFIG_DNOTIFY=y600600+CONFIG_INOTIFY=y601601+CONFIG_INOTIFY_USER=y602602+# CONFIG_QUOTA is not set603603+# CONFIG_AUTOFS_FS is not set604604+# CONFIG_AUTOFS4_FS is not set605605+# CONFIG_FUSE_FS is not set606606+607607+#608608+# CD-ROM/DVD Filesystems609609+#610610+# CONFIG_ISO9660_FS is not set611611+# CONFIG_UDF_FS is not set612612+613613+#614614+# DOS/FAT/NT Filesystems615615+#616616+# CONFIG_MSDOS_FS is not set617617+# CONFIG_VFAT_FS is not set618618+# CONFIG_NTFS_FS is not set619619+620620+#621621+# Pseudo filesystems622622+#623623+CONFIG_PROC_FS=y624624+CONFIG_PROC_KCORE=y625625+CONFIG_PROC_SYSCTL=y626626+CONFIG_SYSFS=y627627+CONFIG_TMPFS=y628628+# CONFIG_TMPFS_POSIX_ACL is not set629629+# CONFIG_HUGETLB_PAGE is not set630630+# CONFIG_CONFIGFS_FS is not set631631+632632+#633633+# Miscellaneous filesystems634634+#635635+# CONFIG_ADFS_FS is not set636636+# CONFIG_AFFS_FS is not set637637+# CONFIG_HFS_FS is not set638638+# CONFIG_HFSPLUS_FS is not set639639+# CONFIG_BEFS_FS is not set640640+# CONFIG_BFS_FS is not set641641+# CONFIG_EFS_FS is not set642642+CONFIG_CRAMFS=y643643+# CONFIG_VXFS_FS is not set644644+# CONFIG_MINIX_FS is not set645645+# CONFIG_OMFS_FS is not set646646+# CONFIG_HPFS_FS is not set647647+# CONFIG_QNX4FS_FS is not set648648+# CONFIG_ROMFS_FS is not set649649+# CONFIG_SYSV_FS is not set650650+# CONFIG_UFS_FS is not set651651+CONFIG_NETWORK_FILESYSTEMS=y652652+CONFIG_NFS_FS=y653653+CONFIG_NFS_V3=y654654+# CONFIG_NFS_V3_ACL is not set655655+# CONFIG_NFS_V4 is not set656656+CONFIG_ROOT_NFS=y657657+# CONFIG_NFSD is not set658658+CONFIG_LOCKD=y659659+CONFIG_LOCKD_V4=y660660+CONFIG_NFS_COMMON=y661661+CONFIG_SUNRPC=y662662+# CONFIG_RPCSEC_GSS_KRB5 is not set663663+# CONFIG_RPCSEC_GSS_SPKM3 is not set664664+# CONFIG_SMB_FS is not set665665+# CONFIG_CIFS is not set666666+# CONFIG_NCP_FS is not set667667+# CONFIG_CODA_FS is not set668668+# CONFIG_AFS_FS is not set669669+670670+#671671+# Partition Types672672+#673673+# CONFIG_PARTITION_ADVANCED is not set674674+CONFIG_MSDOS_PARTITION=y675675+# CONFIG_NLS is not set676676+# CONFIG_DLM is not set677677+678678+#679679+# Library routines680680+#681681+CONFIG_BITREVERSE=y682682+# CONFIG_GENERIC_FIND_FIRST_BIT is not set683683+# CONFIG_CRC_CCITT is not set684684+# CONFIG_CRC16 is not set685685+# CONFIG_CRC_T10DIF is not set686686+# CONFIG_CRC_ITU_T is not set687687+CONFIG_CRC32=y688688+# CONFIG_CRC7 is not set689689+# CONFIG_LIBCRC32C is not set690690+CONFIG_ZLIB_INFLATE=y691691+CONFIG_PLIST=y692692+CONFIG_HAS_IOMEM=y693693+CONFIG_HAS_IOPORT=y694694+CONFIG_HAS_DMA=y695695+CONFIG_HAVE_LMB=y696696+697697+#698698+# Kernel hacking699699+#700700+# CONFIG_PRINTK_TIME is not set701701+CONFIG_ENABLE_WARN_DEPRECATED=y702702+CONFIG_ENABLE_MUST_CHECK=y703703+CONFIG_FRAME_WARN=1024704704+CONFIG_MAGIC_SYSRQ=y705705+# CONFIG_UNUSED_SYMBOLS is not set706706+CONFIG_DEBUG_FS=y707707+# CONFIG_HEADERS_CHECK is not set708708+CONFIG_DEBUG_KERNEL=y709709+# CONFIG_DEBUG_SHIRQ is not set710710+CONFIG_DETECT_SOFTLOCKUP=y711711+# CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set712712+CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0713713+CONFIG_SCHED_DEBUG=y714714+# CONFIG_SCHEDSTATS is not set715715+# CONFIG_TIMER_STATS is not set716716+# CONFIG_DEBUG_OBJECTS is not set717717+# CONFIG_SLUB_DEBUG_ON is not set718718+# CONFIG_SLUB_STATS is not set719719+# CONFIG_DEBUG_RT_MUTEXES is not set720720+# CONFIG_RT_MUTEX_TESTER is not set721721+# CONFIG_DEBUG_SPINLOCK is not set722722+# CONFIG_DEBUG_MUTEXES is not set723723+# CONFIG_DEBUG_SPINLOCK_SLEEP is not set724724+# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set725725+# CONFIG_DEBUG_KOBJECT is not set726726+# CONFIG_DEBUG_BUGVERBOSE is not set727727+# CONFIG_DEBUG_INFO is not set728728+# CONFIG_DEBUG_VM is not set729729+# CONFIG_DEBUG_WRITECOUNT is not set730730+# CONFIG_DEBUG_MEMORY_INIT is not set731731+# CONFIG_DEBUG_LIST is not set732732+# CONFIG_DEBUG_SG is not set733733+# CONFIG_BOOT_PRINTK_DELAY is not set734734+# CONFIG_RCU_TORTURE_TEST is not set735735+# CONFIG_BACKTRACE_SELF_TEST is not set736736+# CONFIG_FAULT_INJECTION is not set737737+# CONFIG_LATENCYTOP is not set738738+CONFIG_SYSCTL_SYSCALL_CHECK=y739739+CONFIG_HAVE_FTRACE=y740740+CONFIG_HAVE_DYNAMIC_FTRACE=y741741+# CONFIG_FTRACE is not set742742+# CONFIG_SCHED_TRACER is not set743743+# CONFIG_CONTEXT_SWITCH_TRACER is not set744744+# CONFIG_SAMPLES is not set745745+CONFIG_HAVE_ARCH_KGDB=y746746+# CONFIG_KGDB is not set747747+# CONFIG_DEBUG_STACKOVERFLOW is not set748748+# CONFIG_DEBUG_STACK_USAGE is not set749749+# CONFIG_DEBUG_PAGEALLOC is not set750750+# CONFIG_CODE_PATCHING_SELFTEST is not set751751+# CONFIG_FTR_FIXUP_SELFTEST is not set752752+# CONFIG_MSI_BITMAP_SELFTEST is not set753753+# CONFIG_XMON is not set754754+# CONFIG_IRQSTACKS is not set755755+# CONFIG_VIRQ_DEBUG is not set756756+# CONFIG_BDI_SWITCH is not set757757+# CONFIG_PPC_EARLY_DEBUG is not set758758+759759+#760760+# Security options761761+#762762+# CONFIG_KEYS is not set763763+# CONFIG_SECURITY is not set764764+# CONFIG_SECURITY_FILE_CAPABILITIES is not set765765+# CONFIG_CRYPTO is not set766766+# CONFIG_PPC_CLOCK is not set767767+# CONFIG_VIRTUALIZATION is not set
+11
arch/powerpc/include/asm/dcr-regs.h
···6868#define SDR0_UART3 0x01236969#define SDR0_CUST0 0x400070707171+/* SDR for 405EZ */7272+#define DCRN_SDR_ICINTSTAT 0x45107373+#define ICINTSTAT_ICRX 0x800000007474+#define ICINTSTAT_ICTX0 0x400000007575+#define ICINTSTAT_ICTX1 0x200000007676+#define ICINTSTAT_ICTX 0x600000007777+7878+/* SDRs (460EX/460GT) */7979+#define SDR0_ETH_CFG 0x41038080+#define SDR0_ETH_CFG_ECS 0x00000100 /* EMAC int clk source */8181+7182/*7283 * All those DCR register addresses are offsets from the base address7384 * for the SRAM0 controller (e.g. 0x20 on 440GX). The base address is
+15-2
arch/powerpc/platforms/44x/Kconfig
···8181 See http://www.pikatechnologies.com/ and follow the "PIKA for Computer8282 Telephony Developers" link for more information.83838484+config ARCHES8585+ bool "Arches"8686+ depends on 44x8787+ default n8888+ select PPC44x_SIMPLE8989+ select 460EX # Odd since it uses 460GT but the effects are the same9090+ select PCI9191+ select PPC4xx_PCI_EXPRESS9292+ help9393+ This option enables support for the AMCC Dual PPC460GT evaluation board.9494+8495config CANYONLANDS8596 bool "Canyonlands"8697 depends on 44x···10089 select 460EX10190 select PCI10291 select PPC4xx_PCI_EXPRESS9292+ select IBM_NEW_EMAC_RGMII9393+ select IBM_NEW_EMAC_ZMII10394 help10495 This option enables support for the AMCC PPC460EX evaluation board.10596···113100 select 460EX # Odd since it uses 460GT but the effects are the same114101 select PCI115102 select PPC4xx_PCI_EXPRESS103103+ select IBM_NEW_EMAC_RGMII104104+ select IBM_NEW_EMAC_ZMII116105 help117106 This option enables support for the AMCC PPC460GT evaluation board.118107···210195 bool211196 select PPC_FPU212197 select IBM_NEW_EMAC_EMAC4213213- select IBM_NEW_EMAC_RGMII214214- select IBM_NEW_EMAC_ZMII215198 select IBM_NEW_EMAC_TAH216199217200# 44x errata/workaround config symbols, selected by the CPU models above
+2-1
arch/powerpc/platforms/44x/ppc44x_simple.c
···5050 * board.c file for it rather than adding it to this list.5151 */5252static char *board[] __initdata = {5353+ "amcc,arches",5354 "amcc,bamboo",5454- "amcc,cayonlands",5555+ "amcc,canyonlands",5556 "amcc,glacier",5657 "ibm,ebony",5758 "amcc,katmai",
+8-1
arch/powerpc/sysdev/ppc4xx_pci.c
···276276 const int *bus_range;277277 int primary = 0;278278279279+ /* Check if device is enabled */280280+ if (!of_device_is_available(np)) {281281+ printk(KERN_INFO "%s: Port disabled via device-tree\n",282282+ np->full_name);283283+ return;284284+ }285285+279286 /* Fetch config space registers address */280287 if (of_address_to_resource(np, 0, &rsrc_cfg)) {281281- printk(KERN_ERR "%s:Can't get PCI config register base !",288288+ printk(KERN_ERR "%s: Can't get PCI config register base !",282289 np->full_name);283290 return;284291 }
···130130 const char *error)131131{132132 if (emac_has_feature(dev, EMAC_FTR_440GX_PHY_CLK_FIX |133133+ EMAC_FTR_460EX_PHY_CLK_FIX |133134 EMAC_FTR_440EP_PHY_CLK_FIX))134135 DBG(dev, "%s" NL, error);135136 else if (net_ratelimit())···202201{203202 return phy_mode == PHY_MODE_GMII ||204203 phy_mode == PHY_MODE_RGMII ||204204+ phy_mode == PHY_MODE_SGMII ||205205 phy_mode == PHY_MODE_TBI ||206206 phy_mode == PHY_MODE_RTBI;207207}208208209209static inline int emac_phy_gpcs(int phy_mode)210210{211211- return phy_mode == PHY_MODE_TBI ||211211+ return phy_mode == PHY_MODE_SGMII ||212212+ phy_mode == PHY_MODE_TBI ||212213 phy_mode == PHY_MODE_RTBI;213214}214215···354351 emac_tx_disable(dev);355352 }356353354354+#ifdef CONFIG_PPC_DCR_NATIVE355355+ /* Enable internal clock source */356356+ if (emac_has_feature(dev, EMAC_FTR_460EX_PHY_CLK_FIX))357357+ dcri_clrset(SDR0, SDR0_ETH_CFG,358358+ 0, SDR0_ETH_CFG_ECS << dev->cell_index);359359+#endif360360+357361 out_be32(&p->mr0, EMAC_MR0_SRST);358362 while ((in_be32(&p->mr0) & EMAC_MR0_SRST) && n)359363 --n;364364+365365+#ifdef CONFIG_PPC_DCR_NATIVE366366+ /* Enable external clock source */367367+ if (emac_has_feature(dev, EMAC_FTR_460EX_PHY_CLK_FIX))368368+ dcri_clrset(SDR0, SDR0_ETH_CFG,369369+ SDR0_ETH_CFG_ECS << dev->cell_index, 0);370370+#endif360371361372 if (n) {362373 dev->reset_failed = 0;···564547 switch (dev->phy.speed) {565548 case SPEED_1000:566549 if (emac_phy_gpcs(dev->phy.mode)) {567567- mr1 |= EMAC_MR1_MF_1000GPCS |568568- EMAC_MR1_MF_IPPA(dev->phy.address);550550+ mr1 |= EMAC_MR1_MF_1000GPCS | EMAC_MR1_MF_IPPA(551551+ (dev->phy.gpcs_address != 0xffffffff) ?552552+ dev->phy.gpcs_address : dev->phy.address);569553570554 /* Put some arbitrary OUI, Manuf & Rev IDs so we can571555 * identify this GPCS PHY later.···678660 out_be32(&p->iser, r);679661680662 /* We need to take GPCS PHY out of isolate mode after EMAC reset */681681- if (emac_phy_gpcs(dev->phy.mode))682682- emac_mii_reset_phy(&dev->phy);663663+ if (emac_phy_gpcs(dev->phy.mode)) {664664+ if (dev->phy.gpcs_address != 0xffffffff)665665+ emac_mii_reset_gpcs(&dev->phy);666666+ else667667+ emac_mii_reset_phy(&dev->phy);668668+ }683669684670 return 0;685671}···888866 struct emac_instance *dev = netdev_priv(ndev);889867 int res;890868891891- res = __emac_mdio_read(dev->mdio_instance ? dev->mdio_instance : dev,869869+ res = __emac_mdio_read((dev->mdio_instance &&870870+ dev->phy.gpcs_address != id) ?871871+ dev->mdio_instance : dev,892872 (u8) id, (u8) reg);893873 return res;894874}···899875{900876 struct emac_instance *dev = netdev_priv(ndev);901877902902- __emac_mdio_write(dev->mdio_instance ? dev->mdio_instance : dev,878878+ __emac_mdio_write((dev->mdio_instance &&879879+ dev->phy.gpcs_address != id) ?880880+ dev->mdio_instance : dev,903881 (u8) id, (u8) reg, (u16) val);904882}905883···23932367 * XXX I probably should move these settings to the dev tree23942368 */23952369 dev->phy.address = -1;23962396- dev->phy.features = SUPPORTED_100baseT_Full | SUPPORTED_MII;23702370+ dev->phy.features = SUPPORTED_MII;23712371+ if (emac_phy_supports_gige(dev->phy_mode))23722372+ dev->phy.features |= SUPPORTED_1000baseT_Full;23732373+ else23742374+ dev->phy.features |= SUPPORTED_100baseT_Full;23972375 dev->phy.pause = 1;2398237623992377 return 0;···24362406 * Note that the busy_phy_map is currently global24372407 * while it should probably be per-ASIC...24382408 */24392439- dev->phy.address = dev->cell_index;24092409+ dev->phy.gpcs_address = dev->gpcs_address;24102410+ if (dev->phy.gpcs_address == 0xffffffff)24112411+ dev->phy.address = dev->cell_index;24402412 }2441241324422414 emac_configure(dev);···25482516 dev->phy_address = 0xffffffff;25492517 if (emac_read_uint_prop(np, "phy-map", &dev->phy_map, 0))25502518 dev->phy_map = 0xffffffff;25192519+ if (emac_read_uint_prop(np, "gpcs-address", &dev->gpcs_address, 0))25202520+ dev->gpcs_address = 0xffffffff;25512521 if (emac_read_uint_prop(np->parent, "clock-frequency", &dev->opb_bus_freq, 1))25522522 return -ENXIO;25532523 if (emac_read_uint_prop(np, "tah-device", &dev->tah_ph, 0))···25932559 /* Check EMAC version */25942560 if (of_device_is_compatible(np, "ibm,emac4sync")) {25952561 dev->features |= (EMAC_FTR_EMAC4 | EMAC_FTR_EMAC4SYNC);25622562+ if (of_device_is_compatible(np, "ibm,emac-460ex") ||25632563+ of_device_is_compatible(np, "ibm,emac-460gt"))25642564+ dev->features |= EMAC_FTR_460EX_PHY_CLK_FIX;25962565 } else if (of_device_is_compatible(np, "ibm,emac4")) {25972566 dev->features |= EMAC_FTR_EMAC4;25982567 if (of_device_is_compatible(np, "ibm,emac-440gx"))···26042567 if (of_device_is_compatible(np, "ibm,emac-440ep") ||26052568 of_device_is_compatible(np, "ibm,emac-440gr"))26062569 dev->features |= EMAC_FTR_440EP_PHY_CLK_FIX;25702570+ if (of_device_is_compatible(np, "ibm,emac-405ez"))25712571+ dev->features |= EMAC_FTR_NO_FLOW_CONTROL_40x;26072572 }2608257326092574 /* Fixup some feature bits based on the device tree */···28622823 ndev->name, dev->cell_index, np->full_name,28632824 ndev->dev_addr[0], ndev->dev_addr[1], ndev->dev_addr[2],28642825 ndev->dev_addr[3], ndev->dev_addr[4], ndev->dev_addr[5]);28262826+28272827+ if (dev->phy_mode == PHY_MODE_SGMII)28282828+ printk(KERN_NOTICE "%s: in SGMII mode\n", ndev->name);2865282928662830 if (dev->phy.address >= 0)28672831 printk("%s: found %s PHY (0x%02x)\n", ndev->name,
+11
drivers/net/ibm_newemac/core.h
···190190 struct delayed_work link_work;191191 int link_polling;192192193193+ /* GPCS PHY infos */194194+ u32 gpcs_address;195195+193196 /* Shared MDIO if any */194197 u32 mdio_ph;195198 struct of_device *mdio_dev;···320317 * The 405EX and 460EX contain the EMAC4SYNC core321318 */322319#define EMAC_FTR_EMAC4SYNC 0x00000200320320+/*321321+ * Set if we need phy clock workaround for 460ex or 460gt322322+ */323323+#define EMAC_FTR_460EX_PHY_CLK_FIX 0x00000400323324324325325326/* Right now, we don't quite handle the always/possible masks on the···348341#ifdef CONFIG_IBM_NEW_EMAC_RGMII349342 EMAC_FTR_HAS_RGMII |350343#endif344344+#ifdef CONFIG_IBM_NEW_EMAC_NO_FLOW_CTRL345345+ EMAC_FTR_NO_FLOW_CONTROL_40x |346346+#endif347347+ EMAC_FTR_460EX_PHY_CLK_FIX |351348 EMAC_FTR_440EP_PHY_CLK_FIX,352349};353350
···213213 struct of_device *ofdev;214214 int index;215215 spinlock_t lock;216216+217217+ unsigned int features;216218};217219218220static inline u32 get_mal_dcrn(struct mal_instance *mal, int reg)···225223static inline void set_mal_dcrn(struct mal_instance *mal, int reg, u32 val)226224{227225 dcr_write(mal->dcr_host, reg, val);226226+}227227+228228+/* Features of various MAL implementations */229229+230230+/* Set if you have interrupt coalescing and you have to clear the SDR231231+ * register for TXEOB and RXEOB interrupts to work232232+ */233233+#define MAL_FTR_CLEAR_ICINTSTAT 0x00000001234234+235235+/* Set if your MAL has SERR, TXDE, and RXDE OR'd into a single UIC236236+ * interrupt237237+ */238238+#define MAL_FTR_COMMON_ERR_INT 0x00000002239239+240240+enum {241241+ MAL_FTRS_ALWAYS = 0,242242+243243+ MAL_FTRS_POSSIBLE =244244+#ifdef CONFIG_IBM_NEW_EMAC_MAL_CLR_ICINTSTAT245245+ MAL_FTR_CLEAR_ICINTSTAT |246246+#endif247247+#ifdef CONFIG_IBM_NEW_EMAC_MAL_COMMON_ERR248248+ MAL_FTR_COMMON_ERR_INT |249249+#endif250250+ 0,251251+};252252+253253+static inline int mal_has_feature(struct mal_instance *dev,254254+ unsigned long feature)255255+{256256+ return (MAL_FTRS_ALWAYS & feature) ||257257+ (MAL_FTRS_POSSIBLE & dev->features & feature);228258}229259230260/* Register MAL devices */
+84
drivers/net/ibm_newemac/phy.c
···3838 phy->mdio_write(phy->dev, phy->address, reg, val);3939}40404141+static inline int gpcs_phy_read(struct mii_phy *phy, int reg)4242+{4343+ return phy->mdio_read(phy->dev, phy->gpcs_address, reg);4444+}4545+4646+static inline void gpcs_phy_write(struct mii_phy *phy, int reg, int val)4747+{4848+ phy->mdio_write(phy->dev, phy->gpcs_address, reg, val);4949+}5050+4151int emac_mii_reset_phy(struct mii_phy *phy)4252{4353 int val;···6858 }6959 if ((val & BMCR_ISOLATE) && limit > 0)7060 phy_write(phy, MII_BMCR, val & ~BMCR_ISOLATE);6161+6262+ return limit <= 0;6363+}6464+6565+int emac_mii_reset_gpcs(struct mii_phy *phy)6666+{6767+ int val;6868+ int limit = 10000;6969+7070+ val = gpcs_phy_read(phy, MII_BMCR);7171+ val &= ~(BMCR_ISOLATE | BMCR_ANENABLE);7272+ val |= BMCR_RESET;7373+ gpcs_phy_write(phy, MII_BMCR, val);7474+7575+ udelay(300);7676+7777+ while (limit--) {7878+ val = gpcs_phy_read(phy, MII_BMCR);7979+ if (val >= 0 && (val & BMCR_RESET) == 0)8080+ break;8181+ udelay(10);8282+ }8383+ if ((val & BMCR_ISOLATE) && limit > 0)8484+ gpcs_phy_write(phy, MII_BMCR, val & ~BMCR_ISOLATE);8585+8686+ if (limit > 0 && phy->mode == PHY_MODE_SGMII) {8787+ /* Configure GPCS interface to recommended setting for SGMII */8888+ gpcs_phy_write(phy, 0x04, 0x8120); /* AsymPause, FDX */8989+ gpcs_phy_write(phy, 0x07, 0x2801); /* msg_pg, toggle */9090+ gpcs_phy_write(phy, 0x00, 0x0140); /* 1Gbps, FDX */9191+ }71927293 return limit <= 0;7394}···373332 return 0;374333}375334335335+static int m88e1112_init(struct mii_phy *phy)336336+{337337+ /*338338+ * Marvell 88E1112 PHY needs to have the SGMII MAC339339+ * interace (page 2) properly configured to340340+ * communicate with the 460EX/GT GPCS interface.341341+ */342342+343343+ u16 reg_short;344344+345345+ pr_debug("%s: Marvell 88E1112 Ethernet\n", __func__);346346+347347+ /* Set access to Page 2 */348348+ phy_write(phy, 0x16, 0x0002);349349+350350+ phy_write(phy, 0x00, 0x0040); /* 1Gbps */351351+ reg_short = (u16)(phy_read(phy, 0x1a));352352+ reg_short |= 0x8000; /* bypass Auto-Negotiation */353353+ phy_write(phy, 0x1a, reg_short);354354+ emac_mii_reset_phy(phy); /* reset MAC interface */355355+356356+ /* Reset access to Page 0 */357357+ phy_write(phy, 0x16, 0x0000);358358+359359+ return 0;360360+}361361+376362static int et1011c_init(struct mii_phy *phy)377363{378364 u16 reg_short;···452384 .ops = &m88e1111_phy_ops,453385};454386387387+static struct mii_phy_ops m88e1112_phy_ops = {388388+ .init = m88e1112_init,389389+ .setup_aneg = genmii_setup_aneg,390390+ .setup_forced = genmii_setup_forced,391391+ .poll_link = genmii_poll_link,392392+ .read_link = genmii_read_link393393+};394394+395395+static struct mii_phy_def m88e1112_phy_def = {396396+ .phy_id = 0x01410C90,397397+ .phy_id_mask = 0x0ffffff0,398398+ .name = "Marvell 88E1112 Ethernet",399399+ .ops = &m88e1112_phy_ops,400400+};401401+455402static struct mii_phy_def *mii_phy_table[] = {456403 &et1011c_phy_def,457404 &cis8201_phy_def,458405 &bcm5248_phy_def,459406 &m88e1111_phy_def,407407+ &m88e1112_phy_def,460408 &genmii_phy_def,461409 NULL462410};
+2
drivers/net/ibm_newemac/phy.h
···5757 or determined automaticaly */5858 int address; /* PHY address */5959 int mode; /* PHY mode */6060+ int gpcs_address; /* GPCS PHY address */60616162 /* 1: autoneg enabled, 0: disabled */6263 int autoneg;···8281 */8382int emac_mii_phy_probe(struct mii_phy *phy, int address);8483int emac_mii_reset_phy(struct mii_phy *phy);8484+int emac_mii_reset_gpcs(struct mii_phy *phy);85858686#endif /* __IBM_NEWEMAC_PHY_H */