Update support for MPC512x
Subsystems (11)
Anatolij Gustschin
maintainercover Update support for MPC512x
This patch series brings support for the Freescale MPC512x processsors up to date:
powerpc/mpc5121: Add machine restart support
rtc: Add MPC5121 Real time clock driver
mtd: Add NAND Flash Controller driver
dma: Add MPC512x DMA driver powerpc/mpc5121: add USB host support powerpc/mpc5121: shared DIU framebuffer support powerpc/mpc5121: update mpc5121ads DTS powerpc/mpc5121: Add default config for MPC5121ADS
The patches are based on v2.6.33-rc5 and cover the following items:
- platform, DTS
- DMA
- DIU
- UART (without h/w flow control)
- I2C
- NAND
- RTC
The code has been tested on the Freescale/STX "MPC5121ADS" board (board rev. 4) with a MPC5121e Rev. 2. No attempt was made to provide backward compatibility to older silicon revisions or older revisions of the board.
Changes since v1:
- MPC5121 FEC support patches are removed from this patch series as these were not accepted
- I2C support path is also removed, the I2C support is addressed by another patch series from Wolfgang Grandegger:
i2c-mpc: add support for the Freescale MPC512x and other fixes
Appropriate fixes for MPC5121ADS DTS are addressed by DTS patch in this patch series
- Detailed changelog is added to each patch of the series
---
Anatolij Gustschin
maintainerPATCH v2 2/8 rtc: Add MPC5121 Real time clock driver
From: John Rigby <[email protected]>
Based on Domen Puncer's rtc driver for 5200.
Changes to Domen's original:
Changed filenames/routine names from mpc5200* to mpc5121* Changed match to only care about compatible and use "fsl," convention for compatible.
Make alarms more sane by dealing with lack of second alarm resolution.
Deal with the fact that most of the 5121 rtc registers are not persistent across a reset even with a battery attached:
Use actual_time register for time keeping and target_time register as an offset to linux time
The target_time register would normally be used for hibernation but hibernation does not work on current silicon
---
Changes since v1 (as requested by Alessandro Zummo):
- Remove history from the driver file, the same history is in commit message
- implement alarm/irq interface using ->ops structure, don't use ops->ioctl() any more
- Clean up probe()
- replace printk() by dev_*()
- add arch dependency in Kconfig
- add requested include linux/init.h
- move MODULE_XXX to the end
- use rtc_valid_tm() when returning 'tm'
- use __init/__exit/__exit_p as this is not a hotpluggable device
drivers/rtc/Kconfig | 10 ++ drivers/rtc/Makefile | 1 + drivers/rtc/rtc-mpc5121.c | 386 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 397 insertions(+), 0 deletions(-) create mode 100644 drivers/rtc/rtc-mpc5121.c
drivers/rtc/Kconfig +10 -0
@@ -868,4 +868,14 @@ config RTC_DRV_MC13783 help This enables support for the Freescale MC13783 PMIC RTC +config RTC_DRV_MPC5121 + tristate "Freescale MPC5121 built-in RTC" + depends on PPC_MPC512x && RTC_CLASS + help + If you say yes here you will get support for the + built-in RTC MPC5121. + + This driver can also be built as a module. If so, the module + will be called rtc-mpc5121. + endif # RTC_CLASS
drivers/rtc/Makefile +1 -0
@@ -55,6 +55,7 @@ obj-$(CONFIG_RTC_DRV_MAX6900) += rtc-max6900.o obj-$(CONFIG_RTC_DRV_MAX6902) += rtc-max6902.o obj-$(CONFIG_RTC_DRV_MC13783) += rtc-mc13783.o obj-$(CONFIG_RTC_DRV_MSM6242) += rtc-msm6242.o +obj-$(CONFIG_RTC_DRV_MPC5121) += rtc-mpc5121.o obj-$(CONFIG_RTC_DRV_MV) += rtc-mv.o obj-$(CONFIG_RTC_DRV_NUC900) += rtc-nuc900.o obj-$(CONFIG_RTC_DRV_OMAP) += rtc-omap.o
drivers/rtc/rtc-mpc5121.c new file +386 -0
386 lines not on this page · raw message
Signature · 1 line
1.5.6.3
Anatolij Gustschin
maintainerPATCH v2 1/8 powerpc/mpc5121: Add machine restart support
In reply to Anatolij GustschinAdd reset module registers representation and machine restart callback for mpc5121 platform.
---
Changes since v1:
- use 'struct mpc512x_reset_module *' type for 'reset_module_base'
- remove empty line
- remove leftover colon and use pr_err() instead of printk.
arch/powerpc/include/asm/mpc5xxx.h | 14 +++++++++- arch/powerpc/platforms/512x/mpc5121_ads.c | 1 + arch/powerpc/platforms/512x/mpc5121_generic.c | 1 + arch/powerpc/platforms/512x/mpc512x.h | 1 + arch/powerpc/platforms/512x/mpc512x_shared.c | 34 +++++++++++++++++++++++++ 5 files changed, 50 insertions(+), 1 deletions(-)
arch/powerpc/include/asm/mpc5xxx.h +13 -1
@@ -18,5 +18,17 @@extern unsigned long mpc5xxx_get_bus_frequency (struct device_node *node); -#endif /* __ASM_POWERPC_MPC5xxx_H__ */ +/* MPC512x Reset module registers */ +struct mpc512x_reset_module { +u32 rcwlr;/* Reset Configuration Word Low Register */ +u32 rcwhr;/* Reset Configuration Word High Register */ +u32 reserved1; +u32 reserved2; +u32 rsr;/* Reset Status Register */ +u32 rmr;/* Reset Mode Register */ +u32 rpr;/* Reset Protection Register */ +u32 rcr;/* Reset Control Register */ +u32 rcer;/* Reset Control Enable Register */ +}; +#endif /* __ASM_POWERPC_MPC5xxx_H__ */
arch/powerpc/platforms/512x/mpc5121_ads.c +1 -0
@@ -68,4 +68,5 @@ define_machine(mpc5121_ads) { .init_IRQ = mpc5121_ads_init_IRQ, .get_irq = ipic_get_irq, .calibrate_decr = generic_calibrate_decr, + .restart = mpc512x_restart, };
arch/powerpc/platforms/512x/mpc5121_generic.c +1 -0
@@ -55,4 +55,5 @@ define_machine(mpc5121_generic) { .init_IRQ = mpc512x_init_IRQ, .get_irq = ipic_get_irq, .calibrate_decr = generic_calibrate_decr, + .restart = mpc512x_restart, };
arch/powerpc/platforms/512x/mpc512x.h +1 -0
@@ -12,5 +12,6 @@#ifndef __MPC512X_H__#define __MPC512X_H__extern void __init mpc512x_init_IRQ (void ); +extern void mpc512x_restart (char *cmd);void __init mpc512x_declare_of_platform_devices (void );#endif /* __MPC512X_H__ */
arch/powerpc/platforms/512x/mpc512x_shared.c +34 -0
@@ -21,9 +21,43 @@#include <asm/ipic.h> #include <asm/prom.h> #include <asm/time.h> +#include <asm/mpc5xxx.h> #include "mpc512x.h" +static struct mpc512x_reset_module __iomem *reset_module_base; + +static int __init mpc512x_restart_init (void ) +{ +struct device_node *np; + + np =of_find_compatible_node (NULL ,NULL ,"fsl,mpc5121-reset" ); +if (!np) +return -1 ; + + reset_module_base =of_iomap (np,0 ); +of_node_put (np); + +return 0 ; +} +arch_initcall (mpc512x_restart_init); + +void mpc512x_restart (char *cmd) +{ +struct mpc512x_reset_module *rm = reset_module_base; + +if (rm) { +/* Enable software reset "RSTE" */ +out_be32 (&rm->rpr,0x52535445 ); +/* Set software hard reset */ +out_be32 (&rm->rcr,0x2 ); + }else { +pr_err ("Restart module not mapped.\n" ); + } +for (;;) + ; +} +void __init mpc512x_init_IRQ (void ) {struct device_node *np;
Signature · 1 line
1.5.6.3
Anatolij Gustschin
maintainerPATCH v2 3/8 mtd: Add MPC5121 NAND Flash Controller driver
In reply to Anatolij GustschinFrom: Piotr Ziecik <[email protected]>
Adds NAND Flash Controller driver for MPC5121 Revision 2. All device features, except hardware ECC and power management, are supported.
---
Changes since v1:
- add logfile with changes since previous version
Changes since the patch version submitted in May 2009:
- move mpc5121_nfc.h to the driver .c as there is only one user
- remove DRV_VERSION macro
- replace printk() by dev_*()
- drop unnecessary .suspend and .resume initializations
- remove duplicate .name/.owner settings
- fix mpc5121_nfc_init() to "return of_register_platform_driver(&mpc5121_nfc_driver);"
- move module_init() to just below the init function
- remove MODULE_VERSION
- use "mtd: Add MPC5121 NAND Flash Controller driver" as the subject, previously it was "mpc5121: Added NAND Flash Controller driver."
arch/powerpc/platforms/512x/mpc512x_shared.c | 1 + drivers/mtd/nand/Kconfig | 7 + drivers/mtd/nand/Makefile | 1 + drivers/mtd/nand/mpc5121_nfc.c | 916 ++++++++++++++++++++++++++ 4 files changed, 925 insertions(+), 0 deletions(-) create mode 100644 drivers/mtd/nand/mpc5121_nfc.c
arch/powerpc/platforms/512x/mpc512x_shared.c +1 -0
@@ -82,6 +82,7 @@ void __init mpc512x_init_IRQ(void)static struct of_device_id __initdata of_bus_ids[] = { { .compatible ="fsl,mpc5121-immr" , }, { .compatible ="fsl,mpc5121-localbus" , }, + { .compatible ="fsl,mpc5121-nfc" , }, {}, };
drivers/mtd/nand/Kconfig +7 -0
@@ -442,6 +442,13 @@ config MTD_NAND_FSL_UPM Enables support for NAND Flash chips wired onto Freescale PowerPC processor localbus with User-Programmable Machine support. +config MTD_NAND_MPC5121_NFC + tristate "MPC5121 built-in NAND Flash Controller support" + depends on PPC_MPC512x + help + This enables the driver for the NAND flash controller on the + MPC5121 SoC. + config MTD_NAND_MXC tristate "MXC NAND support" depends on ARCH_MX2 || ARCH_MX3
drivers/mtd/nand/Makefile +1 -0
@@ -42,5 +42,6 @@ obj-$(CONFIG_MTD_NAND_TXX9NDFMC) += txx9ndfmc.o obj-$(CONFIG_MTD_NAND_W90P910) += w90p910_nand.o obj-$(CONFIG_MTD_NAND_NOMADIK) += nomadik_nand.o obj-$(CONFIG_MTD_NAND_BCM_UMI) += bcm_umi_nand.o nand_bcm_umi.o +obj-$(CONFIG_MTD_NAND_MPC5121_NFC) += mpc5121_nfc.o nand-objs := nand_base.o nand_bbt.o
drivers/mtd/nand/mpc5121_nfc.c new file +916 -0
916 lines not on this page · raw message
Signature · 1 line
1.5.6.3
Anatolij Gustschin
maintainerPATCH v2 4/8 dma: Add MPC512x DMA driver
In reply to Anatolij GustschinFrom: Piotr Ziecik <[email protected]>
Adds initial version of MPC512x DMA driver. Only memory to memory transfers are currenly supported.
---
Changes since v1:
- move content of the mpc512x.h into the drivers .c file as it is only used by this DMA driver
- use __devinit/__devexit/__devexit_p as requested
- add unregistration of the dma device
- remove meaningless comment
Changes since patch version submitted in May 2009:
- don't use wildcards in compatible property, use "fsl,mpc5121-dma"
- don't add "fsl,mpc5121-dma" compatible to of_bus_ids[] as the dma device is part of IMMR
drivers/dma/Kconfig | 7 + drivers/dma/Makefile | 1 + drivers/dma/mpc512x_dma.c | 800 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 808 insertions(+), 0 deletions(-) create mode 100644 drivers/dma/mpc512x_dma.c
drivers/dma/Kconfig +7 -0
@@ -69,6 +69,13 @@ config FSL_DMA The Elo is the DMA controller on some 82xx and 83xx parts, and the Elo Plus is the DMA controller on 85xx and 86xx parts. +config MPC512X_DMA + tristate "Freescale MPC512x built-in DMA engine support" + depends on PPC_MPC512x + select DMA_ENGINE + ---help--- + Enable support for the Freescale MPC512x built-in DMA engine. + config MV_XOR bool "Marvell XOR engine support" depends on PLAT_ORION
drivers/dma/Makefile +1 -0
@@ -4,6 +4,7 @@ obj-$(CONFIG_DMATEST) += dmatest.o obj-$(CONFIG_INTEL_IOATDMA) += ioat/ obj-$(CONFIG_INTEL_IOP_ADMA) += iop-adma.o obj-$(CONFIG_FSL_DMA) += fsldma.o +obj-$(CONFIG_MPC512X_DMA) += mpc512x_dma.o obj-$(CONFIG_MV_XOR) += mv_xor.o obj-$(CONFIG_DW_DMAC) += dw_dmac.o obj-$(CONFIG_AT_HDMAC) += at_hdmac.o
drivers/dma/mpc512x_dma.c new file +800 -0
800 lines not on this page · raw message
Signature · 1 line
1.5.6.3
Anatolij Gustschin
maintainerPATCH v2 5/8 powerpc/mpc5121: add USB host support
In reply to Anatolij GustschinPlatform specific code for MPC5121 USB Host support. MPC5121 Rev 2.0 silicon EHCI registers are big endian. Add appropriate support by specifying "fsl,big-endian-regs" property in device tree node for USB controller. Also allow specifying DRVVBUS and PWR_FAULT signal polarity of the MPC5121 internal PHY using "fsl,invert-drvvbus" and "fsl,invert-pwr-fault" properties.
---
Changes since v1:
- prefix the property names with 'fsl,'
- drop currently unused USB_FSL_BIG_ENDIAN_MMIO config option
- remove unrelated changes which can be addressed by separate patch
- fix commit message
Note that EHCI FSL driver extention in this patch applies on top of the following two patches (in the linux-next tree):
commit 23c3314b88f91db51bd198ed92e34cffb67788dd
Author: Anton Vorontsov <[email protected]> Date: Mon Dec 14 18:41:12 2009 +0300
USB: ehci-fsl: Add power management support
commit bf4bf2d9f646eb0cc531d213a13ffcedf9d6785f
Author: Anton Vorontsov <[email protected]> Date: Mon Dec 14 18:41:05 2009 +0300
USB: ehci-fsl: Fix sparse warnings
Documentation/powerpc/dts-bindings/fsl/usb.txt | 8 ++ arch/powerpc/platforms/512x/Kconfig | 3 + arch/powerpc/platforms/512x/Makefile | 2 +- arch/powerpc/platforms/512x/mpc5121_ads.c | 1 + arch/powerpc/platforms/512x/mpc5121_usb.c | 117 ++++++++++++++++++++++++ arch/powerpc/platforms/512x/mpc512x.h | 1 + arch/powerpc/sysdev/fsl_soc.c | 10 ++ arch/powerpc/sysdev/fsl_soc.h | 9 ++ drivers/usb/host/ehci-fsl.c | 111 ++++++++++++++++------ drivers/usb/host/ehci-fsl.h | 19 ++++- drivers/usb/host/ehci-mem.c | 2 +- include/linux/fsl_devices.h | 10 ++ 12 files changed, 260 insertions(+), 33 deletions(-) create mode 100644 arch/powerpc/platforms/512x/mpc5121_usb.c
Documentation/powerpc/dts-bindings/fsl/usb.txt +8 -0
@@ -33,6 +33,14 @@ Recommended properties : - interrupt-parent : the phandle for the interrupt controller that services interrupts for this device. +Optional properties : + - fsl,big-endian-regs : boolean; if defined, indicates the USB host + controller registers format is big endian. + - fsl,invert-drvvbus : boolean; for MPC5121 only. Indicates the port + power polarity of internal PHY signal DRVVBUS is inverted. + - fsl,invert-pwr-fault : boolean; for MPC5121 only. Indicates the + PWR_FAULT signal polarity is inverted. + Example multi port host USB controller device node : usb@22000 { compatible = "fsl-usb2-mph";
arch/powerpc/platforms/512x/Kconfig +3 -0
@@ -9,6 +9,9 @@ config PPC_MPC512x config PPC_MPC5121 bool select PPC_MPC512x + select USB_ARCH_HAS_EHCI + select USB_EHCI_BIG_ENDIAN_DESC + select USB_EHCI_BIG_ENDIAN_MMIO config MPC5121_ADS bool "Freescale MPC5121E ADS"
arch/powerpc/platforms/512x/Makefile +1 -1
@@ -1,6 +1,6 @@ # # Makefile for the Freescale PowerPC 512x linux kernel. # -obj-y += clock.o mpc512x_shared.o +obj-y += clock.o mpc512x_shared.o mpc5121_usb.o obj-$(CONFIG_MPC5121_ADS) += mpc5121_ads.o mpc5121_ads_cpld.o obj-$(CONFIG_MPC5121_GENERIC) += mpc5121_generic.o
arch/powerpc/platforms/512x/mpc5121_ads.c +1 -0
@@ -42,6 +42,7 @@ static void __init mpc5121_ads_setup_arch(void)for_each_compatible_node (np,"pci" ,"fsl,mpc5121-pci" )mpc83xx_add_bridge (np);#endif +mpc5121_usb_init (); }static void __init mpc5121_ads_init_IRQ (void )
arch/powerpc/platforms/512x/mpc5121_usb.c new file +117 -0
117 lines not on this page · raw message
arch/powerpc/platforms/512x/mpc512x.h +1 -0
@@ -13,5 +13,6 @@#define __MPC512X_H__extern void __init mpc512x_init_IRQ (void );extern void mpc512x_restart (char *cmd); +extern void mpc5121_usb_init (void );void __init mpc512x_declare_of_platform_devices (void );#endif /* __MPC512X_H__ */
arch/powerpc/sysdev/fsl_soc.c +10 -0
@@ -209,6 +209,9 @@ static int __init of_add_fixed_phys(void)arch_initcall (of_add_fixed_phys);#endif /* CONFIG_FIXED_PHY */ +struct fsl_platform_usb_ops fsl_platform_usb_ops; +EXPORT_SYMBOL (fsl_platform_usb_ops); +static enum fsl_usb2_phy_modes determine_usb_phy (const char *phy_type) {if (!phy_type)
@@ -267,6 +270,9 @@ static int __init fsl_usb_of_init(void)if (prop) usb_data.port_enables |=FSL_USB2_PORT1_ENABLED ; +if (of_get_property (np,"fsl,big-endian-regs" ,NULL )) + usb_data.big_endian_mmio =1 ; + prop =of_get_property (np,"phy_type" ,NULL ); usb_data.phy_mode =determine_usb_phy (prop);
@@ -332,9 +338,13 @@ static int __init fsl_usb_of_init(void) ret = -EINVAL ; goto err; } +if (of_get_property (np,"fsl,big-endian-regs" ,NULL )) + usb_data.big_endian_mmio =1 ; prop =of_get_property (np,"phy_type" ,NULL ); usb_data.phy_mode =determine_usb_phy (prop); + usb_data.platform_init = fsl_platform_usb_ops.init; + usb_data.platform_uninit = fsl_platform_usb_ops.uninit;if (usb_dev_dr_host) { usb_dev_dr_host->dev.coherent_dma_mask =0xffffffffUL ;
arch/powerpc/sysdev/fsl_soc.h +9 -0
@@ -35,5 +35,14 @@ struct platform_diu_data_ops {extern struct platform_diu_data_ops diu_ops;#endif +struct platform_device ; + +struct fsl_platform_usb_ops { +int (*init)(struct platform_device *); +void (*uninit)(struct platform_device *); +}; + +extern struct fsl_platform_usb_ops fsl_platform_usb_ops; +#endif #endif
drivers/usb/host/ehci-fsl.c +81 -30
191 lines not on this page · raw message
drivers/usb/host/ehci-fsl.h +18 -1
@@ -1,4 +1,4 @@ -/* Copyright (c) 2005 freescale semiconductor +/* Copyright (C) 2005-2009 Freescale Semiconductor, Inc. All rights reserved. * Copyright (c) 2005 MontaVista Software * * This program is free software; you can redistribute it and/or modify it
@@ -19,6 +19,11 @@#define _EHCI_FSL_H/* offsets for the non-ehci registers in the FSL SOC USB controller */ +#define FSL_SOC_USB_ID 0x0 +#define ID_MSK 0x3f +#define NID_MSK 0x3f00 +#define FSL_SOC_USB_SBUSCFG 0x90 +#define FSL_SOC_USB_BURSTSIZE 0x160#define FSL_SOC_USB_ULPIVP 0x170#define FSL_SOC_USB_PORTSC1 0x184#define PORT_PTS_MSK (3<<30)
@@ -26,8 +31,20 @@#define PORT_PTS_ULPI (2<<30)#define PORT_PTS_SERIAL (3<<30)#define PORT_PTS_PTW (1<<28) +#define PORT_PTS_PHCD (1<<23)#define FSL_SOC_USB_PORTSC2 0x188#define FSL_SOC_USB_USBMODE 0x1a8 +#define USBMODE_CM_MASK (3 << 0)/* controller mode mask */ +#define USBMODE_CM_HOST (3 << 0)/* controller mode: host */ +#define USBMODE_ES (1 << 2)/* (Big) Endian Select */ + +#define FSL_SOC_USB_USBGENCTRL 0x200 +#define USBGENCTRL_PPP (1 << 3) +#define USBGENCTRL_PFP (1 << 2) +#define FSL_SOC_USB_ISIPHYCTRL 0x204 +#define ISIPHYCTRL_PXE (1) +#define ISIPHYCTRL_PHYE (1 << 4) +#define FSL_SOC_USB_SNOOP1 0x400/* NOTE: big-endian */ #define FSL_SOC_USB_SNOOP2 0x404/* NOTE: big-endian */ #define FSL_SOC_USB_AGECNTTHRSH 0x408/* NOTE: big-endian */
drivers/usb/host/ehci-mem.c +1 -1
@@ -40,7 +40,7 @@ static inline void ehci_qtd_init(struct ehci_hcd *ehci, struct ehci_qtd *qtd, {memset (qtd,0 ,sizeof *qtd); qtd->qtd_dma = dma; - qtd->hw_token =cpu_to_le32 (QTD_STS_HALT ); + qtd->hw_token =cpu_to_hc32 (ehci,QTD_STS_HALT ); qtd->hw_next =EHCI_LIST_END (ehci); qtd->hw_alt_next =EHCI_LIST_END (ehci);INIT_LIST_HEAD (&qtd->qtd_list);
include/linux/fsl_devices.h +10 -0
@@ -58,11 +58,21 @@ enum fsl_usb2_phy_modes { FSL_USB2_PHY_SERIAL, }; +struct platform_device ;struct fsl_usb2_platform_data {/* board specific information */ enum fsl_usb2_operating_modes operating_mode;enum fsl_usb2_phy_modes phy_mode;unsigned int port_enables; + +char *name;/* pretty print */ +int (*platform_init) (struct platform_device *); +void (*platform_uninit) (struct platform_device *); +void __iomem *regs;/* ioremap'd register base */ +unsigned big_endian_mmio:1 ; +unsigned big_endian_desc:1 ; +unsigned es:1 ;/* need USBMODE:ES */ +unsigned have_sysif_regs:1 ; };/* Flags in fsl_usb2_mph_platform_data */
Signature · 1 line
1.5.6.3
Anatolij Gustschin
maintainerPATCH v2 6/8 powerpc/mpc5121: shared DIU framebuffer support
In reply to Anatolij GustschinMPC5121 DIU configuration/setup as initialized by the boot loader currently will get lost while booting Linux. As a result displaying the boot splash is not possible through the boot process.
To prevent this we reserve configured DIU frame buffer address range while booting and preserve AOI descriptor and gamma table so that DIU continues displaying through the whole boot process. On first open from user space DIU frame buffer driver releases the reserved frame buffer area and continues to operate as usual.
The patch also moves drivers/video/fsl-diu-fb.h file to include/linux as we use some DIU structures in platform code.
'diu_ops' callbacks in platform code borrowed from John's DIU code.
---
Changes since v1:
- specify align attribute before "diu_shared_fb" variable name to fix checkpatch warning
arch/powerpc/platforms/512x/mpc5121_ads.c | 7 +
arch/powerpc/platforms/512x/mpc5121_generic.c | 12 +
arch/powerpc/platforms/512x/mpc512x.h | 3 +
arch/powerpc/platforms/512x/mpc512x_shared.c | 284 ++++++++++++++++++++++++-
arch/powerpc/sysdev/fsl_soc.h | 1 +
drivers/video/fsl-diu-fb.c | 40 +++-
{drivers/video => include/linux}/fsl-diu-fb.h | 0
7 files changed, 341 insertions(+), 6 deletions(-)
rename {drivers/video => include/linux}/fsl-diu-fb.h (100%)arch/powerpc/platforms/512x/mpc5121_ads.c +7 -0
@@ -42,6 +42,7 @@ static void __init mpc5121_ads_setup_arch(void)for_each_compatible_node (np,"pci" ,"fsl,mpc5121-pci" )mpc83xx_add_bridge (np);#endif +mpc512x_setup_diu ();mpc5121_usb_init (); }
@@ -61,12 +62,18 @@ static int __init mpc5121_ads_probe(void)return of_flat_dt_is_compatible (root,"fsl,mpc5121ads" ); } +void __init mpc5121_ads_init_early (void ) +{ +mpc512x_init_diu (); +} +define_machine (mpc5121_ads) { .name = "MPC5121 ADS", .probe = mpc5121_ads_probe, .setup_arch = mpc5121_ads_setup_arch, .init = mpc512x_declare_of_platform_devices, .init_IRQ = mpc5121_ads_init_IRQ, + .init_early = mpc5121_ads_init_early, .get_irq = ipic_get_irq, .calibrate_decr = generic_calibrate_decr, .restart = mpc512x_restart,
arch/powerpc/platforms/512x/mpc5121_generic.c +12 -0
@@ -48,10 +48,22 @@ static int __init mpc5121_generic_probe(void)return board[i] !=NULL ; } +void __init mpc512x_generic_init_early (void ) +{ +mpc512x_init_diu (); +} + +void __init mpc512x_generic_setup_arch (void ) +{ +mpc512x_setup_diu (); +} +define_machine (mpc5121_generic) { .name = "MPC5121 generic", .probe = mpc5121_generic_probe, .init = mpc512x_declare_of_platform_devices, + .init_early = mpc512x_generic_init_early, + .setup_arch = mpc512x_generic_setup_arch, .init_IRQ = mpc512x_init_IRQ, .get_irq = ipic_get_irq, .calibrate_decr = generic_calibrate_decr,
arch/powerpc/platforms/512x/mpc512x.h +3 -0
@@ -14,5 +14,8 @@extern void __init mpc512x_init_IRQ (void );extern void mpc512x_restart (char *cmd);extern void mpc5121_usb_init (void ); +extern void __init mpc512x_init_diu (void ); +extern void __init mpc512x_setup_diu (void ); +extern struct fsl_diu_shared_fb diu_shared_fb;void __init mpc512x_declare_of_platform_devices (void );#endif /* __MPC512X_H__ */
arch/powerpc/platforms/512x/mpc512x_shared.c +283 -1
300 lines not on this page · raw message
arch/powerpc/sysdev/fsl_soc.h +1 -0
@@ -30,6 +30,7 @@ struct platform_diu_data_ops {void (*set_pixel_clock) (unsigned int pixclock);ssize_t (*show_monitor_port) (int monitor_port,char *buf);int (*set_sysfs_monitor_port) (int val); +void (*release_bootmem) (void ); };extern struct platform_diu_data_ops diu_ops;
drivers/video/fsl-diu-fb.c +35 -5
@@ -34,7 +34,7 @@#include <linux/of_platform.h> #include <sysdev/fsl_soc.h> -#include "fsl-diu-fb.h" +#include <linux/fsl-diu-fb.h> /* * These parameters give default parameters
@@ -178,6 +178,21 @@ static struct fb_videomode __devinitdata fsl_diu_mode_db[] = { .sync = FB_SYNC_COMP_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, .vmode = FB_VMODE_NONINTERLACED }, + { + .name = "800x480-60", + .refresh = 60, + .xres = 800, + .yres = 480, + .pixclock = 31250, + .left_margin = 86, + .right_margin = 42, + .upper_margin = 33, + .lower_margin = 10, + .hsync_len = 128, + .vsync_len = 2, + .sync = FB_SYNC_COMP_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT, + .vmode =FB_VMODE_NONINTERLACED + }, };static char *fb_mode ="1024x768-32@60" ;
@@ -329,8 +344,11 @@ static int fsl_diu_enable_panel(struct fb_info *info)if (mfbi->type !=MFB_TYPE_OFF ) {switch (mfbi->index) {case 0 :/* plane 0 */ -if (hw->desc[0 ] != ad->paddr) +if (in_be32 (&hw->desc[0 ]) != ad->paddr) { +out_be32 (&dr.diu_reg->diu_mode,0 );out_be32 (&hw->desc[0 ], ad->paddr); +out_be32 (&dr.diu_reg->diu_mode,1 ); + }break ;case 1 :/* plane 1 AOI 0 */ cmfbi = machine_data->fsl_diu_info[2 ]->par;
@@ -389,7 +407,7 @@ static int fsl_diu_disable_panel(struct fb_info *info)switch (mfbi->index) {case 0 :/* plane 0 */ -if (hw->desc[0 ] != machine_data->dummy_ad->paddr) +if (in_be32 (&hw->desc[0 ]) != machine_data->dummy_ad->paddr)out_be32 (&hw->desc[0 ], machine_data->dummy_ad->paddr);break ;
@@ -1100,6 +1118,10 @@ static int fsl_diu_open(struct fb_info *info, int user)struct mfb_info *mfbi = info->par;int res =0 ; +/* free boot splash memory on first /dev/fb0 open */ +if (!mfbi->index && diu_ops.release_bootmem) + diu_ops.release_bootmem (); +spin_lock (&diu_lock); mfbi->count++;if (mfbi->count ==1 ) {
@@ -1427,6 +1449,7 @@ static int __devinit fsl_diu_probe(struct of_device *ofdev,int ret, i, error =0 ;struct resource res;struct fsl_diu_data *machine_data; +int diu_mode; machine_data =kzalloc (sizeof (struct fsl_diu_data ),GFP_KERNEL );if (!machine_data)
@@ -1463,7 +1486,9 @@ static int __devinit fsl_diu_probe(struct of_device *ofdev, goto error2; } -out_be32 (&dr.diu_reg->diu_mode,0 );/* disable DIU anyway*/ + diu_mode =in_be32 (&dr.diu_reg->diu_mode); +if (diu_mode !=MFB_MODE1 ) +out_be32 (&dr.diu_reg->diu_mode,0 );/* disable DIU */ /* Get the IRQ of the DIU */ machine_data->irq =irq_of_parse_and_map (np,0 );
@@ -1511,7 +1536,12 @@ static int __devinit fsl_diu_probe(struct of_device *ofdev, machine_data->dummy_ad->offset_xyd =0 ; machine_data->dummy_ad->next_ad =0 ; -out_be32 (&dr.diu_reg->desc[0 ], machine_data->dummy_ad->paddr); +/* Let DIU display splash screen if it was pre-initialized +* by the bootloader, set dummy area descriptor otherwise. +*/ +if (diu_mode !=MFB_MODE1 ) +out_be32 (&dr.diu_reg->desc[0 ], machine_data->dummy_ad->paddr); +out_be32 (&dr.diu_reg->desc[1 ], machine_data->dummy_ad->paddr);out_be32 (&dr.diu_reg->desc[2 ], machine_data->dummy_ad->paddr);
include/linux/fsl-diu-fb.h renamed from drivers/video/fsl-diu-fb.h +0 -0
Signature · 1 line
1.5.6.3
Anatolij Gustschin
maintainerPATCH v2 7/8 powerpc/mpc5121: update mpc5121ads DTS
In reply to Anatolij GustschinCollects several changes needed after applying previous mpc5121 platform and driver patches:
- Add mpc5121 reset module node
- Clean up and fix NAND description, remove unused properties here and correct NAND flash chip size.
- Clean up I2C nodes: remove obsolete "cell-index" properties, add "fsl,preserve-clocking" property
- Add I2C RTC node for m41t61 RTC
- Add I2C nodes for AD7414 temperature sensor and AT24C32CD3 EEPROM
- Fix compatible property in DMA node
- Clean up CAN nodes, remove unused "cell-index" properties
- Fix compatible property in DIU node
- USB node changes:
- remove "port0" and "port1" properties as these are only used for multi-port host(MHP) module which is not available on MPC5121.
- MPC5121 Rev 2.0 EHCI registers are big endian. 'fsl,big-endian-regs' property in USB node indicates this now.
- use 'fsl,invert-drvvbus' and 'fsl,invert-pwr-fault' in USB node for internal PHY to specify polarities
of the appropriate port pins.
---
Changes since v1:
- move RTC node for m41t61 RTC to the node for I2C0
- add nodes for AD74114 and AT24C32CD3 devices
- remove obsolete "cell-index" properties from i2c nodes and add "fsl,preserve-clocking" property
- Clean up CAN nodes
- prefix USB properties with 'fsl,'
arch/powerpc/boot/dts/mpc5121ads.dts | 53 +++++++++++++++++++++------------- 1 files changed, 33 insertions(+), 20 deletions(-)
arch/powerpc/boot/dts/mpc5121ads.dts +33 -20
@@ -62,17 +62,12 @@ interrupt-parent = < &ipic >; #address-cells = <1>; #size-cells = <1>; - bank-width = <1>; // ADS has two Hynix 512MB Nand flash chips in a single - // stacked package . + // stacked package. chips = <2>; - nand0@0 { - label = "nand0"; - reg = <0x00000000 0x02000000>; // first 32 MB of chip 0 - }; - nand1@20000000 { - label = "nand1"; - reg = <0x20000000 0x02000000>; // first 32 MB of chip 1 + nand@0 { + label = "nand"; + reg = <0x00000000 0x40000000>; // 512MB + 512MB }; };
@@ -166,6 +161,11 @@ interrupt-parent = < &ipic >; }; + reset@e00 { // Reset module + compatible = "fsl,mpc5121-reset"; + reg = <0xe00 0x100>; + }; + clock@f00 { // Clock control compatible = "fsl,mpc5121-clock"; reg = <0xf00 0x100>;
@@ -185,17 +185,15 @@ interrupt-parent = < &ipic >; }; - mscan@1300 { + can@1300 { compatible = "fsl,mpc5121-mscan"; - cell-index = <0>; interrupts = <12 0x8>; interrupt-parent = < &ipic >; reg = <0x1300 0x80>; }; - mscan@1380 { + can@1380 { compatible = "fsl,mpc5121-mscan"; - cell-index = <1>; interrupts = <13 0x8>; interrupt-parent = < &ipic >; reg = <0x1380 0x80>;
@@ -205,17 +203,31 @@ #address-cells = <1>; #size-cells = <0>; compatible = "fsl,mpc5121-i2c", "fsl-i2c"; - cell-index = <0>; reg = <0x1700 0x20>; interrupts = <9 0x8>; interrupt-parent = < &ipic >; + fsl,preserve-clocking; + + hwmon@4a { + compatible = "adi,ad7414"; + reg = <0x4a>; + }; + + eeprom@50 { + compatible = "at,24c32"; + reg = <0x50>; + }; + + rtc@68 { + compatible = "stm,m41t62"; + 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 >;
@@ -225,7 +237,6 @@ #address-cells = <1>; #size-cells = <0>; compatible = "fsl,mpc5121-i2c", "fsl-i2c"; - cell-index = <2>; reg = <0x1740 0x20>; interrupts = <11 0x8>; interrupt-parent = < &ipic >;
@@ -244,7 +255,7 @@ }; display@2100 { - compatible = "fsl,mpc5121-diu", "fsl-diu"; + compatible = "fsl,mpc5121-diu", "fsl,diu"; reg = <0x2100 0x100>; interrupts = <64 0x8>; interrupt-parent = < &ipic >;
@@ -285,7 +296,7 @@ // interrupts = <43 0x8>; // dr_mode = "otg"; // phy_type = "ulpi"; - // port1; + // fsl,big-endian-regs; //}; // USB0 using internal UTMI PHY
@@ -298,7 +309,9 @@ interrupts = <44 0x8>; dr_mode = "otg"; phy_type = "utmi_wide"; - port0; + fsl,big-endian-regs; + fsl,invert-drvvbus; + fsl,invert-pwr-fault; }; // IO control
@@ -365,7 +378,7 @@ }; dma@14000 { - compatible = "fsl,mpc5121-dma2"; + compatible = "fsl,mpc5121-dma"; reg = <0x14000 0x1800>; interrupts = <65 0x8>; interrupt-parent = < &ipic >;
Signature · 1 line
1.5.6.3
Anatolij Gustschin
maintainerPATCH v2 8/8 powerpc/mpc5121: Add default config for MPC5121
In reply to Anatolij Gustschin---
Provide this file for easier testing.
Changes since v1:
- place defconfig file under arch/powerpc/configs/mpc512x_defconfig
arch/powerpc/configs/mpc512x_defconfig | 1654 ++++++++++++++++++++++++++++++++ 1 files changed, 1654 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/configs/mpc512x_defconfig
arch/powerpc/configs/mpc512x_defconfig new file +1654 -0
@@ -0,0 +1,1654 @@ +# +# Automatically generated make config: don't edit +# Linux kernel version: 2.6.33-rc5 +# Wed Jan 27 10:22:10 2010 +# +# CONFIG_PPC64 is not set + +# +# Processor support +# +CONFIG_PPC_BOOK3S_32=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_6xx=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_PPC_HAVE_PMU_SUPPORT=y +# 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_GENERIC_HARDIRQS_NO__DO_IRQ=y +# CONFIG_HAVE_SETUP_PER_CPU_AREA is not set +# CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK is not set +CONFIG_IRQ_PER_CPU=y +CONFIG_NR_IRQS=512 +CONFIG_STACKTRACE_SUPPORT=y +CONFIG_HAVE_LATENCYTOP_SUPPORT=y +CONFIG_TRACE_IRQFLAGS_SUPPORT=y +CONFIG_LOCKDEP_SUPPORT=y +CONFIG_RWSEM_XCHGADD_ALGORITHM=y +CONFIG_ARCH_HAS_ILOG2_U32=y +CONFIG_GENERIC_HWEIGHT=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_DTC=y +CONFIG_DEFAULT_UIMAGE=y +CONFIG_ARCH_HIBERNATION_POSSIBLE=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" +CONFIG_CONSTRUCTORS=y + +# +# 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_TREE_RCU=y +# CONFIG_TREE_PREEMPT_RCU is not set +# CONFIG_TINY_RCU is not set +# CONFIG_RCU_TRACE is not set +CONFIG_RCU_FANOUT=32 +# CONFIG_RCU_FANOUT_EXACT is not set +# CONFIG_TREE_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_RD_LZO=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_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_HAVE_PERF_EVENTS=y + +# +# Kernel Performance Events And Counters +# +# CONFIG_PERF_EVENTS is not set +# CONFIG_PERF_COUNTERS is not set +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_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_DMA_ATTRS=y +CONFIG_HAVE_CLK=y +CONFIG_HAVE_DMA_API_DEBUG=y + +# +# GCOV-based kernel profiling +# +# 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_LBDAF=y +# CONFIG_BLK_DEV_BSG is not set +# CONFIG_BLK_DEV_INTEGRITY is not set + +# +# IO Schedulers +# +CONFIG_IOSCHED_NOOP=y +CONFIG_IOSCHED_DEADLINE=y +# CONFIG_IOSCHED_CFQ is not set +CONFIG_DEFAULT_DEADLINE=y +# CONFIG_DEFAULT_CFQ is not set +# CONFIG_DEFAULT_NOOP is not set +CONFIG_DEFAULT_IOSCHED="deadline" +# CONFIG_INLINE_SPIN_TRYLOCK is not set +# CONFIG_INLINE_SPIN_TRYLOCK_BH is not set +# CONFIG_INLINE_SPIN_LOCK is not set +# CONFIG_INLINE_SPIN_LOCK_BH is not set +# CONFIG_INLINE_SPIN_LOCK_IRQ is not set +# CONFIG_INLINE_SPIN_LOCK_IRQSAVE is not set +CONFIG_INLINE_SPIN_UNLOCK=y +# CONFIG_INLINE_SPIN_UNLOCK_BH is not set +CONFIG_INLINE_SPIN_UNLOCK_IRQ=y +# CONFIG_INLINE_SPIN_UNLOCK_IRQRESTORE is not set +# CONFIG_INLINE_READ_TRYLOCK is not set +# CONFIG_INLINE_READ_LOCK is not set +# CONFIG_INLINE_READ_LOCK_BH is not set +# CONFIG_INLINE_READ_LOCK_IRQ is not set +# CONFIG_INLINE_READ_LOCK_IRQSAVE is not set +CONFIG_INLINE_READ_UNLOCK=y +# CONFIG_INLINE_READ_UNLOCK_BH is not set +CONFIG_INLINE_READ_UNLOCK_IRQ=y +# CONFIG_INLINE_READ_UNLOCK_IRQRESTORE is not set +# CONFIG_INLINE_WRITE_TRYLOCK is not set +# CONFIG_INLINE_WRITE_LOCK is not set +# CONFIG_INLINE_WRITE_LOCK_BH is not set +# CONFIG_INLINE_WRITE_LOCK_IRQ is not set +# CONFIG_INLINE_WRITE_LOCK_IRQSAVE is not set +CONFIG_INLINE_WRITE_UNLOCK=y +# CONFIG_INLINE_WRITE_UNLOCK_BH is not set +CONFIG_INLINE_WRITE_UNLOCK_IRQ=y +# CONFIG_INLINE_WRITE_UNLOCK_IRQRESTORE is not set +# CONFIG_MUTEX_SPIN_ON_OWNER is not set +# 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_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_SWIOTLB is not set +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_SPARSE_IRQ=y +CONFIG_MAX_ACTIVE_REGIONS=32 +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_KSM is not set +CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 +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_PCIE_ECRC is not set +# CONFIG_PCIEAER_INJECT is not set +# 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_CONSISTENT_SIZE=0x00200000 +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_RDS 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_IEEE802154 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=y +CONFIG_CAN_RAW=y +CONFIG_CAN_BCM=y + +# +# CAN Device Drivers +# +CONFIG_CAN_VCAN=y +CONFIG_CAN_DEV=y +# CONFIG_CAN_CALC_BITTIMING is not set +CONFIG_CAN_MSCAN=y +CONFIG_CAN_MPC5XXX=y +# CONFIG_CAN_SJA1000 is not set + +# +# CAN USB interfaces +# +# CONFIG_CAN_EMS_USB is not set +# CONFIG_CAN_DEBUG_DEVICES is not set +# CONFIG_IRDA is not set +# CONFIG_BT is not set +# CONFIG_AF_RXRPC is not set +CONFIG_WIRELESS=y +# CONFIG_CFG80211 is not set +# CONFIG_LIB80211 is not set + +# +# CFG80211 needs to be enabled for MAC80211 +# +# 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_DEVTMPFS is not set +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_TESTS is not set +# CONFIG_MTD_CONCAT is not set +CONFIG_MTD_PARTITIONS=y +# 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_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_OF_MDIO=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 + +# +# DRBD disabled because PROC_FS, INET or CONNECTOR not selected +# +# 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=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_AD525X_DPOT is not set +# 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_DS1682 is not set +# CONFIG_C2PORT is not set + +# +# EEPROM support +# +CONFIG_EEPROM_AT24=y +# CONFIG_EEPROM_LEGACY is not set +# CONFIG_EEPROM_MAX6875 is not set +# CONFIG_EEPROM_93CX6 is not set +# CONFIG_CB710_CORE is not set +CONFIG_HAVE_IDE=y +# CONFIG_IDE 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 is not set + +# +# 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 +# CONFIG_SCSI_MULTI_LUN is not set +# 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_SCSI_BNX2_ISCSI is not set +# CONFIG_BE2ISCSI is not set +# CONFIG_BLK_DEV_3W_XXXX_RAID is not set +# CONFIG_SCSI_HPSA is not set +# CONFIG_SCSI_3W_9XXX is not set +# CONFIG_SCSI_3W_SAS 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_MVSAS 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_STEX is not set +# CONFIG_SCSI_SYM53C8XX_2 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_PMCRAID is not set +# CONFIG_SCSI_PM8001 is not set +# CONFIG_SCSI_SRP is not set +# CONFIG_SCSI_BFA_FC is not set +# CONFIG_SCSI_DH is not set +# CONFIG_SCSI_OSD_INITIATOR is not set +# CONFIG_ATA is not set +# CONFIG_MD is not set +# CONFIG_FUSION is not set + +# +# IEEE 1394 (FireWire) support +# + +# +# You can enable one or both FireWire driver stacks. +# + +# +# The newer stack is recommended. +# +# 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_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_KS8842 is not set +# CONFIG_KS8851_MLL is not set +# CONFIG_ATL2 is not set +# CONFIG_XILINX_EMACLITE is not set +# CONFIG_NETDEV_1000 is not set +# CONFIG_NETDEV_10000 is not set +# CONFIG_TR is not set +# CONFIG_WLAN is not set + +# +# Enable WiMAX (Networking options) to see the WiMAX drivers +# + +# +# USB Network Adapters +# +# CONFIG_USB_CATC is not set +# CONFIG_USB_KAWETH is not set +# CONFIG_USB_PEGASUS is not set +# CONFIG_USB_RTL8150 is not set +# CONFIG_USB_USBNET 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_VMXNET3 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 +# CONFIG_INPUT_SPARSEKMAP 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_ADP5588 is not set +CONFIG_KEYBOARD_ATKBD=y +# CONFIG_QT2160 is not set +# CONFIG_KEYBOARD_LKKBD is not set +# CONFIG_KEYBOARD_MAX7359 is not set +# CONFIG_KEYBOARD_NEWTON is not set +# CONFIG_KEYBOARD_OPENCORES is not set +# CONFIG_KEYBOARD_STOWAWAY is not set +# CONFIG_KEYBOARD_SUNKBD is not set +# CONFIG_KEYBOARD_XTKBD is not set +CONFIG_INPUT_MOUSE=y +CONFIG_MOUSE_PS2=y +CONFIG_MOUSE_PS2_ALPS=y +CONFIG_MOUSE_PS2_LOGIPS2PP=y +CONFIG_MOUSE_PS2_SYNAPTICS=y +CONFIG_MOUSE_PS2_TRACKPOINT=y +# CONFIG_MOUSE_PS2_ELANTECH is not set +# CONFIG_MOUSE_PS2_SENTELIC is not set +# CONFIG_MOUSE_PS2_TOUCHKIT is not set +# CONFIG_MOUSE_SERIAL is not set +# CONFIG_MOUSE_APPLETOUCH is not set +# CONFIG_MOUSE_BCM5974 is not set +# CONFIG_MOUSE_VSXXXAA is not set +# CONFIG_MOUSE_SYNAPTICS_I2C 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_SERIO_ALTERA_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 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_SERIAL_GRLIB_GAISLER_APBUART 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_COMPAT=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_DESIGNWARE is not set +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 + +# +# Other I2C/SMBus bus drivers +# +# CONFIG_I2C_PCA_PLATFORM is not set +# CONFIG_I2C_STUB is not set + +# +# Miscellaneous I2C Chip support +# +# 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 + +# +# PPS support +# +# CONFIG_PPS 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_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_PMIC_ADP5520 is not set +# CONFIG_MFD_WM8400 is not set +# CONFIG_MFD_WM831X is not set +# CONFIG_MFD_WM8350_I2C is not set +# CONFIG_MFD_PCF50633 is not set +# CONFIG_AB3100_CORE is not set +# CONFIG_MFD_88PM8607 is not set +# CONFIG_REGULATOR is not set +# CONFIG_MEDIA_SUPPORT is not set + +# +# Graphics support +# +# CONFIG_AGP is not set +CONFIG_VGA_ARB=y +# 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=y +CONFIG_FB_CFB_COPYAREA=y +CONFIG_FB_CFB_IMAGEBLIT=y +# 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=y +# 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 is not set + +# +# Console display driver support +# +# CONFIG_VGA_CONSOLE is not set +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 is not set +# CONFIG_SOUND is not set +CONFIG_HID_SUPPORT=y +CONFIG_HID=y +# 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=y +CONFIG_HID_APPLE=y +CONFIG_HID_BELKIN=y +CONFIG_HID_CHERRY=y +CONFIG_HID_CHICONY=y +CONFIG_HID_CYPRESS=y +CONFIG_HID_DRAGONRISE=y +# CONFIG_DRAGONRISE_FF is not set +CONFIG_HID_EZKEY=y +CONFIG_HID_KYE=y +CONFIG_HID_GYRATION=y +CONFIG_HID_TWINHAN=y +CONFIG_HID_KENSINGTON=y +CONFIG_HID_LOGITECH=y +# CONFIG_LOGITECH_FF is not set +# CONFIG_LOGIRUMBLEPAD2_FF is not set +CONFIG_HID_MICROSOFT=y +CONFIG_HID_MONTEREY=y +CONFIG_HID_NTRIG=y +CONFIG_HID_PANTHERLORD=y +# CONFIG_PANTHERLORD_FF is not set +CONFIG_HID_PETALYNX=y +CONFIG_HID_SAMSUNG=y +CONFIG_HID_SONY=y +CONFIG_HID_SUNPLUS=y +CONFIG_HID_GREENASIA=y +# CONFIG_GREENASIA_FF is not set +CONFIG_HID_SMARTJOYPLUS=y +# CONFIG_SMARTJOYPLUS_FF is not set +CONFIG_HID_TOPSEED=y +CONFIG_HID_THRUSTMASTER=y +# CONFIG_THRUSTMASTER_FF is not set +CONFIG_HID_ZEROPLUS=y +# 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 is not set +# CONFIG_USB_DEVICE_CLASS is not set +# CONFIG_USB_DYNAMIC_MINORS is not set +# CONFIG_USB_OTG 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_XHCI_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_BIG_ENDIAN_MMIO=y +CONFIG_USB_EHCI_BIG_ENDIAN_DESC=y +# CONFIG_XPS_USB_HCD_XILINX is not set +CONFIG_USB_EHCI_FSL=y +# CONFIG_USB_EHCI_HCD_PPC_OF is not set +# CONFIG_USB_OXU210HP_HCD is not set +# CONFIG_USB_ISP116X_HCD is not set +# CONFIG_USB_ISP1760_HCD is not set +# CONFIG_USB_ISP1362_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 + +# +# 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 is not set +# CONFIG_USB_STORAGE_DATAFAB is not set +# CONFIG_USB_STORAGE_FREECOM is not set +# CONFIG_USB_STORAGE_ISD200 is not set +# CONFIG_USB_STORAGE_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 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="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_BQ32K is not set +# CONFIG_RTC_DRV_S35390A is not set +# CONFIG_RTC_DRV_FM3130 is not set +# CONFIG_RTC_DRV_RX8581 is not set +# CONFIG_RTC_DRV_RX8025 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_MSM6242 is not set +# CONFIG_RTC_DRV_BQ4802 is not set +# CONFIG_RTC_DRV_RP5C01 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 is not set +# CONFIG_AUXDISPLAY is not set +# CONFIG_UIO is not set + +# +# TI VLYNQ +# +# 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_XFS_FS is not set +# CONFIG_GFS2_FS is not set +# CONFIG_OCFS2_FS is not set +# CONFIG_BTRFS_FS is not set +# CONFIG_NILFS2_FS is not set +CONFIG_FILE_LOCKING=y +CONFIG_FSNOTIFY=y +# CONFIG_DNOTIFY is not set +# CONFIG_INOTIFY is not set +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_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_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=y +CONFIG_NLS_DEFAULT="iso8859-1" +# CONFIG_NLS_CODEPAGE_437 is not set +# 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 is not set +# 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_DECOMPRESS_BZIP2=y +CONFIG_DECOMPRESS_LZMA=y +CONFIG_DECOMPRESS_LZO=y +CONFIG_HAS_IOMEM=y +CONFIG_HAS_IOPORT=y +CONFIG_HAS_DMA=y +CONFIG_HAVE_LMB=y +CONFIG_NLATTR=y +CONFIG_GENERIC_ATOMIC64=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_STRIP_ASM_SYMS 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 +# CONFIG_FTRACE is not set +# CONFIG_DMA_API_DEBUG is not set +# CONFIG_SAMPLES is not set +CONFIG_HAVE_ARCH_KGDB=y +# CONFIG_PPC_DISABLE_WERROR is not set +CONFIG_PPC_WERROR=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_DEFAULT_SECURITY_SELINUX is not set +# CONFIG_DEFAULT_SECURITY_SMACK is not set +# CONFIG_DEFAULT_SECURITY_TOMOYO is not set +CONFIG_DEFAULT_SECURITY_DAC=y +CONFIG_DEFAULT_SECURITY="" +CONFIG_CRYPTO=y + +# +# Crypto core or helper +# +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 +# CONFIG_CRYPTO_VMAC is not set + +# +# Digest +# +# CONFIG_CRYPTO_CRC32C is not set +# CONFIG_CRYPTO_GHASH 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_PPC_LIB_RHEAP=y +# CONFIG_VIRTUALIZATION is not set
Signature · 1 line
1.5.6.3
Re: [PATCH 5/8 v2] powerpc/mpc5121: add USB host support
In reply to Anatolij Gustschindrivers/usb/host/ehci-fsl.c static int ehci_fsl_setup(struct usb_hcd *hcd) · line 312
Quoted 9 lines · Anatolij Gustschin
drivers/usb/host/ehci-fsl.c +5
-0@@ -259,6 +305,11 @@ static int ehci_fsl_setup(struct usb_hcd *hcd) {struct ehci_hcd *ehci =hcd_to_ehci (hcd);int retval; +struct fsl_usb2_platform_data *pdata; + + pdata = hcd->self.controller->platform_data; + ehci->big_endian_desc = pdata->big_endian_desc; + ehci->big_endian_mmio = pdata->big_endian_mmio;
I recently posted some questions to linux-usb@vger about big_endian_mmio and the definition of the HC_LENGTH and HC_VERSION macros. The thread can be found here: http://marc.info/?l=linux-usb&m=126441448626924&w=2
The EHCI specification defines the CAPLENGTH register as an 8-bit register at byte offset 0 and HCIVERSION as a 16-bit register at byte offset 2. Performing a 32-bit read on a big endian system should therefore results in the following organisation (MSB .. LSB):
CAPLENGTH : RESERVED : HCIVERSION
The macros for reading CAPLENGTH and HCIVERSION (defined in include/linux/usb/ehci-def.h) look like:
#define HC_LENGTH(p) (((p)>>00)&0x00ff) /* bits 7:0 */
#define HC_VERSION(p) (((p)>>16)&0xffff) /* bits 31:16 */
That is, they select the registers as they were organized within the word according to little endian. Is this not a problem for your controller/driver?
Best regards,
Jan
Anatolij Gustschin
maintainerQuoted 11 lines · On Wed, 27 Jan 2010 13:07:24 +0100 Anatolij Gustschin <[email protected]> wrote:
This patch series brings support for the Freescale MPC512x processsors up to date:
powerpc/mpc5121: Add machine restart support
rtc: Add MPC5121 Real time clock driver
mtd: Add NAND Flash Controller driver
dma: Add MPC512x DMA driver powerpc/mpc5121: add USB host support powerpc/mpc5121: shared DIU framebuffer support powerpc/mpc5121: update mpc5121ads DTS powerpc/mpc5121: Add default config for MPC5121ADS
Now your can also pull these patches from
git://git.denx.de/linux-2.6-denx.git mpc512x-v2.6.33-devel
Branch. FEC Patches for interested people are also provided in this Branch.
Best regards,
Anatolij
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: [email protected]
Anatolij Gustschin
maintainerRe: [PATCH 5/8 v2] powerpc/mpc5121: add USB host support
In reply to Jan AnderssonQuoted 24 lines · On Wed, 27 Jan 2010 13:36:12 +0100 Jan Andersson <[email protected]> wrote:
drivers/usb/host/ehci-fsl.c static int ehci_fsl_setup(struct usb_hcd *hcd) · line 312
Quoted 9 lines · Anatolij Gustschin
drivers/usb/host/ehci-fsl.c +5
-0@@ -259,6 +305,11 @@ static int ehci_fsl_setup(struct usb_hcd *hcd) {struct ehci_hcd *ehci =hcd_to_ehci (hcd);int retval; +struct fsl_usb2_platform_data *pdata; + + pdata = hcd->self.controller->platform_data; + ehci->big_endian_desc = pdata->big_endian_desc; + ehci->big_endian_mmio = pdata->big_endian_mmio;I recently posted some questions to linux-usb@vger about
big_endian_mmioand the definition of theHC_LENGTHandHC_VERSIONmacros. The thread can be found here: http://marc.info/?l=linux-usb&m=126441448626924&w=2The EHCI specification defines the CAPLENGTH register as an 8-bit register at byte offset 0 and HCIVERSION as a 16-bit register at byte offset 2. Performing a 32-bit read on a big endian system should therefore results in the following organisation (MSB .. LSB):
CAPLENGTH : RESERVED : HCIVERSIONThe macros for reading CAPLENGTH and HCIVERSION (defined in
include/linux/usb/ehci-def.h) look like:
Quoted 6 lines
#define
HC_LENGTH(p)(((p)>>00)&0x00ff) /* bits 7:0 */
#defineHC_VERSION(p)(((p)>>16)&0xffff) /* bits 31:16 */That is, they select the registers as they were organized within the word according to little endian. Is this not a problem for your controller/driver?
On this controller the CAPLENGTH register is an 8-bit regiser at byte offset 3 and HCIVERSION register is a 16-bit register at byte offset 0. Performing a 32-bit read results in:
HCIVERSION : RESERVED : CAPLENGTH
So it is not a problem for the driver.
Best regards,
Anatolij
Re: [PATCH 1/8 v2] powerpc/mpc5121: Add machine restart support
In reply to Anatolij GustschinQuoted 2 lines · Anatolij Gustschin
Add reset module registers representation and machine restart callback for mpc5121 platform.
one comment below.
Quoted 6 lines
Signed-off-by Piotr Ziecik <[email protected]>Signed-off-by Wolfgang Denk <[email protected]>Signed-off-by Anatolij Gustschin <[email protected]>Cc Grant Likely <[email protected]>Cc John Rigby <[email protected]>
Quoted 8 lines
---
Changes since v1:
=A0- use 'structmpc512x_reset_module*' type for 'reset_module_base' =A0- remove empty line
=A0- remove leftover colon and usepr_err()instead of printk.=A0arch/powerpc/include/asm/mpc5xxx.h =A0 =A0 =A0 =A0 =A0 =A0| =A0 14 +++=
++++++-
Quoted 4 lines
=A0arch/powerpc/platforms/512x/mpc5121_ads.c =A0 =A0 | =A0 =A01 + =A0arch/powerpc/platforms/512x/mpc5121_generic.c | =A0 =A01 + =A0arch/powerpc/platforms/512x/mpc512x.h =A0 =A0 =A0 =A0 | =A0 =A01 + =A0arch/powerpc/platforms/512x/mpc512x_shared.c =A0| =A0 34 +++++++++++++=
++++++++++++
arch/powerpc/include/as=
Quoted 3 lines
=A05 files changed, 50 insertions(+), 1 deletions(-)
arch/powerpc/include/as= renamed from arch/powerpc/include/asm/mpc5xxx.h +0
-0
m/mpc5xxx.h
Quoted 6 lines
index 5ce9c5f..0004986 100644
arch/powerpc/include/asm/mpc5xxx.h +0
-0@@ -18,5 +18,17 @@=A0extern unsigned long mpc5xxx_get_bus_frequency(struct
device_node*nod=
e);
arch/powerpc/include/asm/mpc5xxx.h
Quoted 5 lines
arch/powerpc/include/asm/mpc5xxx.h +3
-1-#endif /* __ASM_POWERPC_MPC5xxx_H__ */ +/* MPC512x Reset module registers */ +struct mpc512x_reset_module { + =A0 =A0 =A0 u32 =A0 =A0 rcwlr; =A0/* Reset Configuration Word Low Regis=
ter */
Quoted 1 line
+ =A0 =A0 =A0 u32 =A0 =A0 rcwhr; =A0/* Reset Configuration Word High Regi=
ster */
arch/powerpc/pla=
Quoted 11 lines
+ =A0 =A0 =A0 u32 =A0 =A0 reserved1;
+ =A0 =A0 =A0 u32 =A0 =A0 reserved2;
+ =A0 =A0 =A0 u32 =A0 =A0 rsr; =A0 =A0/* Reset Status Register */
+ =A0 =A0 =A0 u32 =A0 =A0 rmr; =A0 =A0/* Reset Mode Register */
+ =A0 =A0 =A0 u32 =A0 =A0 rpr; =A0 =A0/* Reset Protection Register */
+ =A0 =A0 =A0 u32 =A0 =A0 rcr; =A0 =A0/* Reset Control Register */
+ =A0 =A0 =A0 u32 =A0 =A0 rcer; =A0 /* Reset Control Enable Register */arch/powerpc/include/asm/mpc5xxx.h +2
-0+}; +#endif /* __ASM_POWERPC_MPC5xxx_H__ */ arch/powerpc/pla= renamed from arch/powerpc/platforms/512x/mpc5121_ads.c +0
-0
tforms/512x/mpc5121_ads.c
Quoted 5 lines
index 441abc4..2f40404 100644
arch/powerpc/platforms/512x/mpc5121_ads.c +0
-0@@ -68,4 +68,5 @@ define_machine(mpc5121_ads) {=A0 =A0 =A0 =A0.init_IRQ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D mpc5121_ads_init=
_IRQ,
Quoted 2 lines
=A0 =A0 =A0 =A0.get_irq =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=3D
ipic_get_irq, =A0 =A0 =A0 =A0.calibrate_decr =A0 =A0 =A0 =A0 =3D generic_calibrate_decr=
,
Quoted 1 line
+ =A0 =A0 =A0 .restart =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=3D mpc512x_restart=
,
arch/powerpc=
Quoted 2 lines
=A0};
arch/powerpc= renamed from arch/powerpc/platforms/512x/mpc5121_generic.c +0
-0
/platforms/512x/mpc5121_generic.c
Quoted 5 lines
index 2479de9..de4c3f7 100644
arch/powerpc/platforms/512x/mpc5121_generic.c +0
-0@@ -55,4 +55,5 @@ define_machine(mpc5121_generic) {=A0 =A0 =A0 =A0.init_IRQ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D mpc512x_init_IRQ=
,
Quoted 2 lines
=A0 =A0 =A0 =A0.get_irq =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=3D
ipic_get_irq, =A0 =A0 =A0 =A0.calibrate_decr =A0 =A0 =A0 =A0 =3D generic_calibrate_decr=
,
Quoted 1 line
+ =A0 =A0 =A0 .restart =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=3D mpc512x_restart=
,
arch/powerpc/platfor=
Quoted 2 lines
=A0};
arch/powerpc/platfor= renamed from arch/powerpc/platforms/512x/mpc512x.h +0
-0
ms/512x/mpc512x.h
Quoted 10 lines
index 22a5352..c38875c 100644
arch/powerpc/platforms/512x/mpc512x.h +0
-0@@ -12,5 +12,6 @@=A0#ifndef
__MPC512X_H__
=A0#define__MPC512X_H__
=A0extern void__initmpc512x_init_IRQ(void);
+extern voidmpc512x_restart(char *cmd);
=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 11 lines
index 434d683..4745028 100644
arch/powerpc/platforms/512x/mpc512x_shared.c +0
-0@@ -21,9 +21,43 @@=A0#include <
asm/ipic.h>
=A0#include <asm/prom.h>
=A0#include <asm/time.h>
+#include <asm/mpc5xxx.h>=A0#include "
mpc512x.h"
arch/powerpc/platforms/512x/mpc512x_shared.c
Quoted 7 lines
arch/powerpc/platforms/512x/mpc512x_shared.c +7
-0+static struct mpc512x_reset_module __iomem *reset_module_base; + +static int __init mpc512x_restart_init (void ) +{ + =A0 =A0 =A0 struct device_node *np; + + =A0 =A0 =A0 np =3D of_find_compatible_node(NULL, NULL, "fsl,mpc5121-res=
et");
arch/powerpc/platforms/512x/mpc512x_shared.c line 43
Quoted 9 lines
+ =A0 =A0 =A0 if (!np)
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 return -1;arch/powerpc/platforms/512x/mpc512x_shared.c +7
-0+ + =A0 =A0 =A0 reset_module_base =3D of_iomap(np, 0); + =A0 =A0 =A0 of_node_put(np); + + =A0 =A0 =A0 return 0; +} +arch_initcall (mpc512x_restart_init);
Avoid using arch_initcalls for this sort of thing. Call it explicitly from your platform code. Doing an arch_initcall means that platform code cannot override it, and that on a multiplatform kernel it will get called on non-5121 platforms.
g.
--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
Re: [PATCH 2/8 v2] rtc: Add MPC5121 Real time clock driver
In reply to Anatolij GustschinQuoted 1 line · Anatolij Gustschin
From: John Rigby <[email protected]>
This is your patch now. You can claim authorship in the git commit record.
Quoted 10 lines
Based on Domen Puncer's rtc driver for 5200. Changes to Domen's original:
=A0 =A0Changed filenames/routine names from mpc5200* to mpc5121* =A0 =A0Changed match to only care about compatible and use "fsl," =A0 =A0convention for compatible.
=A0 =A0Make alarms more sane by dealing with lack of second alarm =A0 =A0resolution.
Quoted 7 lines
=A0 =A0Deal with the fact that most of the 5121 rtc registers are not =A0 =A0persistent across a reset even with a battery attached:
=A0 =A0 =A0 =A0Use
actual_timeregister for time keeping =A0 =A0 =A0 =A0andtarget_timeregister as an offset to linux time=A0 =A0 =A0 =A0The
target_timeregister would normally be used for hibern=
ation
Quoted 1 line
=A0 =A0 =A0 =A0but hibernation does not work on current silicon
This is a description of what has been done, but it is not a description of what the patch is. Think about it this way, if someone looks at your commit in git after it is merged, will the above text make sense?
Quoted 8 lines
Signed-off-by John Rigby <[email protected]>Signed-off-by Piotr Ziecik <[email protected]>Signed-off-by Wolfgang Denk <[email protected]>Signed-off-by Anatolij Gustschin <[email protected]>Cc <[email protected]>Cc Grant Likely <[email protected]>Cc John Rigby <[email protected]>
Quoted 13 lines
---
Changes since v1 (as requested by Alessandro Zummo):
=A0- Remove history from the driver file, the same history is in =A0 commit message
=A0- implement alarm/irq interface using ->ops structure, don't =A0 useops->ioctl()any more
=A0- Clean upprobe()
=A0- replaceprintk()by dev_*()
=A0- add arch dependency inKconfig
=A0- add requested includelinux/init.h
=A0- moveMODULE_XXXto the end
=A0- usertc_valid_tm()when returning 'tm'
=A0- use __init/__exit/__exit_p as this is not a hotpluggable device
Dangerous. You're assuming that drivers won't be able to be bound/rebound at runtime. The kernel has no idea you've done this, and it will cause a bug. You should always use __devinit/__devexit/__devexit_p for the probe/remove hooks in of_platform drivers.
Quoted 2 lines
+static int
__initmpc5121_rtc_probe(structof_device*op,
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
=A0 const struct of_device_id *match)
__devinit
Review
Quoted 12 lines
(quoted diff) +12
-0+{ + =A0 =A0 =A0 struct mpc5121_rtc_data *rtc; + =A0 =A0 =A0 int err =3D 0; + =A0 =A0 =A0 u32 ka; + + =A0 =A0 =A0 rtc =3D kzalloc(sizeof(*rtc), GFP_KERNEL); + =A0 =A0 =A0 if (!rtc) + =A0 =A0 =A0 =A0 =A0 =A0 =A0 return -ENOMEM; + + =A0 =A0 =A0 rtc->regs =3D of_iomap(op->node, 0); + =A0 =A0 =A0 if (!rtc->regs) { + =A0 =A0 =A0 =A0 =A0 =A0 =A0 dev_err(&op->dev, "%s: couldn't map io spac=
e\n", __func__);
Review
Quoted 8 lines
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 err =3D
-ENOSYS;
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 gotoout_free;
+ =A0 =A0 =A0 }(quoted diff) +5
-0+ + =A0 =A0 =A0 device_init_wakeup(&op->dev, 1); + + =A0 =A0 =A0 rtc->rtc =3D rtc_device_register("mpc5121-rtc", &op->dev, + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
=A0 &mpc5121_rtc_ops, THIS_MODULE);
Quoted 4 lines
+ =A0 =A0 =A0 if (
IS_ERR(rtc->rtc)) {
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 err =3DPTR_ERR(rtc->rtc);
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 gotoout_unmap;
+ =A0 =A0 =A0 }
I haven't dug into the rtc layer, but this looks racy. The device is getting registered before it is completely set up (irq not mapped, keepalive register not initialized). Is this correct?
Review
Quoted 5 lines
(quoted diff) +5
-0+ + =A0 =A0 =A0 dev_set_drvdata(&op->dev, rtc); + + =A0 =A0 =A0 rtc->irq =3D irq_of_parse_and_map(op->node, 1); + =A0 =A0 =A0 err =3D request_irq(rtc->irq, mpc5121_rtc_handler, IRQF_DIS=
ABLED,
Quoted 1 line
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
=A0 =A0 =A0 =A0 =A0 "mpc5121-rtc", &op->dev);
Quoted 2 lines
+ =A0 =A0 =A0 if (err) {
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 dev_err(&op->dev, "%s: could not request ir=
q: %i\n",
Quoted 1 line
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 __func__, rtc->irq);
Quoted 5 lines
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 goto
out_dispose;
+ =A0 =A0 =A0 }
+
+ =A0 =A0 =A0rtc->irq_periodic=3Dirq_of_parse_and_map(op->node, 0);
+ =A0 =A0 =A0 err =3D request_irq(rtc->irq_periodic, mpc5121_rtc_handler_=
upd,
Quoted 1 line
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 IRQF_DISABL=
ED, "mpc5121-rtc_upd", &op->dev);
Quoted 2 lines
+ =A0 =A0 =A0 if (err) {
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 dev_err(&op->dev, "%s: could not request ir=
q: %i\n",
Quoted 1 line
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
=A0 =A0 =A0 =A0 =A0 __func__, rtc->irq_periodic);
Quoted 7 lines
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 goto
out_dispose2;
+ =A0 =A0 =A0 }
+
+ =A0 =A0 =A0 ka =3Din_be32(&rtc->regs->keep_alive);
+ =A0 =A0 =A0 if (ka &0x02) {
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 dev_warn(&op->dev,
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "mpc5121-rtc: Battery or os=
cillator failure!\n");
Quoted 9 lines
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0
out_be32(&rtc->regs->keep_alive, ka);
+ =A0 =A0 =A0 }drivers/rtc/rtc-mpc5121.c new file +7
-0+ + =A0 =A0 =A0 return 0; + +out_dispose2: + =A0 =A0 =A0 irq_dispose_mapping(rtc->irq_periodic); + =A0 =A0 =A0 free_irq(rtc->irq, &op->dev); +out_dispose:
drivers/rtc/rtc-mpc5121.c line 339
Quoted 10 lines
drivers/rtc/rtc-mpc5121.c new file +10
-0+ =A0 =A0 =A0 irq_dispose_mapping(rtc->irq); +out_unmap: + =A0 =A0 =A0 iounmap(rtc->regs); +out_free: + =A0 =A0 =A0 kfree(rtc); + + =A0 =A0 =A0 return err; +} + +static int __exit mpc5121_rtc_remove(struct of_device *op)
__devexit
Quoted 11 lines
(quoted diff) +11
-0+{ + =A0 =A0 =A0 struct mpc5121_rtc_data *rtc =3D dev_get_drvdata(&op->dev); + =A0 =A0 =A0 struct mpc5121_rtc_regs __iomem *regs =3D rtc->regs; + + =A0 =A0 =A0 /* disable interrupt, so there are no nasty surprises */ + =A0 =A0 =A0 out_8(®s->alm_enable, 0); + =A0 =A0 =A0 out_8(®s->int_enable, in_8(®s->int_enable) & ~0x1); + + =A0 =A0 =A0 rtc_device_unregister(rtc->rtc); + =A0 =A0 =A0 iounmap(rtc->regs); + =A0 =A0 =A0 free_irq(rtc->irq, &op->dev);
Review
Quoted 10 lines
(quoted diff) +10
-0+ =A0 =A0 =A0 free_irq(rtc->irq_periodic, &op->dev); + =A0 =A0 =A0 irq_dispose_mapping(rtc->irq); + =A0 =A0 =A0 irq_dispose_mapping(rtc->irq_periodic); + =A0 =A0 =A0 dev_set_drvdata(&op->dev, NULL); + =A0 =A0 =A0 kfree(rtc); + + =A0 =A0 =A0 return 0; +} + +static struct of_device_id mpc5121_rtc_match[] =3D {
Missing __devinitdata. Should be like this:
static struct of_device_id mpc5121_rtc_match[] __devinitdata =3D {
Quoted 27 lines
+ =A0 =A0 =A0 { .compatible =3D "fsl,mpc5121-rtc", },
+ =A0 =A0 =A0 {},drivers/rtc/rtc-mpc5121.c new file +24
-1+}; + +static struct of_platform_driver mpc5121_rtc_driver =3D { + =A0 =A0 =A0 .owner =3D THIS_MODULE, + =A0 =A0 =A0 .name =3D "mpc5121-rtc", + =A0 =A0 =A0 .match_table =3D mpc5121_rtc_match, + =A0 =A0 =A0 .probe =3D mpc5121_rtc_probe, + =A0 =A0 =A0 .remove =3D __exit_p(mpc5121_rtc_remove), +}; + +static int __init mpc5121_rtc_init (void ) +{ + =A0 =A0 =A0 return of_register_platform_driver(&mpc5121_rtc_driver); +} +module_init (mpc5121_rtc_init); + +static void __exit mpc5121_rtc_exit(void) +{ + =A0 =A0 =A0 of_unregister_platform_driver(&mpc5121_rtc_driver); +} +module_exit (mpc5121_rtc_exit); + +MODULE_LICENSE ("GPL" ); +MODULE_AUTHOR ("John Rigby <[email protected]>" ); --
Quoted 3 lines
1.5.6.3
--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
Re: [PATCH 3/8 v2] mtd: Add MPC5121 NAND Flash Controller driver
In reply to Anatolij GustschinQuoted 1 line · Anatolij Gustschin
From: Piotr Ziecik <[email protected]>
Again, it is appropriate for you to claim patch ownership now as long as you preserve the signed-off-by history.
Quoted 4 lines
Adds NAND Flash Controller driver for MPC5121 Revision 2. All device features, except hardware ECC and power management, are supported.
A few comments below.
arch/powerpc/=
Quoted 1 line
arch/powerpc/= renamed from arch/powerpc/platforms/512x/mpc512x_shared.c +0
-0
platforms/512x/mpc512x_shared.c
arch/powerpc/platforms/512x/mpc512x_shared.c void __init mpc512x_init_IRQ(void) · line 87
Quoted 10 lines
index 4745028..6b8314c 100644
arch/powerpc/platforms/512x/mpc512x_shared.c +1
-0@@ -82,6 +82,7 @@ void __init mpc512x_init_IRQ(void) =A0static struct of_device_id __initdata of_bus_ids[] =3D { =A0 =A0 =A0 =A0{ .compatible =3D "fsl,mpc5121-immr", }, =A0 =A0 =A0 =A0{ .compatible =3D "fsl,mpc5121-localbus", }, + =A0 =A0 =A0 { .compatible =3D "fsl,mpc5121-nfc", }, =A0 =A0 =A0 =A0{}, =A0};
This hunk shouldn't be in this patch since it touches arch code. Keep the NAND and arch bits in separate patches.
Also, this is probably not what you really want. Doing it this way means that each of the child nodes also get registered as of_platform devices. You want the platform code to only register the nfc@40000000 node.
arch/powerpc/platforms/512x/mpc512x_shared.c void __init mpc512x_init_IRQ(void)
Quoted 2 lines
arch/powerpc/platforms/512x/mpc512x_shared.c +2
-0+static int __init mpc5121_nfc_probe(struct of_device *op, + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
=A0 const struct of_device_id *match)
__devinit
Quoted 13 lines
arch/powerpc/platforms/512x/mpc512x_shared.c +13
-0+{ + =A0 =A0 =A0 struct device_node *rootnode, *dn =3D op->node; + =A0 =A0 =A0 struct device *dev =3D &op->dev; + =A0 =A0 =A0 struct mpc5121_nfc_prv *prv; + =A0 =A0 =A0 struct resource res; + =A0 =A0 =A0 struct mtd_info *mtd; +#ifdef CONFIG_MTD_PARTITIONS + =A0 =A0 =A0 struct mtd_partition *parts; +#endif + =A0 =A0 =A0 struct nand_chip *chip; + =A0 =A0 =A0 unsigned long regs_paddr, regs_size; + =A0 =A0 =A0 const uint *chips_no; + =A0 =A0 =A0 int resettime =3D 0;
arch/powerpc/platforms/512x/mpc512x_shared.c
Quoted 10 lines
arch/powerpc/platforms/512x/mpc512x_shared.c +10
-0+ =A0 =A0 =A0 int retval =3D 0; + =A0 =A0 =A0 int rev, len; + + =A0 =A0 =A0 /* + =A0 =A0 =A0 =A0* Check SoC revision. This driver supports only NFC + =A0 =A0 =A0 =A0* in MPC5121 revision 2. + =A0 =A0 =A0 =A0*/ + =A0 =A0 =A0 rev =3D (mfspr(SPRN_SVR) >> 4) & 0xF; + =A0 =A0 =A0 if (rev !=3D 2) { + =A0 =A0 =A0 =A0 =A0 =A0 =A0 dev_err(dev, "SoC revision %u is not suppor=
ted!\n", rev);
Quoted 2 lines
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 return
-ENXIO;
+ =A0 =A0 =A0 }
*Only* revision 2? Are future revisions of silicon assumed to be broken th= en?
Quoted 1 line
+static int
__exitmpc5121_nfc_remove(struct of_device *op)
__devexit
Quoted 1 line
+static struct
of_device_idmpc5121_nfc_match[] =3D {
...match[] __devinitdata =3D {
arch/powerpc/platforms/512x/mpc512x_shared.c
Quoted 8 lines
+ =A0 =A0 =A0 { .compatible =3D "fsl,mpc5121-nfc", },
+ =A0 =A0 =A0 {},arch/powerpc/platforms/512x/mpc512x_shared.c +6
-0+}; + +static struct of_platform_driver mpc5121_nfc_driver =3D { + =A0 =A0 =A0 .match_table =A0 =A0=3D mpc5121_nfc_match, + =A0 =A0 =A0 .probe =A0 =A0 =A0 =A0 =A0=3D mpc5121_nfc_probe, + =A0 =A0 =A0 .remove =A0 =A0 =A0 =A0 =3D __exit_p(mpc5121_nfc_remove),
__devexit_p()
g.
--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
Re: [PATCH 5/8 v2] powerpc/mpc5121: add USB host support
In reply to Anatolij GustschinQuoted 7 lines · Anatolij Gustschin
Platform specific code for MPC5121 USB Host support. MPC5121 Rev 2.0 silicon EHCI registers are big endian. Add appropriate support by specifying "fsl,big-endian-regs" property in device tree node for USB controller. Also allow specifying DRVVBUS and
PWR_FAULTsignal polarity of the MPC5121 internal PHY using "fsl,invert-drvvbus" and "fsl,invert-pwr-fault" properties.
[...]
Quoted 9 lines
Documentation/powerpc/dts-bindings/fsl/usb.txt +0
-0@@ -33,6 +33,14 @@ Recommended properties :=A0- interrupt-parent : the phandle for the interrupt controller that =A0 =A0services interrupts for this device.
+Optional properties :
+ - fsl,big-endian-regs : boolean; if defined, indicates the USB host
+ =A0 controller registers format is big endian.
As commented in previous thread, this property should be dropped, and the driver should test for fsl,mpc5121-usb2-dr directly. fsl-usb2-dr should also be dropped from the compatible list of the .dts file.
g.
Re: [PATCH 3/8 v2] mtd: Add MPC5121 NAND Flash Controller driver
In reply to Grant LikelyDear Grant Likely,
Quoted 7 lines · In message <[email protected]> you…
drivers/mtd/nand/mpc5121_nfc.c line 675
Quoted 5 lines
drivers/mtd/nand/mpc5121_nfc.c new file +4
-0+if (rev !=2 ) { +dev_err (dev,"SoC revision %u is not supported!\n" , rev); +return -ENXIO ; + }*Only* revision 2? Are future revisions of silicon assumed to be broken then?
I vote for keeping it this way - if you look at the diffferences between revision 1 and 2, or at differences between MPC5121/3 and MPC5125, it is more than likely that revision 3, should it ever come out, will be incompatible and require driver changes.
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] Landru! Guide us! -- A Beta 3-oid, "The Return of the Archons", stardate 3157.4