davinci updates for 2.6.33
Subsystems (3)
cover davinci updates for 2.6.33
This series includes various DaVinci platform updates which are targeted for the next merge window (2.6.33.)
This series based on v2.6.32-rc5 and is available as the 'davinci-next' branch of DaVinci git[1]. This branch is also automatically included in linux-next.
Kevin
[1] http://git.kernel.org/?p=linux/kernel/git/khilman/linux-davinci.git;a=summary
Chaithrika U S (3):
davinci: DA850/OMAP-L138 EVM expander setup and UI card detection
davinci: RMII support for DA850/OMAP-L138 EVM
davinci: DA850/OMAP-L138: Set ASYNC3 domain flag for McASP
David A. Griego (1):
davinci: Add MMC/SD support for DA830/OMAP-L137 EVM
Hemant Pedanekar (2):
davinci: dm646x: Add support for 3.x silicon revision
davinci: dm646x-evm: Add platform data for NAND
Kevin Hilman (4):
davinci: da830 EVM: make machine name string consistent with da850
davinci: da830: add support for new silicon revisions
davinci: da830 EVM: remove #include <mach/gpio.h>
davinci: DMx and da8xx defconfig updates
Mark A. Greer (5):
davinci: Move DA8xx/OMAP-L13x emac register routine
davinci: Change DA8xx/OMAP-L13x McASP registration routine name
davinci: Add DA830/OMAP-L137 EVM specific pinmux setting for McASP1
davinci: Add support for Sharp LCD035Q3DG01 graphical LCD
davinci: Add RTC support for DA8xx/OMAP-L13x SoC's
Miguel Aguilar (1):
Davinci: DM365: Add platform device for McBSP
Phaneendra Kumar (1):
DaVinci: DM365: SDIO interrupt resource correction
Sandeep Paulraj (5):
DaVinci: DM365: Correct USB parent clock
DaVinci: EDMA: Fix bug in edma_free_cont_slots API
DaVinci: EDMA: Fix Bug in edma_alloc_cont_slots API
DaVinci: EDMA: Fix Bug while obtaining contiguous params
DaVinci: EDMA: Updating terminlogy in EDMA driver
Sekhar Nori (15):
davinci: DA8XX/OMAP-L1XX: It's SYSCFG not BOOT_CFG
davinci: DA8XX/OMAP-L1XX: Avoid use of IO_ADDRESS for SYSCFG module
davinci: DA8XX/OMAP-L1XX: JTAG ID register should offset from SYSCFG
base
davinci: enable easy top down traversal of clock tree
davinci: make clock rate re-calculation easy
davinci: support changing the clock rate in clock framework
davinci: support re-parenting a clock in the clock framework
davinci: DA850/OMAP-L138: allow async3 source to be changed
davinci: add generic CPUFreq driver for DaVinci
davinci: DA850/OMAP-L138: add frequency scaling support
davinci: DA850/OMAP-L138: add voltage regulation support
davinci: DA850/OMAP-L138 EVM: register for CPUFreq support
davinci: DA850/OMAP-L138 EVM: add support for TPS65070 PMIC
davinci: fix compilation error when using mach/system.h
davinci: make it easier to identify SoC init failures
Sergei Shtylyov (5):
davinci: DA8xx: CFGCHIP2 register definitions
davinci: DA8xx: OHCI platform device
davinci: DA830 EVM: OHCI platform code
davinci: DA8xx: rename 'psc_ctlr' field into 'gpsc'
DaVinci: remove unneeded #include's
Sneha Narnakaje (2):
davinci: DM355: Update NAND driver platform data
davinci: DM365: Update NAND driver platform data
Steve Chen (1):
davinci: Add LCD Graphics support for DA830/OMAP-L137 EVM
Sudhakar Rajashekhara (1):
davinci: Correct the GPIO number for LCD panel power
arch/arm/configs/da830_omapl137_defconfig | 1254 ------------------------ arch/arm/configs/da850_omapl138_defconfig | 1229 ------------------------ arch/arm/configs/da8xx_omapl_defconfig | 1322 ++++++++++++++++++++++++++ arch/arm/configs/davinci_all_defconfig | 125 ++- arch/arm/mach-davinci/Kconfig | 54 ++ arch/arm/mach-davinci/Makefile | 3 + arch/arm/mach-davinci/board-da830-evm.c | 234 +++++- arch/arm/mach-davinci/board-da850-evm.c | 366 +++++++- arch/arm/mach-davinci/board-dm355-evm.c | 12 +- arch/arm/mach-davinci/board-dm355-leopard.c | 9 +- arch/arm/mach-davinci/board-dm365-evm.c | 18 +- arch/arm/mach-davinci/board-dm644x-evm.c | 12 - arch/arm/mach-davinci/board-dm646x-evm.c | 84 ++- arch/arm/mach-davinci/board-sffsdr.c | 12 - arch/arm/mach-davinci/clock.c | 227 ++++- arch/arm/mach-davinci/clock.h | 17 +- arch/arm/mach-davinci/common.c | 4 +- arch/arm/mach-davinci/cp_intc.c | 3 - arch/arm/mach-davinci/cpufreq.c | 219 +++++ arch/arm/mach-davinci/da830.c | 75 +- arch/arm/mach-davinci/da850.c | 302 ++++++- arch/arm/mach-davinci/devices-da8xx.c | 76 ++- arch/arm/mach-davinci/devices.c | 6 +- arch/arm/mach-davinci/dm355.c | 2 - arch/arm/mach-davinci/dm365.c | 49 +- arch/arm/mach-davinci/dm644x.c | 2 - arch/arm/mach-davinci/dm646x.c | 11 +- arch/arm/mach-davinci/dma.c | 105 ++- arch/arm/mach-davinci/gpio.c | 9 - arch/arm/mach-davinci/include/mach/asp.h | 3 + arch/arm/mach-davinci/include/mach/cpufreq.h | 25 + arch/arm/mach-davinci/include/mach/da8xx.h | 23 +- arch/arm/mach-davinci/include/mach/dm365.h | 2 + arch/arm/mach-davinci/include/mach/dm644x.h | 1 - arch/arm/mach-davinci/include/mach/mux.h | 11 +- arch/arm/mach-davinci/include/mach/system.h | 3 +- arch/arm/mach-davinci/include/mach/usb.h | 57 ++ arch/arm/mach-davinci/mux.c | 1 - arch/arm/mach-davinci/psc.c | 3 - arch/arm/mach-davinci/serial.c | 6 - arch/arm/mach-davinci/sram.c | 3 - arch/arm/mach-davinci/time.c | 6 - arch/arm/mach-davinci/usb.c | 41 +- 43 files changed, 3186 insertions(+), 2840 deletions(-) delete mode 100644 arch/arm/configs/da830_omapl137_defconfig delete mode 100644 arch/arm/configs/da850_omapl138_defconfig create mode 100644 arch/arm/configs/da8xx_omapl_defconfig create mode 100644 arch/arm/mach-davinci/cpufreq.c create mode 100644 arch/arm/mach-davinci/include/mach/cpufreq.h create mode 100644 arch/arm/mach-davinci/include/mach/usb.h
cover davinci updates for 2.6.33
This series includes various platform updates to the DaVinci family SoCs which are targeted for the next merge window (2.6.33.)
This series based on v2.6.32-rc5 and is available as the 'davinci-next' branch of DaVinci git[1]. This branch is also automatically included in linux-next.
Kevin
[1] http://git.kernel.org/?p=linux/kernel/git/khilman/linux-davinci.git;a=summary
Chaithrika U S (3):
davinci: DA850/OMAP-L138 EVM expander setup and UI card detection
davinci: RMII support for DA850/OMAP-L138 EVM
davinci: DA850/OMAP-L138: Set ASYNC3 domain flag for McASP
David A. Griego (1):
davinci: Add MMC/SD support for DA830/OMAP-L137 EVM
Hemant Pedanekar (2):
davinci: dm646x: Add support for 3.x silicon revision
davinci: dm646x-evm: Add platform data for NAND
Kevin Hilman (4):
davinci: da830 EVM: make machine name string consistent with da850
davinci: da830: add support for new silicon revisions
davinci: da830 EVM: remove #include <mach/gpio.h>
davinci: DMx and da8xx defconfig updates
Mark A. Greer (5):
davinci: Move DA8xx/OMAP-L13x emac register routine
davinci: Change DA8xx/OMAP-L13x McASP registration routine name
davinci: Add DA830/OMAP-L137 EVM specific pinmux setting for McASP1
davinci: Add support for Sharp LCD035Q3DG01 graphical LCD
davinci: Add RTC support for DA8xx/OMAP-L13x SoC's
Miguel Aguilar (1):
Davinci: DM365: Add platform device for McBSP
Phaneendra Kumar (1):
DaVinci: DM365: SDIO interrupt resource correction
Sandeep Paulraj (5):
DaVinci: DM365: Correct USB parent clock
DaVinci: EDMA: Fix bug in edma_free_cont_slots API
DaVinci: EDMA: Fix Bug in edma_alloc_cont_slots API
DaVinci: EDMA: Fix Bug while obtaining contiguous params
DaVinci: EDMA: Updating terminlogy in EDMA driver
Sekhar Nori (15):
davinci: DA8XX/OMAP-L1XX: It's SYSCFG not BOOT_CFG
davinci: DA8XX/OMAP-L1XX: Avoid use of IO_ADDRESS for SYSCFG module
davinci: DA8XX/OMAP-L1XX: JTAG ID register should offset from SYSCFG
base
davinci: enable easy top down traversal of clock tree
davinci: make clock rate re-calculation easy
davinci: support changing the clock rate in clock framework
davinci: support re-parenting a clock in the clock framework
davinci: DA850/OMAP-L138: allow async3 source to be changed
davinci: add generic CPUFreq driver for DaVinci
davinci: DA850/OMAP-L138: add frequency scaling support
davinci: DA850/OMAP-L138: add voltage regulation support
davinci: DA850/OMAP-L138 EVM: register for CPUFreq support
davinci: DA850/OMAP-L138 EVM: add support for TPS65070 PMIC
davinci: fix compilation error when using mach/system.h
davinci: make it easier to identify SoC init failures
Sergei Shtylyov (5):
davinci: DA8xx: CFGCHIP2 register definitions
davinci: DA8xx: OHCI platform device
davinci: DA830 EVM: OHCI platform code
davinci: DA8xx: rename 'psc_ctlr' field into 'gpsc'
DaVinci: remove unneeded #include's
Sneha Narnakaje (2):
davinci: DM355: Update NAND driver platform data
davinci: DM365: Update NAND driver platform data
Steve Chen (1):
davinci: Add LCD Graphics support for DA830/OMAP-L137 EVM
Sudhakar Rajashekhara (1):
davinci: Correct the GPIO number for LCD panel power
arch/arm/configs/da830_omapl137_defconfig | 1254 ------------------------ arch/arm/configs/da850_omapl138_defconfig | 1229 ------------------------ arch/arm/configs/da8xx_omapl_defconfig | 1322 ++++++++++++++++++++++++++ arch/arm/configs/davinci_all_defconfig | 125 ++- arch/arm/mach-davinci/Kconfig | 54 ++ arch/arm/mach-davinci/Makefile | 3 + arch/arm/mach-davinci/board-da830-evm.c | 234 +++++- arch/arm/mach-davinci/board-da850-evm.c | 366 +++++++- arch/arm/mach-davinci/board-dm355-evm.c | 12 +- arch/arm/mach-davinci/board-dm355-leopard.c | 9 +- arch/arm/mach-davinci/board-dm365-evm.c | 18 +- arch/arm/mach-davinci/board-dm644x-evm.c | 12 - arch/arm/mach-davinci/board-dm646x-evm.c | 84 ++- arch/arm/mach-davinci/board-sffsdr.c | 12 - arch/arm/mach-davinci/clock.c | 227 ++++- arch/arm/mach-davinci/clock.h | 17 +- arch/arm/mach-davinci/common.c | 4 +- arch/arm/mach-davinci/cp_intc.c | 3 - arch/arm/mach-davinci/cpufreq.c | 219 +++++ arch/arm/mach-davinci/da830.c | 75 +- arch/arm/mach-davinci/da850.c | 302 ++++++- arch/arm/mach-davinci/devices-da8xx.c | 76 ++- arch/arm/mach-davinci/devices.c | 6 +- arch/arm/mach-davinci/dm355.c | 2 - arch/arm/mach-davinci/dm365.c | 49 +- arch/arm/mach-davinci/dm644x.c | 2 - arch/arm/mach-davinci/dm646x.c | 11 +- arch/arm/mach-davinci/dma.c | 105 ++- arch/arm/mach-davinci/gpio.c | 9 - arch/arm/mach-davinci/include/mach/asp.h | 3 + arch/arm/mach-davinci/include/mach/cpufreq.h | 25 + arch/arm/mach-davinci/include/mach/da8xx.h | 23 +- arch/arm/mach-davinci/include/mach/dm365.h | 2 + arch/arm/mach-davinci/include/mach/dm644x.h | 1 - arch/arm/mach-davinci/include/mach/mux.h | 11 +- arch/arm/mach-davinci/include/mach/system.h | 3 +- arch/arm/mach-davinci/include/mach/usb.h | 57 ++ arch/arm/mach-davinci/mux.c | 1 - arch/arm/mach-davinci/psc.c | 3 - arch/arm/mach-davinci/serial.c | 6 - arch/arm/mach-davinci/sram.c | 3 - arch/arm/mach-davinci/time.c | 6 - arch/arm/mach-davinci/usb.c | 41 +- 43 files changed, 3186 insertions(+), 2840 deletions(-) delete mode 100644 arch/arm/configs/da830_omapl137_defconfig delete mode 100644 arch/arm/configs/da850_omapl138_defconfig create mode 100644 arch/arm/configs/da8xx_omapl_defconfig create mode 100644 arch/arm/mach-davinci/cpufreq.c create mode 100644 arch/arm/mach-davinci/include/mach/cpufreq.h create mode 100644 arch/arm/mach-davinci/include/mach/usb.h
PATCH 1/46 DaVinci: DM365: SDIO interrupt resource correction
From: Phaneendra Kumar <[email protected]>
This patch fixes a typo/bug in the DM365 SDIO interrupt assignment
--- arch/arm/mach-davinci/devices.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-davinci/devices.c +1 -1
@@ -177,7 +177,7 @@ void __init davinci_setup_mmc(int module, struct davinci_mmc_config *config) mmcsd1_resources[0 ].start =DM365_MMCSD1_BASE ; mmcsd1_resources[0 ].end =DM365_MMCSD1_BASE +SZ_4K -1 ; - mmcsd0_resources[2 ].start =IRQ_DM365_SDIOINT1 ; + mmcsd1_resources[2 ].start =IRQ_DM365_SDIOINT1 ; }else break ;
Signature · 1 line
1.6.4.3
PATCH 2/46 DaVinci: DM365: Correct USB parent clock
From: Sandeep Paulraj <[email protected]>
The parent clock for the USB source clock is actually PLL1 aux clock, not PLL2 sysclk1.
--- arch/arm/mach-davinci/dm365.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-davinci/dm365.c +1 -1
@@ -369,7 +369,7 @@ static struct clk timer3_clk = {static struct clk usb_clk = { .name ="usb" , - .parent = &pll2_sysclk1, + .parent = &pll1_aux_clk, .lpsc =DAVINCI_LPSC_USB , };
Signature · 1 line
1.6.4.3
PATCH 3/46 Davinci: DM365: Add platform device for McBSP
From: Miguel Aguilar <[email protected]>
1) Registers the platform device for McBSP on dm365.
2) Add platform data to DM365 EVM board file.
3) Set i2c address for audio codec at DM365 EVM board file.
--- arch/arm/mach-davinci/board-dm365-evm.c | 7 ++++ arch/arm/mach-davinci/dm365.c | 45 +++++++++++++++++++++++++++- arch/arm/mach-davinci/include/mach/asp.h | 3 ++ arch/arm/mach-davinci/include/mach/dm365.h | 2 + 4 files changed, 56 insertions(+), 1 deletions(-)
arch/arm/mach-davinci/board-dm365-evm.c +7 -0
@@ -176,11 +176,16 @@ static struct at24_platform_data eeprom_info = { .context = (void *)0x7f00, }; +static struct snd_platform_data dm365_evm_snd_data; +static struct i2c_board_info i2c_info[] = { {I2C_BOARD_INFO ("24c256" ,0x50 ), .platform_data = &eeprom_info, }, + { +I2C_BOARD_INFO ("tlv320aic3x" ,0x18 ), + }, };static struct davinci_i2c_platform_data i2c_pdata = {
@@ -472,6 +477,8 @@ static __init void dm365_evm_init(void)/* maybe setup mmc1/etc ... _after_ mmc0 */ evm_init_cpld (); + +dm365_init_asp (&dm365_evm_snd_data); }static __init void dm365_evm_irq_init (void )
arch/arm/mach-davinci/dm365.c +44 -1
75 lines not on this page · raw message
arch/arm/mach-davinci/include/mach/asp.h +3 -0
@@ -11,6 +11,9 @@#define DAVINCI_ASP0_BASE 0x01E02000#define DAVINCI_ASP1_BASE 0x01E04000 +/* Bases of dm365 register banks */ +#define DAVINCI_DM365_ASP0_BASE 0x01D02000 +/* Bases of dm646x register banks */ #define DAVINCI_DM646X_MCASP0_REG_BASE 0x01D01000#define DAVINCI_DM646X_MCASP1_REG_BASE 0x01D01800
arch/arm/mach-davinci/include/mach/dm365.h +2 -0
@@ -16,6 +16,7 @@#include <linux/platform_device.h> #include <mach/hardware.h> #include <mach/emac.h> +#include <mach/asp.h> #define DM365_EMAC_BASE (0x01D07000)#define DM365_EMAC_CNTRL_OFFSET (0x0000)
@@ -25,5 +26,6 @@#define DM365_EMAC_CNTRL_RAM_SIZE (0x2000)void __init dm365_init (void ); +void __init dm365_init_asp (struct snd_platform_data *pdata);#endif /* __ASM_ARCH_DM365_H */
Signature · 1 line
1.6.4.3
PATCH 4/46 davinci: Move DA8xx/OMAP-L13x emac register routine
From: Mark A. Greer <[email protected]>
Some mcasp code was inserted between the emac resource setup and the related register routine that registers the emac.
--- arch/arm/mach-davinci/devices-da8xx.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)
arch/arm/mach-davinci/devices-da8xx.c +5 -5
@@ -282,6 +282,11 @@ static struct platform_device da8xx_emac_device = { .resource = da8xx_emac_resources, }; +int __init da8xx_register_emac (void ) +{ +return platform_device_register (&da8xx_emac_device); +} +static struct resource da830_mcasp1_resources[] = { { .name ="mcasp1" ,
@@ -338,11 +343,6 @@ static struct platform_device da850_mcasp_device = { .resource = da850_mcasp_resources, }; -int __init da8xx_register_emac (void ) -{ -return platform_device_register (&da8xx_emac_device); -} -void __init da8xx_init_mcasp (int id,struct snd_platform_data *pdata) {/* DA830/OMAP-L137 has 3 instances of McASP */
Signature · 1 line
1.6.4.3
PATCH 5/46 davinci: Change DA8xx/OMAP-L13x McASP registration routine name
From: Mark A. Greer <[email protected]>
For consistency with existing code, change the name of da8xx_init_mcasp() to da8xx_register_mcasp().
--- arch/arm/mach-davinci/board-da830-evm.c | 2 +- arch/arm/mach-davinci/board-da850-evm.c | 2 +- arch/arm/mach-davinci/devices-da8xx.c | 2 +- arch/arm/mach-davinci/include/mach/da8xx.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
arch/arm/mach-davinci/board-da830-evm.c +1 -1
@@ -122,7 +122,7 @@ static __init void da830_evm_init(void)pr_warning ("da830_evm_init: mcasp1 mux setup failed: %d\n" , ret); -da8xx_init_mcasp (1 , &da830_evm_snd_data); +da8xx_register_mcasp (1 , &da830_evm_snd_data); }#ifdef CONFIG_SERIAL_8250_CONSOLE
arch/arm/mach-davinci/board-da850-evm.c +1 -1
@@ -365,7 +365,7 @@ static __init void da850_evm_init(void)pr_warning ("da850_evm_init: mcasp mux setup failed: %d\n" , ret); -da8xx_init_mcasp (0 , &da850_evm_snd_data); +da8xx_register_mcasp (0 , &da850_evm_snd_data); ret =da8xx_pinmux_setup (da850_lcdcntl_pins);if (ret)
arch/arm/mach-davinci/devices-da8xx.c +1 -1
@@ -343,7 +343,7 @@ static struct platform_device da850_mcasp_device = { .resource = da850_mcasp_resources, }; -void __init da8xx_init_mcasp (int id,struct snd_platform_data *pdata) +void __init da8xx_register_mcasp (int id,struct snd_platform_data *pdata) {/* DA830/OMAP-L137 has 3 instances of McASP */ if (cpu_is_davinci_da830 () && id ==1 ) {
arch/arm/mach-davinci/include/mach/da8xx.h +1 -1
@@ -74,7 +74,7 @@ int da8xx_register_watchdog(void);int da8xx_register_emac (void );int da8xx_register_lcdc (void );int da8xx_register_mmcsd0 (struct davinci_mmc_config *config); -void __init da8xx_init_mcasp (int id,struct snd_platform_data *pdata); +void __init da8xx_register_mcasp (int id,struct snd_platform_data *pdata);extern struct platform_device da8xx_serial_device;extern struct emac_platform_data da8xx_emac_pdata;
Signature · 1 line
1.6.4.3
PATCH 6/46 davinci: Add DA830/OMAP-L137 EVM specific pinmux setting for McASP1
From: Mark A. Greer <[email protected]>
The DA830/OMAP-L137 EVM cannot use the default pinmux setup for McASP1 so put the correct settings in the board file for that platform.
--- arch/arm/mach-davinci/board-da830-evm.c | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-)
arch/arm/mach-davinci/board-da830-evm.c +10 -1
@@ -22,6 +22,7 @@#include <mach/common.h> #include <mach/irqs.h> #include <mach/cp_intc.h> +#include <mach/mux.h> #include <mach/da8xx.h> #include <mach/asp.h>
@@ -55,6 +56,14 @@ static struct davinci_uart_config da830_evm_uart_config __initdata = { .enabled_uarts = 0x7, }; +static const short da830_evm_mcasp1_pins[] = { +DA830_AHCLKX1 ,DA830_ACLKX1 ,DA830_AFSX1 ,DA830_AHCLKR1 ,DA830_AFSR1 , +DA830_AMUTE1 ,DA830_AXR1_0 ,DA830_AXR1_1 ,DA830_AXR1_2 ,DA830_AXR1_5 , +DA830_ACLKR1 ,DA830_AXR1_6 ,DA830_AXR1_7 ,DA830_AXR1_8 ,DA830_AXR1_10 , +DA830_AXR1_11 , +-1 +}; +static u8 da830_iis_serializer_direction[] = {RX_MODE ,INACTIVE_MODE ,INACTIVE_MODE ,INACTIVE_MODE ,INACTIVE_MODE ,TX_MODE ,INACTIVE_MODE ,INACTIVE_MODE ,
@@ -117,7 +126,7 @@ static __init void da830_evm_init(void)i2c_register_board_info (1 , da830_evm_i2c_devices,ARRAY_SIZE (da830_evm_i2c_devices)); - ret =da8xx_pinmux_setup (da830_mcasp1_pins); + ret =da8xx_pinmux_setup (da830_evm_mcasp1_pins);if (ret)pr_warning ("da830_evm_init: mcasp1 mux setup failed: %d\n" , ret);
Signature · 1 line
1.6.4.3
PATCH 7/46 davinci: DA8XX/OMAP-L1XX: It's SYSCFG not BOOT_CFG
From: Sekhar Nori <[email protected]>
Rename the DA8XX_BOOT_CFG_BASE macro to get it in line with the public documentation for these parts.
--- arch/arm/mach-davinci/da830.c | 2 +- arch/arm/mach-davinci/da850.c | 2 +- arch/arm/mach-davinci/include/mach/da8xx.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-davinci/da830.c +1 -1
@@ -1184,7 +1184,7 @@ static struct davinci_soc_info davinci_soc_info_da830 = { .cpu_clks = da830_clks, .psc_bases = da830_psc_bases, .psc_bases_num = ARRAY_SIZE(da830_psc_bases), - .pinmux_base = IO_ADDRESS(DA8XX_BOOT_CFG_BASE + 0x120), + .pinmux_base = IO_ADDRESS(DA8XX_SYSCFG_BASE + 0x120), .pinmux_pins = da830_pins, .pinmux_pins_num = ARRAY_SIZE(da830_pins), .intc_base = (void __iomem *)DA8XX_CP_INTC_VIRT,
arch/arm/mach-davinci/da850.c +1 -1
@@ -799,7 +799,7 @@ static struct davinci_soc_info davinci_soc_info_da850 = { .cpu_clks = da850_clks, .psc_bases = da850_psc_bases, .psc_bases_num = ARRAY_SIZE(da850_psc_bases), - .pinmux_base = IO_ADDRESS(DA8XX_BOOT_CFG_BASE + 0x120), + .pinmux_base = IO_ADDRESS(DA8XX_SYSCFG_BASE + 0x120), .pinmux_pins = da850_pins, .pinmux_pins_num = ARRAY_SIZE(da850_pins), .intc_base = (void __iomem *)DA8XX_CP_INTC_VIRT,
arch/arm/mach-davinci/include/mach/da8xx.h +1 -1
@@ -29,7 +29,7 @@#define DA8XX_CP_INTC_SIZE SZ_8K#define DA8XX_CP_INTC_VIRT (IO_VIRT - DA8XX_CP_INTC_SIZE - SZ_4K) -#define DA8XX_BOOT_CFG_BASE (IO_PHYS + 0x14000) +#define DA8XX_SYSCFG_BASE (IO_PHYS + 0x14000)#define DA8XX_PSC0_BASE 0x01c10000#define DA8XX_PLL0_BASE 0x01c11000
Signature · 1 line
1.6.4.3
PATCH 8/46 davinci: DA8XX/OMAP-L1XX: Avoid use of IO_ADDRESS for SYSCFG module
From: Sekhar Nori <[email protected]>
Avoid use of IO_ADDRESS() for SYSCFG module by doing an ioremap() instead.
--- arch/arm/mach-davinci/da830.c | 7 ++++++- arch/arm/mach-davinci/da850.c | 7 ++++++- arch/arm/mach-davinci/devices-da8xx.c | 2 ++ arch/arm/mach-davinci/include/mach/da8xx.h | 3 +++ 4 files changed, 17 insertions(+), 2 deletions(-)
arch/arm/mach-davinci/da830.c +6 -1
@@ -1184,7 +1184,6 @@ static struct davinci_soc_info davinci_soc_info_da830 = { .cpu_clks = da830_clks, .psc_bases = da830_psc_bases, .psc_bases_num = ARRAY_SIZE(da830_psc_bases), - .pinmux_base = IO_ADDRESS(DA8XX_SYSCFG_BASE + 0x120), .pinmux_pins = da830_pins, .pinmux_pins_num = ARRAY_SIZE(da830_pins), .intc_base = (void __iomem *)DA8XX_CP_INTC_VIRT,
@@ -1201,5 +1200,11 @@ static struct davinci_soc_info davinci_soc_info_da830 = {void __init da830_init (void ) { + da8xx_syscfg_base =ioremap (DA8XX_SYSCFG_BASE ,SZ_4K ); +if (WARN (!da8xx_syscfg_base,"Unable to map syscfg module" )) +return ; + + davinci_soc_info_da830.pinmux_base =DA8XX_SYSCFG_VIRT (0x120 ); +davinci_common_init (&davinci_soc_info_da830); }
arch/arm/mach-davinci/da850.c +6 -1
@@ -799,7 +799,6 @@ static struct davinci_soc_info davinci_soc_info_da850 = { .cpu_clks = da850_clks, .psc_bases = da850_psc_bases, .psc_bases_num = ARRAY_SIZE(da850_psc_bases), - .pinmux_base = IO_ADDRESS(DA8XX_SYSCFG_BASE + 0x120), .pinmux_pins = da850_pins, .pinmux_pins_num = ARRAY_SIZE(da850_pins), .intc_base = (void __iomem *)DA8XX_CP_INTC_VIRT,
@@ -816,5 +815,11 @@ static struct davinci_soc_info davinci_soc_info_da850 = {void __init da850_init (void ) { + da8xx_syscfg_base =ioremap (DA8XX_SYSCFG_BASE ,SZ_4K ); +if (WARN (!da8xx_syscfg_base,"Unable to map syscfg module" )) +return ; + + davinci_soc_info_da850.pinmux_base =DA8XX_SYSCFG_VIRT (0x120 ); +davinci_common_init (&davinci_soc_info_da850); }
arch/arm/mach-davinci/devices-da8xx.c +2 -0
@@ -43,6 +43,8 @@#define DA8XX_MDIO_REG_OFFSET 0x4000#define DA8XX_EMAC_CTRL_RAM_SIZE SZ_8K +void __iomem *da8xx_syscfg_base; +static struct plat_serial8250_port da8xx_serial_pdata[] = { { .mapbase =DA8XX_UART0_BASE ,
arch/arm/mach-davinci/include/mach/da8xx.h +3 -0
@@ -18,6 +18,8 @@#include <mach/asp.h> #include <mach/mmc.h> +extern void __iomem *da8xx_syscfg_base; +/* * The cp_intc interrupt controller for the da8xx isn't in the same * chunk of physical memory space as the other registers (like it is
@@ -30,6 +32,7 @@#define DA8XX_CP_INTC_VIRT (IO_VIRT - DA8XX_CP_INTC_SIZE - SZ_4K)#define DA8XX_SYSCFG_BASE (IO_PHYS + 0x14000) +#define DA8XX_SYSCFG_VIRT (x) (da8xx_syscfg_base + (x))#define DA8XX_PSC0_BASE 0x01c10000#define DA8XX_PLL0_BASE 0x01c11000
Signature · 1 line
1.6.4.3
PATCH 9/46 davinci: DA8XX/OMAP-L1XX: JTAG ID register should offset from SYSCFG base
From: Sekhar Nori <[email protected]>
This makes it clear that JTAG ID register is part of the SYSCFG module
--- arch/arm/mach-davinci/da830.c | 3 ++- arch/arm/mach-davinci/da850.c | 3 ++- arch/arm/mach-davinci/include/mach/da8xx.h | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-)
arch/arm/mach-davinci/da830.c +2 -1
@@ -1178,7 +1178,6 @@ static struct davinci_timer_info da830_timer_info = {static struct davinci_soc_info davinci_soc_info_da830 = { .io_desc = da830_io_desc, .io_desc_num =ARRAY_SIZE (da830_io_desc), - .jtag_id_base =IO_ADDRESS (DA8XX_JTAG_ID_REG ), .ids = da830_ids, .ids_num =ARRAY_SIZE (da830_ids), .cpu_clks = da830_clks,
@@ -1204,6 +1203,8 @@ void __init da830_init(void)if (WARN (!da8xx_syscfg_base,"Unable to map syscfg module" ))return ; + davinci_soc_info_da830.jtag_id_base = +DA8XX_SYSCFG_VIRT (DA8XX_JTAG_ID_REG ); davinci_soc_info_da830.pinmux_base =DA8XX_SYSCFG_VIRT (0x120 );davinci_common_init (&davinci_soc_info_da830);
arch/arm/mach-davinci/da850.c +2 -1
@@ -793,7 +793,6 @@ static struct davinci_timer_info da850_timer_info = {static struct davinci_soc_info davinci_soc_info_da850 = { .io_desc = da850_io_desc, .io_desc_num =ARRAY_SIZE (da850_io_desc), - .jtag_id_base =IO_ADDRESS (DA8XX_JTAG_ID_REG ), .ids = da850_ids, .ids_num =ARRAY_SIZE (da850_ids), .cpu_clks = da850_clks,
@@ -819,6 +818,8 @@ void __init da850_init(void)if (WARN (!da8xx_syscfg_base,"Unable to map syscfg module" ))return ; + davinci_soc_info_da850.jtag_id_base = +DA8XX_SYSCFG_VIRT (DA8XX_JTAG_ID_REG ); davinci_soc_info_da850.pinmux_base =DA8XX_SYSCFG_VIRT (0x120 );davinci_common_init (&davinci_soc_info_da850);
arch/arm/mach-davinci/include/mach/da8xx.h +1 -1
@@ -33,10 +33,10 @@ extern void __iomem *da8xx_syscfg_base;#define DA8XX_SYSCFG_BASE (IO_PHYS + 0x14000)#define DA8XX_SYSCFG_VIRT (x) (da8xx_syscfg_base + (x)) +#define DA8XX_JTAG_ID_REG 0x18#define DA8XX_PSC0_BASE 0x01c10000#define DA8XX_PLL0_BASE 0x01c11000 -#define DA8XX_JTAG_ID_REG 0x01c14018#define DA8XX_TIMER64P0_BASE 0x01c20000#define DA8XX_TIMER64P1_BASE 0x01c21000#define DA8XX_GPIO_BASE 0x01e26000
Signature · 1 line
1.6.4.3
PATCH 10/46 davinci: enable easy top down traversal of clock tree
From: Sekhar Nori <[email protected]>
Achieve easy top down traversal of clock tree by keeping track of each clock's list of children.
This is useful in supporting DVFS where clock rates of all children need to be updated in an efficient manner.
--- arch/arm/mach-davinci/clock.c | 10 +++++++--- arch/arm/mach-davinci/clock.h | 2 ++ 2 files changed, 9 insertions(+), 3 deletions(-)
arch/arm/mach-davinci/clock.c +7 -3
@@ -123,8 +123,12 @@ int clk_register(struct clk *clk) clk->name, clk->parent->name))return -EINVAL ; +INIT_LIST_HEAD (&clk->children); +mutex_lock (&clocks_mutex);list_add_tail (&clk->node, &clocks); +if (clk->parent) +list_add_tail (&clk->childnode, &clk->parent->children);mutex_unlock (&clocks_mutex);/* If rate is already set, use it */
@@ -146,6 +150,7 @@ void clk_unregister(struct clk *clk)mutex_lock (&clocks_mutex);list_del (&clk->node); +list_del (&clk->childnode);mutex_unlock (&clocks_mutex); }EXPORT_SYMBOL (clk_unregister);
@@ -352,9 +357,8 @@ dump_clock(struct seq_file *s, unsigned nest, struct clk *parent)/* REVISIT show device associations too */ /* cost is now small, but not linear... */ -list_for_each_entry (clk, &clocks, node) { -if (clk->parent == parent) -dump_clock (s, nest +NEST_DELTA , clk); +list_for_each_entry (clk, &parent->children, childnode) { +dump_clock (s, nest +NEST_DELTA , clk); } }
arch/arm/mach-davinci/clock.h +2 -0
@@ -69,6 +69,8 @@ struct clk {u8 lpsc;u8 psc_ctlr;struct clk *parent; +struct list_head children;/* list of children */ +struct list_head childnode;/* parent's child list node */ struct pll_data *pll_data;u32 div_reg; };
Signature · 1 line
1.6.4.3
PATCH 11/46 davinci: make clock rate re-calculation easy
From: Sekhar Nori <[email protected]>
Make clock rate recalculation easy by having a re-calculate function for each clock.
The existing functions for calculation of output rates of PLL and PLL-derived sysclks have been convered to the new re-calculate API.
A new function is introduced to take care of rate (re)calculation for leaf clocks.
--- arch/arm/mach-davinci/clock.c | 69 +++++++++++++++++++++++++++++------------ arch/arm/mach-davinci/clock.h | 1 + 2 files changed, 50 insertions(+), 20 deletions(-)
arch/arm/mach-davinci/clock.c +49 -20
@@ -135,8 +135,12 @@ int clk_register(struct clk *clk)if (clk->rate)return 0 ; +/* Else, see if there is a way to calculate it */ +if (clk->recalc) + clk->rate = clk->recalc (clk); +/* Otherwise, default to parent rate */ -if (clk->parent) +else if (clk->parent) clk->rate = clk->parent->rate;return 0 ;
@@ -184,50 +188,62 @@ static int __init clk_disable_unused(void)late_initcall (clk_disable_unused);#endif -static void clk_sysclk_recalc (struct clk *clk) +static unsigned long clk_sysclk_recalc (struct clk *clk) {u32 v, plldiv;struct pll_data *pll; +unsigned long rate = clk->rate;/* If this is the PLL base clock, no more calculations needed */ if (clk->pll_data) -return ; +return rate;if (WARN_ON (!clk->parent)) -return ; +return rate; - clk->rate = clk->parent->rate; + rate = clk->parent->rate;/* Otherwise, the parent must be a PLL */ if (WARN_ON (!clk->parent->pll_data)) -return ; +return rate; pll = clk->parent->pll_data;/* If pre-PLL, source clock is before the multiplier and divider(s) */ if (clk->flags &PRE_PLL ) - clk->rate = pll->input_rate; + rate = pll->input_rate;if (!clk->div_reg) -return ; +return rate; v =__raw_readl (pll->base + clk->div_reg);if (v &PLLDIV_EN ) { plldiv = (v &PLLDIV_RATIO_MASK ) +1 ;if (plldiv) - clk->rate /= plldiv; + rate /= plldiv; } + +return rate; +} + +static unsigned long clk_leafclk_recalc (struct clk *clk) +{ +if (WARN_ON (!clk->parent)) +return clk->rate; + +return clk->parent->rate; } -static void __init clk_pll_init (struct clk *clk) +static unsigned long clk_pllclk_recalc (struct clk *clk) {u32 ctrl, mult =1 , prediv =1 , postdiv =1 ;u8 bypass;struct pll_data *pll = clk->pll_data; +unsigned long rate = clk->rate; pll->base =IO_ADDRESS (pll->phys_base); ctrl =__raw_readl (pll->base +PLLCTL ); - clk->rate = pll->input_rate = clk->parent->rate; + rate = pll->input_rate = clk->parent->rate;if (ctrl &PLLCTL_PLLEN ) { bypass =0 ;
@@ -260,9 +276,9 @@ static void __init clk_pll_init(struct clk *clk) }if (!bypass) { - clk->rate /= prediv; - clk->rate *= mult; - clk->rate /= postdiv; + rate /= prediv; + rate *= mult; + rate /= postdiv; } pr_debug("PLL%d: input = %lu MHz [ ",
@@ -275,7 +291,9 @@ static void __init clk_pll_init(struct clk *clk)pr_debug ("* %d " , mult);if (postdiv >1 )pr_debug ("/ %d " , postdiv); -pr_debug ("] --> %lu MHz output.\n" , clk->rate /1000000 ); +pr_debug ("] --> %lu MHz output.\n" , rate /1000000 ); + +return rate; }int __init davinci_clk_init (struct davinci_clk *clocks)
@@ -286,12 +304,23 @@ int __init davinci_clk_init(struct davinci_clk *clocks)for (c = clocks; c->lk.clk; c++) { clk = c->lk.clk; -if (clk->pll_data) -clk_pll_init (clk); +if (!clk->recalc) { + +/* Check if clock is a PLL */ +if (clk->pll_data) + clk->recalc = clk_pllclk_recalc; + +/* Else, if it is a PLL-derived clock */ +else if (clk->flags &CLK_PLL ) + clk->recalc = clk_sysclk_recalc; + +/* Otherwise, it is a leaf clock (PSC clock) */ +else if (clk->parent) + clk->recalc = clk_leafclk_recalc; + } -/* Calculate rates for PLL-derived clocks */ -else if (clk->flags &CLK_PLL ) -clk_sysclk_recalc (clk); +if (clk->recalc) + clk->rate = clk->recalc (clk);if (clk->lpsc) clk->flags |=CLK_PSC ;
arch/arm/mach-davinci/clock.h +1 -0
@@ -73,6 +73,7 @@ struct clk {struct list_head childnode;/* parent's child list node */ struct pll_data *pll_data;u32 div_reg; +unsigned long (*recalc) (struct clk *); };/* Clock flags */
Signature · 1 line
1.6.4.3
PATCH 12/46 davinci: support changing the clock rate in clock framework
From: Sekhar Nori <[email protected]>
clk_round_rate, clk_set_rate have been updated to handle dynamic frequency changes.
The motivation behind the changes is to support dynamic CPU frequency change.
davinci_set_pllrate() changes the PLL rate of a given PLL. This function has been presented as a generic function though it has been tested only on OMAP-L138 EVM. No other currently available DaVinci device will probably use this function, but any future device specific changes will hopefully be small enough to get taken care using a cpu_is_xxx() macro.
--- arch/arm/mach-davinci/clock.c | 114 +++++++++++++++++++++++++++++++++++++++- arch/arm/mach-davinci/clock.h | 8 +++ 2 files changed, 119 insertions(+), 3 deletions(-)
arch/arm/mach-davinci/clock.c +111 -3
@@ -19,6 +19,7 @@#include <linux/mutex.h> #include <linux/platform_device.h> #include <linux/io.h> +#include <linux/delay.h> #include <mach/hardware.h>
@@ -99,17 +100,44 @@ long clk_round_rate(struct clk *clk, unsigned long rate)if (clk ==NULL ||IS_ERR (clk))return -EINVAL ; +if (clk->round_rate) +return clk->round_rate (clk, rate); +return clk->rate; }EXPORT_SYMBOL (clk_round_rate); +/* Propagate rate to children */ +static void propagate_rate (struct clk *root) +{ +struct clk *clk; + +list_for_each_entry (clk, &root->children, childnode) { +if (clk->recalc) + clk->rate = clk->recalc (clk); +propagate_rate (clk); + } +} +int clk_set_rate (struct clk *clk,unsigned long rate) { +unsigned long flags; +int ret = -EINVAL ; +if (clk ==NULL ||IS_ERR (clk)) -return -EINVAL ; +return ret; -/* changing the clk rate is not supported */ -return -EINVAL ; +spin_lock_irqsave (&clockfw_lock, flags); +if (clk->set_rate) + ret = clk->set_rate (clk, rate); +if (ret ==0 ) { +if (clk->recalc) + clk->rate = clk->recalc (clk); +propagate_rate (clk); + } +spin_unlock_irqrestore (&clockfw_lock, flags); + +return ret; }EXPORT_SYMBOL (clk_set_rate);
@@ -296,6 +324,86 @@ static unsigned long clk_pllclk_recalc(struct clk *clk)return rate; } +/** +* davinci_set_pllrate - set the output rate of a given PLL. +* +* Note: Currently tested to work with OMAP-L138 only. +* +* @pll: pll whose rate needs to be changed. +* @prediv: The pre divider value. Passing 0 disables the pre-divider. +* @pllm: The multiplier value. Passing 0 leads to multiply-by-one. +* @postdiv: The post divider value. Passing 0 disables the post-divider. +*/ +int davinci_set_pllrate (struct pll_data *pll,unsigned int prediv, +unsigned int mult,unsigned int postdiv) +{ +u32 ctrl; +unsigned int locktime; + +if (pll->base ==NULL ) +return -EINVAL ; + +/* +* PLL lock time required per OMAP-L138 datasheet is +* (2000 * prediv)/sqrt(pllm) OSCIN cycles. We approximate sqrt(pllm) +* as 4 and OSCIN cycle as 25 MHz. +*/ +if (prediv) { + locktime = ((2000 * prediv) /100 ); + prediv = (prediv -1 ) |PLLDIV_EN ; + }else { + locktime =20 ; + } +if (postdiv) + postdiv = (postdiv -1 ) |PLLDIV_EN ; +if (mult) + mult = mult -1 ; + + ctrl =__raw_readl (pll->base +PLLCTL ); + +/* Switch the PLL to bypass mode */ + ctrl &= ~(PLLCTL_PLLENSRC |PLLCTL_PLLEN ); +__raw_writel (ctrl, pll->base +PLLCTL ); + +/* +* Wait for 4 OSCIN/CLKIN cycles to ensure that the PLLC has switched +* to bypass mode. Delay of 1us ensures we are good for all > 4MHz +* OSCIN/CLKIN inputs. Typically the input is ~25MHz. +*/ +udelay (1 ); + +/* Reset and enable PLL */ + ctrl &= ~(PLLCTL_PLLRST |PLLCTL_PLLDIS ); +__raw_writel (ctrl, pll->base +PLLCTL ); + +if (pll->flags &PLL_HAS_PREDIV ) +__raw_writel (prediv, pll->base +PREDIV ); + +__raw_writel (mult, pll->base +PLLM ); + +if (pll->flags &PLL_HAS_POSTDIV ) +__raw_writel (postdiv, pll->base +POSTDIV ); + +/* +* Wait for PLL to reset properly, OMAP-L138 datasheet says +* 'min' time = 125ns +*/ +udelay (1 ); + +/* Bring PLL out of reset */ + ctrl |=PLLCTL_PLLRST ; +__raw_writel (ctrl, pll->base +PLLCTL ); + +udelay (locktime); + +/* Remove PLL from bypass mode */ + ctrl |=PLLCTL_PLLEN ; +__raw_writel (ctrl, pll->base +PLLCTL ); + +return 0 ; +} +EXPORT_SYMBOL (davinci_set_pllrate); +int __init davinci_clk_init (struct davinci_clk *clocks) {struct davinci_clk *c;
arch/arm/mach-davinci/clock.h +8 -0
@@ -22,6 +22,10 @@/* PLL/Reset register offsets */ #define PLLCTL 0x100#define PLLCTL_PLLEN BIT(0) +#define PLLCTL_PLLPWRDN BIT(1) +#define PLLCTL_PLLRST BIT(3) +#define PLLCTL_PLLDIS BIT(4) +#define PLLCTL_PLLENSRC BIT(5)#define PLLCTL_CLKMODE BIT(8)#define PLLM 0x110
@@ -74,6 +78,8 @@ struct clk {struct pll_data *pll_data;u32 div_reg;unsigned long (*recalc) (struct clk *); +int (*set_rate) (struct clk *clk,unsigned long rate); +int (*round_rate) (struct clk *clk,unsigned long rate); };/* Clock flags */
@@ -97,6 +103,8 @@ struct davinci_clk { }int davinci_clk_init (struct davinci_clk *clocks); +int davinci_set_pllrate (struct pll_data *pll,unsigned int prediv, +unsigned int mult,unsigned int postdiv);extern struct platform_device davinci_wdt_device;
Signature · 1 line
1.6.4.3
PATCH 13/46 davinci: support re-parenting a clock in the clock framework
From: Sekhar Nori <[email protected]>
The clk_set_parent() API is implemented to enable re-parenting clocks in the clock tree.
This is useful in DVFS and helps by shifting clocks to an asynchronous domain where supported by hardware
--- arch/arm/mach-davinci/clock.c | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-)
arch/arm/mach-davinci/clock.c +23 -0
@@ -141,6 +141,29 @@ int clk_set_rate(struct clk *clk, unsigned long rate) }EXPORT_SYMBOL (clk_set_rate); +int clk_set_parent (struct clk *clk,struct clk *parent) +{ +unsigned long flags; + +if (clk ==NULL ||IS_ERR (clk)) +return -EINVAL ; + +mutex_lock (&clocks_mutex); + clk->parent = parent; +list_del_init (&clk->childnode); +list_add (&clk->childnode, &clk->parent->children); +mutex_unlock (&clocks_mutex); + +spin_lock_irqsave (&clockfw_lock, flags); +if (clk->recalc) + clk->rate = clk->recalc (clk); +propagate_rate (clk); +spin_unlock_irqrestore (&clockfw_lock, flags); + +return 0 ; +} +EXPORT_SYMBOL (clk_set_parent); +int clk_register (struct clk *clk) {if (clk ==NULL ||IS_ERR (clk))
Signature · 1 line
1.6.4.3
PATCH 14/46 davinci: DA850/OMAP-L138: allow async3 source to be changed
From: Sekhar Nori <[email protected]>
The patch allows Async3 clock source to be selected between PLL1 SYSCLK2 and PLL0 SYSCLK2.
Having Async3 source from PLL1 SYSCLK2 allows peripherals on that domain to remain unaffected by frequency scaling on PLL0.
--- arch/arm/mach-davinci/clock.h | 4 +- arch/arm/mach-davinci/da850.c | 40 ++++++++++++++++++++++++++++ arch/arm/mach-davinci/include/mach/da8xx.h | 1 + 3 files changed, 43 insertions(+), 2 deletions(-)
arch/arm/mach-davinci/clock.h +2 -2
@@ -69,9 +69,9 @@ struct clk {const char *name;unsigned long rate;u8 usecount; -u8 flags;u8 lpsc;u8 psc_ctlr; +u32 flags;struct clk *parent;struct list_head children;/* list of children */ struct list_head childnode;/* parent's child list node */
@@ -82,7 +82,7 @@ struct clk {int (*round_rate) (struct clk *clk,unsigned long rate); }; -/* Clock flags */ +/* Clock flags: SoC-specific flags start at BIT(16) */ #define ALWAYS_ENABLED BIT(1)#define CLK_PSC BIT(2)#define PSC_DSP BIT(3)/* PSC uses DSP domain, not ARM */
arch/arm/mach-davinci/da850.c +40 -0
@@ -30,12 +30,17 @@#include "clock.h" #include "mux.h" +/* SoC specific clock flags */ +#define DA850_CLK_ASYNC3 BIT(16) +#define DA850_PLL1_BASE 0x01e1a000#define DA850_TIMER64P2_BASE 0x01f0c000#define DA850_TIMER64P3_BASE 0x01f0d000#define DA850_REF_FREQ 24000000 +#define CFGCHIP3_ASYNC3_CLKSRC BIT(4) +static struct pll_data pll0_data = { .num =1 , .phys_base =DA8XX_PLL0_BASE ,
@@ -232,6 +237,7 @@ static struct clk uart1_clk = { .name = "uart1", .parent = &pll0_sysclk2, .lpsc = DA8XX_LPSC1_UART1, + .flags = DA850_CLK_ASYNC3, .psc_ctlr = 1, };
@@ -239,6 +245,7 @@ static struct clk uart2_clk = { .name = "uart2", .parent = &pll0_sysclk2, .lpsc = DA8XX_LPSC1_UART2, + .flags = DA850_CLK_ASYNC3, .psc_ctlr = 1, };
@@ -790,6 +797,30 @@ static struct davinci_timer_info da850_timer_info = { .clocksource_id = T0_TOP, }; +static void da850_set_async3_src (int pllnum) +{ +struct clk *clk, *newparent = pllnum ? &pll1_sysclk2 : &pll0_sysclk2; +struct davinci_clk *c; +unsigned int v; +int ret; + +for (c = da850_clks; c->lk.clk; c++) { + clk = c->lk.clk; +if (clk->flags &DA850_CLK_ASYNC3 ) { + ret =clk_set_parent (clk, newparent); +WARN (ret,"DA850: unable to re-parent clock %s" , + clk->name); + } + } + + v =__raw_readl (DA8XX_SYSCFG_VIRT (DA8XX_CFGCHIP3_REG )); +if (pllnum) + v |=CFGCHIP3_ASYNC3_CLKSRC ; +else + v &= ~CFGCHIP3_ASYNC3_CLKSRC ; +__raw_writel (v,DA8XX_SYSCFG_VIRT (DA8XX_CFGCHIP3_REG )); +} +static struct davinci_soc_info davinci_soc_info_da850 = { .io_desc = da850_io_desc, .io_desc_num =ARRAY_SIZE (da850_io_desc),
@@ -823,4 +854,13 @@ void __init da850_init(void) davinci_soc_info_da850.pinmux_base =DA8XX_SYSCFG_VIRT (0x120 );davinci_common_init (&davinci_soc_info_da850); + +/* +* Move the clock source of Async3 domain to PLL1 SYSCLK2. +* This helps keeping the peripherals on this domain insulated +* from CPU frequency changes caused by DVFS. The firmware sets +* both PLL0 and PLL1 to the same frequency so, there should not +* be any noticible change even in non-DVFS use cases. +*/ +da850_set_async3_src (1 ); }
arch/arm/mach-davinci/include/mach/da8xx.h +1 -0
@@ -34,6 +34,7 @@ extern void __iomem *da8xx_syscfg_base;#define DA8XX_SYSCFG_BASE (IO_PHYS + 0x14000)#define DA8XX_SYSCFG_VIRT (x) (da8xx_syscfg_base + (x))#define DA8XX_JTAG_ID_REG 0x18 +#define DA8XX_CFGCHIP3_REG 0x188#define DA8XX_PSC0_BASE 0x01c10000#define DA8XX_PLL0_BASE 0x01c11000
Signature · 1 line
1.6.4.3
PATCH 15/46 davinci: dm646x: Add support for 3.x silicon revision
From: Hemant Pedanekar <[email protected]>
DM6467 silicon revisions 3.x have variant field in JTAGID register as '1'. This path adds entry for the same in dm646x_ids to be able to boot on boards with 3.x revision chips.
Also modifies name for 'variant=0' (revisions 1.0, 1.1).
--- arch/arm/mach-davinci/dm646x.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)
arch/arm/mach-davinci/dm646x.c +8 -1
@@ -789,7 +789,14 @@ static struct davinci_id dm646x_ids[] = { .part_no = 0xb770, .manufacturer = 0x017, .cpu_id = DAVINCI_CPU_ID_DM6467, - .name = "dm6467", + .name = "dm6467_rev1.x", + }, + { + .variant = 0x1, + .part_no = 0xb770, + .manufacturer = 0x017, + .cpu_id = DAVINCI_CPU_ID_DM6467, + .name = "dm6467_rev3.x", }, };
Signature · 1 line
1.6.4.3
PATCH 16/46 davinci: Add MMC/SD support for DA830/OMAP-L137 EVM
From: David A. Griego <[email protected]>
Add pinmux settings, etc. to enable the MMC/SC hardware.
--- arch/arm/mach-davinci/board-da830-evm.c | 43 +++++++++++++++++++++++++++++++ 1 files changed, 43 insertions(+), 0 deletions(-)
arch/arm/mach-davinci/board-da830-evm.c +43 -0
@@ -23,6 +23,7 @@#include <mach/irqs.h> #include <mach/cp_intc.h> #include <mach/mux.h> +#include <mach/gpio.h> #include <mach/da8xx.h> #include <mach/asp.h>
@@ -83,6 +84,38 @@ static struct snd_platform_data da830_evm_snd_data = { .rxnumevt = 1, }; +/* +* GPIO2[1] is used as MMC_SD_WP and GPIO2[2] as MMC_SD_INS. +*/ +static const short da830_evm_mmc_sd_pins[] = { +DA830_MMCSD_DAT_0 ,DA830_MMCSD_DAT_1 ,DA830_MMCSD_DAT_2 , +DA830_MMCSD_DAT_3 ,DA830_MMCSD_DAT_4 ,DA830_MMCSD_DAT_5 , +DA830_MMCSD_DAT_6 ,DA830_MMCSD_DAT_7 ,DA830_MMCSD_CLK , +DA830_MMCSD_CMD ,DA830_GPIO2_1 ,DA830_GPIO2_2 , +-1 +}; + +static int da830_evm_mmc_get_ro (int index) +{ +int val, status, gpio_num =33 ; + + status =gpio_request (gpio_num,"MMC WP\n" ); +if (status <0 ) { +pr_warning ("%s can not open GPIO %d\n" , __func__, gpio_num); +return 0 ; + } +gpio_direction_input (gpio_num); + val =gpio_get_value (gpio_num); +gpio_free (gpio_num); +return val; +} + +static struct davinci_mmc_config da830_evm_mmc_config = { + .get_ro = da830_evm_mmc_get_ro, + .wires =4 , + .version =MMC_CTLR_VERSION_2 , +}; +static __init void da830_evm_init (void ) {struct davinci_soc_info *soc_info = &davinci_soc_info;
@@ -132,6 +165,16 @@ static __init void da830_evm_init(void) ret);da8xx_register_mcasp (1 , &da830_evm_snd_data); + + ret =da8xx_pinmux_setup (da830_evm_mmc_sd_pins); +if (ret) +pr_warning ("da830_evm_init: mmc/sd mux setup failed: %d\n" , + ret); + + ret =da8xx_register_mmcsd0 (&da830_evm_mmc_config); +if (ret) +pr_warning ("da830_evm_init: mmc/sd registration failed: %d\n" , + ret); }#ifdef CONFIG_SERIAL_8250_CONSOLE
Signature · 1 line
1.6.4.3
PATCH 17/46 davinci: Add support for Sharp LCD035Q3DG01 graphical LCD
From: Mark A. Greer <[email protected]>
Add support for the Sharp LCD035Q3DG01 graphical LCD. This requires a minor interface change to da8xx_register_lcdc() so that the board code can pass in the platform_data which describes the lcd controller that's to be used.
--- arch/arm/mach-davinci/board-da850-evm.c | 2 +- arch/arm/mach-davinci/devices-da8xx.c | 25 ++++++++++++++----------- arch/arm/mach-davinci/include/mach/da8xx.h | 6 +++++- 3 files changed, 20 insertions(+), 13 deletions(-)
arch/arm/mach-davinci/board-da850-evm.c +1 -1
@@ -377,7 +377,7 @@ static __init void da850_evm_init(void)pr_warning ("da850_evm_init: lcd initialization failed: %d\n" , ret); - ret =da8xx_register_lcdc (); + ret =da8xx_register_lcdc (&sharp_lk043t1dg01_pdata);if (ret)pr_warning ("da850_evm_init: lcdc registration failed: %d\n" , ret);
arch/arm/mach-davinci/devices-da8xx.c +14 -11
@@ -21,7 +21,6 @@#include <mach/common.h> #include <mach/time.h> #include <mach/da8xx.h> -#include <video/da8xx-fb.h> #include "clock.h"
@@ -381,10 +380,16 @@ static struct lcd_ctrl_config lcd_cfg = { .raster_order = 0, }; -static struct da8xx_lcdc_platform_data da850_evm_lcdc_pdata = { - .manu_name ="sharp" , - .controller_data = &lcd_cfg, - .type ="Sharp_LK043T1DG01" , +struct da8xx_lcdc_platform_data sharp_lcd035q3dg01_pdata = { + .manu_name ="sharp" , + .controller_data = &lcd_cfg, + .type ="Sharp_LCD035Q3DG01" , +}; + +struct da8xx_lcdc_platform_data sharp_lk043t1dg01_pdata = { + .manu_name ="sharp" , + .controller_data = &lcd_cfg, + .type ="Sharp_LK043T1DG01" , };static struct resource da8xx_lcdc_resources[] = {
@@ -400,19 +405,17 @@ static struct resource da8xx_lcdc_resources[] = { }, }; -static struct platform_device da850_lcdc_device = { +static struct platform_device da8xx_lcdc_device = { .name ="da8xx_lcdc" , .id =0 , .num_resources =ARRAY_SIZE (da8xx_lcdc_resources), .resource = da8xx_lcdc_resources, - .dev = { - .platform_data = &da850_evm_lcdc_pdata, - } }; -int __init da8xx_register_lcdc (void ) +int __init da8xx_register_lcdc (struct da8xx_lcdc_platform_data *pdata) { -return platform_device_register (&da850_lcdc_device); + da8xx_lcdc_device.dev.platform_data = pdata; +return platform_device_register (&da8xx_lcdc_device); }static struct resource da8xx_mmcsd0_resources[] = {
arch/arm/mach-davinci/include/mach/da8xx.h +5 -1
@@ -11,6 +11,8 @@#ifndef __ASM_ARCH_DAVINCI_DA8XX_H#define __ASM_ARCH_DAVINCI_DA8XX_H +#include <video/da8xx-fb.h> +#include <mach/serial.h> #include <mach/edma.h> #include <mach/i2c.h>
@@ -76,12 +78,14 @@ int da8xx_register_edma(void);int da8xx_register_i2c (int instance,struct davinci_i2c_platform_data *pdata);int da8xx_register_watchdog (void );int da8xx_register_emac (void ); -int da8xx_register_lcdc (void ); +int da8xx_register_lcdc (struct da8xx_lcdc_platform_data *pdata);int da8xx_register_mmcsd0 (struct davinci_mmc_config *config);void __init da8xx_register_mcasp (int id,struct snd_platform_data *pdata);extern struct platform_device da8xx_serial_device;extern struct emac_platform_data da8xx_emac_pdata; +extern struct da8xx_lcdc_platform_data sharp_lcd035q3dg01_pdata; +extern struct da8xx_lcdc_platform_data sharp_lk043t1dg01_pdata;extern const short da830_emif25_pins[];extern const short da830_spi0_pins[];
Signature · 1 line
1.6.4.3
PATCH 18/46 davinci: Add LCD Graphics support for DA830/OMAP-L137 EVM
From: Steve Chen <[email protected]>
Add graphics support for the Sharp LCD035Q3DG01 graphical LCD that's on the User Interface (UI) daughter card of the DA830/OMAP-L137 EVM.
The LCD shares EMIFA lines with the NAND and NOR devices that are also on the UI card so those lines are shared via a couple of muxes. The muxes are controlled by the 'MUX_MODE' line on the UI card. The 'MUX_MODE' line is controlled by pin P6 of a pcf8574 i2c expander that's at i2c address 0x3f on UI card. The i2c expander is controlled using the gpio infrastructure from the board code using the 'setup()' and 'teardown()' routines.
--- arch/arm/mach-davinci/Kconfig | 21 ++++++++++++++ arch/arm/mach-davinci/board-da830-evm.c | 44 ++++++++++++++++++++++++++++++- arch/arm/mach-davinci/da830.c | 2 +- 3 files changed, 65 insertions(+), 2 deletions(-)
arch/arm/mach-davinci/Kconfig +21 -0
@@ -101,6 +101,27 @@ config MACH_DAVINCI_DA830_EVM help Say Y here to select the TI DA830/OMAP-L137 Evaluation Module. +config DA830_UI + bool "DA830/OMAP-L137 UI (User Interface) board support" + depends on MACH_DAVINCI_DA830_EVM + help + Say Y here if you have the DA830/OMAP-L137 UI + (User Interface) board installed and you want to + enable the peripherals located on User Interface + board. + +choice + prompt "Select DA830/OMAP-L137 UI board peripheral" + depends on DA830_UI + +config DA830_UI_LCD + bool "LCD" + help + Say Y here to use the LCD as a framebuffer or simple character + display. + +endchoice + config MACH_DAVINCI_DA850_EVM bool "TI DA850/OMAP-L138 Reference Platform" default ARCH_DAVINCI_DA850
arch/arm/mach-davinci/board-da830-evm.c +43 -1
69 lines not on this page · raw message
arch/arm/mach-davinci/da830.c +1 -1
@@ -411,7 +411,7 @@ static struct davinci_clk da830_clks[] = {CLK (NULL ,"pwm2" , &pwm2_clk),CLK ("eqep.0" ,NULL , &eqep0_clk),CLK ("eqep.1" ,NULL , &eqep1_clk), -CLK ("da830_lcdc" ,NULL , &lcdc_clk), +CLK ("da8xx_lcdc.0" ,NULL , &lcdc_clk),CLK ("davinci-mcasp.0" ,NULL , &mcasp0_clk),CLK ("davinci-mcasp.1" ,NULL , &mcasp1_clk), CLK("davinci-mcasp.2", NULL, &mcasp2_clk),
Signature · 1 line
1.6.4.3
PATCH 19/46 davinci: Add RTC support for DA8xx/OMAP-L13x SoC's
From: Mark A. Greer <[email protected]>
Add RTC support for the da830/omap-l137 and da850/omap-l138 SoC's by leveraging existing the rtc-omap driver.
--- arch/arm/mach-davinci/board-da830-evm.c | 4 +++ arch/arm/mach-davinci/board-da850-evm.c | 4 +++ arch/arm/mach-davinci/devices-da8xx.c | 35 ++++++++++++++++++++++++++++ arch/arm/mach-davinci/include/mach/da8xx.h | 1 + 4 files changed, 44 insertions(+), 0 deletions(-)
arch/arm/mach-davinci/board-da830-evm.c +4 -0
@@ -217,6 +217,10 @@ static __init void da830_evm_init(void)if (ret)pr_warning ("da830_evm_init: lcd setup failed: %d\n" , ret);#endif + + ret =da8xx_register_rtc (); +if (ret) +pr_warning ("da830_evm_init: rtc setup failed: %d\n" , ret); }#ifdef CONFIG_SERIAL_8250_CONSOLE
arch/arm/mach-davinci/board-da850-evm.c +4 -0
@@ -381,6 +381,10 @@ static __init void da850_evm_init(void)if (ret)pr_warning ("da850_evm_init: lcdc registration failed: %d\n" , ret); + + ret =da8xx_register_rtc (); +if (ret) +pr_warning ("da850_evm_init: rtc setup failed: %d\n" , ret); }#ifdef CONFIG_SERIAL_8250_CONSOLE
arch/arm/mach-davinci/devices-da8xx.c +35 -0
@@ -29,6 +29,7 @@#define DA8XX_TPTC1_BASE 0x01c08400#define DA8XX_WDOG_BASE 0x01c21000/* DA8XX_TIMER64P1_BASE */ #define DA8XX_I2C0_BASE 0x01c22000 +#define DA8XX_RTC_BASE 0x01C23000#define DA8XX_EMAC_CPPI_PORT_BASE 0x01e20000#define DA8XX_EMAC_CPGMACSS_BASE 0x01e22000#define DA8XX_EMAC_CPGMAC_BASE 0x01e23000
@@ -453,3 +454,37 @@ int __init da8xx_register_mmcsd0(struct davinci_mmc_config *config) da8xx_mmcsd0_device.dev.platform_data = config;return platform_device_register (&da8xx_mmcsd0_device); } + +static struct resource da8xx_rtc_resources[] = { + { + .start =DA8XX_RTC_BASE , + .end =DA8XX_RTC_BASE +SZ_4K -1 , + .flags =IORESOURCE_MEM , + }, + {/* timer irq */ + .start =IRQ_DA8XX_RTC , + .end =IRQ_DA8XX_RTC , + .flags =IORESOURCE_IRQ , + }, + {/* alarm irq */ + .start =IRQ_DA8XX_RTC , + .end =IRQ_DA8XX_RTC , + .flags =IORESOURCE_IRQ , + }, +}; + +static struct platform_device da8xx_rtc_device = { + .name ="omap_rtc" , + .id =-1 , + .num_resources =ARRAY_SIZE (da8xx_rtc_resources), + .resource = da8xx_rtc_resources, +}; + +int da8xx_register_rtc (void ) +{ +/* Unlock the rtc's registers */ +__raw_writel (0x83e70b13 ,IO_ADDRESS (DA8XX_RTC_BASE +0x6c )); +__raw_writel (0x95a4f1e0 ,IO_ADDRESS (DA8XX_RTC_BASE +0x70 )); + +return platform_device_register (&da8xx_rtc_device); +}
arch/arm/mach-davinci/include/mach/da8xx.h +1 -0
@@ -81,6 +81,7 @@ int da8xx_register_emac(void);int da8xx_register_lcdc (struct da8xx_lcdc_platform_data *pdata);int da8xx_register_mmcsd0 (struct davinci_mmc_config *config);void __init da8xx_register_mcasp (int id,struct snd_platform_data *pdata); +int da8xx_register_rtc (void );extern struct platform_device da8xx_serial_device;extern struct emac_platform_data da8xx_emac_pdata;
Signature · 1 line
1.6.4.3
PATCH 20/46 davinci: Correct the GPIO number for LCD panel power
From: Sudhakar Rajashekhara <[email protected]>
On the latest DA850/OMAP-L138 EVM (Beta) the GPIO pin number of LCD panel power has changed. This patch takes care of this change. Software will support only Beta versions of DA850/OMAP-L138 EVM.
In the process, add the missing entry for data pin 0 and remove the GPIO specific pins from da850_lcdcntl_pins structure. EVM specific muxing for LCD is being done in the board file now.
--- arch/arm/mach-davinci/board-da850-evm.c | 14 +++++++++++++- arch/arm/mach-davinci/da850.c | 13 ++++++------- arch/arm/mach-davinci/include/mach/mux.h | 2 +- 3 files changed, 20 insertions(+), 9 deletions(-)
arch/arm/mach-davinci/board-da850-evm.c +13 -1
@@ -32,12 +32,13 @@#include <mach/cp_intc.h> #include <mach/da8xx.h> #include <mach/nand.h> +#include <mach/mux.h> #define DA850_EVM_PHY_MASK 0x1#define DA850_EVM_MDIO_FREQUENCY 2200000/* PHY bus frequency */ +#define DA850_LCD_PWR_PIN GPIO_TO_PIN(2, 8)#define DA850_LCD_BL_PIN GPIO_TO_PIN(2, 15) -#define DA850_LCD_PWR_PIN GPIO_TO_PIN(8, 10)#define DA850_MMCSD_CD_PIN GPIO_TO_PIN(4, 0)#define DA850_MMCSD_WP_PIN GPIO_TO_PIN(4, 1)
@@ -264,6 +265,11 @@ static void __init da850_evm_init_nor(void)#define HAS_MMC 0#endif +static const short da850_evm_lcdc_pins[] = { +DA850_GPIO2_8 ,DA850_GPIO2_15 , +-1 +}; +static __init void da850_evm_init (void ) {struct davinci_soc_info *soc_info = &davinci_soc_info;
@@ -372,6 +378,12 @@ static __init void da850_evm_init(void)pr_warning ("da850_evm_init: lcdcntl mux setup failed: %d\n" , ret); +/* Handle board specific muxing for LCD here */ + ret =da8xx_pinmux_setup (da850_evm_lcdc_pins); +if (ret) +pr_warning ("da850_evm_init: evm specific lcd mux setup " +"failed: %d\n" , ret); + ret =da850_lcd_hw_init ();if (ret) pr_warning("da850_evm_init: lcd initialization failed: %d\n",
arch/arm/mach-davinci/da850.c +6 -7
@@ -513,8 +513,8 @@ static const struct mux_config da850_pins[] = { MUX_CFG(DA850, EMA_WAIT_1, 6, 24, 15, 1, false)MUX_CFG (DA850 ,NEMA_CS_2 ,7 ,0 ,15 ,1 , false) /* GPIO function */ + MUX_CFG(DA850, GPIO2_8, 5, 28, 15, 8, false) MUX_CFG(DA850, GPIO2_15, 5, 0, 15, 8, false) - MUX_CFG(DA850, GPIO8_10, 18, 28, 15, 8, false) MUX_CFG(DA850, GPIO4_0, 10, 28, 15, 8, false) MUX_CFG(DA850, GPIO4_1, 10, 24, 15, 8, false)#endif
@@ -562,12 +562,11 @@ const short da850_mcasp_pins[] __initdata = { };const short da850_lcdcntl_pins[]__initdata = { -DA850_LCD_D_1 ,DA850_LCD_D_2 ,DA850_LCD_D_3 ,DA850_LCD_D_4 , -DA850_LCD_D_5 ,DA850_LCD_D_6 ,DA850_LCD_D_7 ,DA850_LCD_D_8 , -DA850_LCD_D_9 ,DA850_LCD_D_10 ,DA850_LCD_D_11 ,DA850_LCD_D_12 , -DA850_LCD_D_13 ,DA850_LCD_D_14 ,DA850_LCD_D_15 ,DA850_LCD_PCLK , -DA850_LCD_HSYNC ,DA850_LCD_VSYNC ,DA850_NLCD_AC_ENB_CS ,DA850_GPIO2_15 , -DA850_GPIO8_10 , +DA850_LCD_D_0 ,DA850_LCD_D_1 ,DA850_LCD_D_2 ,DA850_LCD_D_3 , +DA850_LCD_D_4 ,DA850_LCD_D_5 ,DA850_LCD_D_6 ,DA850_LCD_D_7 , +DA850_LCD_D_8 ,DA850_LCD_D_9 ,DA850_LCD_D_10 ,DA850_LCD_D_11 , +DA850_LCD_D_12 ,DA850_LCD_D_13 ,DA850_LCD_D_14 ,DA850_LCD_D_15 , +DA850_LCD_PCLK ,DA850_LCD_HSYNC ,DA850_LCD_VSYNC ,DA850_NLCD_AC_ENB_CS ,-1 };
arch/arm/mach-davinci/include/mach/mux.h +1 -1
@@ -881,8 +881,8 @@ enum davinci_da850_index {DA850_NEMA_CS_2 ,/* GPIO function */ +DA850_GPIO2_8 ,DA850_GPIO2_15 , -DA850_GPIO8_10 ,DA850_GPIO4_0 , DA850_GPIO4_1, };
Signature · 1 line
1.6.4.3
PATCH 21/46 DaVinci: EDMA: Fix bug in edma_free_cont_slots API
From: Sandeep Paulraj <[email protected]>
In the edma_free_cont_slots API, the variable slot was being modified and then used in the for loop.
This results in incorrect behaviour when the API is used.
--- arch/arm/mach-davinci/dma.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
arch/arm/mach-davinci/dma.c +4 -4
@@ -813,7 +813,7 @@ EXPORT_SYMBOL(edma_alloc_cont_slots);*/ int edma_free_cont_slots (unsigned slot,int count) { -unsigned ctlr; +unsigned ctlr, slot_to_free;int i; ctlr =EDMA_CTLR (slot);
@@ -826,11 +826,11 @@ int edma_free_cont_slots(unsigned slot, int count)for (i = slot; i < slot + count; ++i) { ctlr =EDMA_CTLR (i); - slot =EDMA_CHAN_SLOT (i); + slot_to_free =EDMA_CHAN_SLOT (i); -memcpy_toio (edmacc_regs_base[ctlr] +PARM_OFFSET (slot), +memcpy_toio (edmacc_regs_base[ctlr] +PARM_OFFSET (slot_to_free), &dummy_paramset,PARM_SIZE ); -clear_bit (slot, edma_info[ctlr]->edma_inuse); +clear_bit (slot_to_free, edma_info[ctlr]->edma_inuse); }return 0 ;
Signature · 1 line
1.6.4.3
PATCH 22/46 DaVinci: EDMA: Fix Bug in edma_alloc_cont_slots API
From: Sandeep Paulraj <[email protected]>
The edma_alloc_cont_slots API is used for obtaining a set of contiguous slots. When we use the "_ANY" option with this API, by definition of this option it is suppossed to start looking for a set of contiguous slots starting from slot 64 for DaVinci SOC's and 32 for DA8xx SOC's. This has been explained in the API description in the driver itself. So when we use the "_ANY" option with this API, the slot number passed as an argument should be a "don't care".
This patch takes care of this condition mentioned above. When checking to see if the starting slot is a valid number, it checks to make sure that the "_ANY" option is not used.
--- arch/arm/mach-davinci/dma.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
arch/arm/mach-davinci/dma.c +3 -2
@@ -771,8 +771,9 @@ int edma_alloc_cont_slots(unsigned ctlr, unsigned int id, int slot, int count)* the number of channels and lesser than the total number * of slots */ -if (slot < edma_info[ctlr]->num_channels || - slot >= edma_info[ctlr]->num_slots) +if ((id !=EDMA_CONT_PARAMS_ANY ) && + (slot < edma_info[ctlr]->num_channels || + slot >= edma_info[ctlr]->num_slots))return -EINVAL ;/*
Signature · 1 line
1.6.4.3
PATCH 23/46 davinci: DM355: Update NAND driver platform data
From: Sneha Narnakaje <[email protected]>
This patch updates the NAND driver platform data to use 4-bit ECC and the ECC_HW/ECC_HW_OOB_FIRST modes.
--- arch/arm/mach-davinci/board-dm355-evm.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
arch/arm/mach-davinci/board-dm355-evm.c +2 -1
@@ -86,8 +86,9 @@ static struct davinci_nand_pdata davinci_nand_data = { .mask_chipsel = BIT(14), .parts = davinci_nand_partitions, .nr_parts = ARRAY_SIZE(davinci_nand_partitions), - .ecc_mode = NAND_ECC_HW_SYNDROME, + .ecc_mode = NAND_ECC_HW, .options = NAND_USE_FLASH_BBT, + .ecc_bits = 4, };static struct resource davinci_nand_resources[] = {
Signature · 1 line
1.6.4.3
PATCH 24/46 davinci: DM365: Update NAND driver platform data
From: Sneha Narnakaje <[email protected]>
This patch updates the NAND driver platform data to use 4-bit ECC and the ECC_HW/ECC_HW_OOB_FIRST modes.
--- arch/arm/mach-davinci/board-dm365-evm.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mach-davinci/board-dm365-evm.c +1 -0
@@ -144,6 +144,7 @@ static struct davinci_nand_pdata davinci_nand_data = { .nr_parts = ARRAY_SIZE(davinci_nand_partitions), .ecc_mode = NAND_ECC_HW, .options = NAND_USE_FLASH_BBT, + .ecc_bits = 4, };static struct resource davinci_nand_resources[] = {
Signature · 1 line
1.6.4.3
PATCH 25/46 DaVinci: EDMA: Fix Bug while obtaining contiguous params
From: Sandeep Paulraj <[email protected]>
The reserve_contiguous_params function is used to reserve a set of contiguous PARAMs. If we do not find a complete set of contiguous PARAMs, the functions still has to free every PARAM that it found to be free in the process of finding a complete set and thus marked as "in use".
This patch mainly deals with correctly handling the freeing of PARAMs.
--- arch/arm/mach-davinci/dma.c | 32 ++++++++++++++++++++++++-------- 1 files changed, 24 insertions(+), 8 deletions(-)
arch/arm/mach-davinci/dma.c +24 -8
@@ -515,17 +515,30 @@ static int reserve_contiguous_params(int ctlr, unsigned int id, {int i, j;unsigned int count = num_params; +int stop_param = start_param; +DECLARE_BITMAP (tmp_inuse,EDMA_MAX_PARAMENTRY );for (i = start_param; i < edma_info[ctlr]->num_slots; ++i) { j =EDMA_CHAN_SLOT (i); -if (!test_and_set_bit (j, edma_info[ctlr]->edma_inuse)) +if (!test_and_set_bit (j, edma_info[ctlr]->edma_inuse)) { +/* Record our current beginning slot */ +if (count == num_params) + stop_param = i; + count--; +set_bit (j, tmp_inuse); +if (count ==0 )break ; -else if (id ==EDMA_CONT_PARAMS_FIXED_EXACT ) -break ; -else - count = num_params; + }else { +clear_bit (j, tmp_inuse); + +if (id ==EDMA_CONT_PARAMS_FIXED_EXACT ) { + stop_param = i; +break ; + }else + count = num_params; + } }/*
@@ -534,12 +547,15 @@ static int reserve_contiguous_params(int ctlr, unsigned int id,* of contiguous parameter RAMs but do not find the exact number * requested as we may reach the total number of parameter RAMs */ -if (count) { -for (j = i - num_params + count +1 ; j <= i ; ++j) +if (i == edma_info[ctlr]->num_slots) + stop_param = i; + +for (j = start_param; j < stop_param; j++) +if (test_bit (j, tmp_inuse))clear_bit (j, edma_info[ctlr]->edma_inuse); +if (count)return -EBUSY ; - }for (j = i - num_params +1 ; j <= i; ++j) memcpy_toio(edmacc_regs_base[ctlr] + PARM_OFFSET(j),
Signature · 1 line
1.6.4.3
PATCH 26/46 DaVinci: EDMA: Updating terminlogy in EDMA driver
From: Sandeep Paulraj <[email protected]>
The patch itself does not change the functionality of any existing code. PARAM entries in the present GIT kernel are referred to as slots. New API's being added to the EDMA driver were referring to these PARAM entries as "params". This patch updates the terminolgy used in the EDMA driver.
--- arch/arm/mach-davinci/dma.c | 65 ++++++++++++++++++++++--------------------- 1 files changed, 33 insertions(+), 32 deletions(-)
arch/arm/mach-davinci/dma.c +33 -32
@@ -509,21 +509,21 @@ static irqreturn_t dma_tc1err_handler(int irq, void *data)return IRQ_HANDLED ; } -static int reserve_contiguous_params (int ctlr,unsigned int id, -unsigned int num_params, -unsigned int start_param) +static int reserve_contiguous_slots (int ctlr,unsigned int id, +unsigned int num_slots, +unsigned int start_slot) {int i, j; -unsigned int count = num_params; -int stop_param = start_param; +unsigned int count = num_slots; +int stop_slot = start_slot;DECLARE_BITMAP (tmp_inuse,EDMA_MAX_PARAMENTRY ); -for (i = start_param; i < edma_info[ctlr]->num_slots; ++i) { +for (i = start_slot; i < edma_info[ctlr]->num_slots; ++i) { j =EDMA_CHAN_SLOT (i);if (!test_and_set_bit (j, edma_info[ctlr]->edma_inuse)) {/* Record our current beginning slot */ -if (count == num_params) - stop_param = i; +if (count == num_slots) + stop_slot = i; count--;set_bit (j, tmp_inuse);
@@ -534,34 +534,34 @@ static int reserve_contiguous_params(int ctlr, unsigned int id,clear_bit (j, tmp_inuse);if (id ==EDMA_CONT_PARAMS_FIXED_EXACT ) { - stop_param = i; + stop_slot = i;break ; }else - count = num_params; + count = num_slots; } }/* * We have to clear any bits that we set -* if we run out parameter RAMs, i.e we do find a set -* of contiguous parameter RAMs but do not find the exact number -* requested as we may reach the total number of parameter RAMs +* if we run out parameter RAM slots, i.e we do find a set +* of contiguous parameter RAM slots but do not find the exact number +* requested as we may reach the total number of parameter RAM slots */ if (i == edma_info[ctlr]->num_slots) - stop_param = i; + stop_slot = i; -for (j = start_param; j < stop_param; j++) +for (j = start_slot; j < stop_slot; j++)if (test_bit (j, tmp_inuse))clear_bit (j, edma_info[ctlr]->edma_inuse);if (count)return -EBUSY ; -for (j = i - num_params +1 ; j <= i; ++j) +for (j = i - num_slots +1 ; j <= i; ++j)memcpy_toio (edmacc_regs_base[ctlr] +PARM_OFFSET (j), &dummy_paramset,PARM_SIZE ); -return EDMA_CTLR_CHAN (ctlr, i - num_params +1 ); +return EDMA_CTLR_CHAN (ctlr, i - num_slots +1 ); }/*-----------------------------------------------------------------------*/
@@ -759,26 +759,27 @@ EXPORT_SYMBOL(edma_free_slot);/** * edma_alloc_cont_slots- alloc contiguous parameter RAM slots * The API will return the starting point of a set of -* contiguous PARAM's that have been requested +* contiguous parameter RAM slots that have been requested * * @id: can only be EDMA_CONT_PARAMS_ANY or EDMA_CONT_PARAMS_FIXED_EXACT * or EDMA_CONT_PARAMS_FIXED_NOT_EXACT -* @count: number of contiguous Paramter RAM's -* @param - the start value of Parameter RAM that should be passed if id +* @count: number of contiguous Paramter RAM slots +* @slot - the start value of Parameter RAM slot that should be passed if id * is EDMA_CONT_PARAMS_FIXED_EXACT or EDMA_CONT_PARAMS_FIXED_NOT_EXACT * * If id is EDMA_CONT_PARAMS_ANY then the API starts looking for a set of -* contiguous Parameter RAMs from parameter RAM 64 in the case of DaVinci SOCs -* and 32 in the case of Primus +* contiguous Parameter RAM slots from parameter RAM 64 in the case of +* DaVinci SOCs and 32 in the case of DA8xx SOCs. * * If id is EDMA_CONT_PARAMS_FIXED_EXACT then the API starts looking for a -* set of contiguous parameter RAMs from the "param" that is passed as an +* set of contiguous parameter RAM slots from the "slot" that is passed as an * argument to the API. * * If id is EDMA_CONT_PARAMS_FIXED_NOT_EXACT then the API initially tries -* starts looking for a set of contiguous parameter RAMs from the "param" +* starts looking for a set of contiguous parameter RAMs from the "slot" * that is passed as an argument to the API. On failure the API will try to -* find a set of contiguous Parameter RAMs in the remaining Parameter RAMs +* find a set of contiguous Parameter RAM slots from the remaining Parameter +* RAM slots */ int edma_alloc_cont_slots (unsigned ctlr,unsigned int id,int slot,int count) {
@@ -793,7 +794,7 @@ int edma_alloc_cont_slots(unsigned ctlr, unsigned int id, int slot, int count)return -EINVAL ;/* -* The number of parameter RAMs requested cannot be less than 1 +* The number of parameter RAM slots requested cannot be less than 1 * and cannot be more than the number of slots minus the number of * channels */
@@ -803,11 +804,11 @@ int edma_alloc_cont_slots(unsigned ctlr, unsigned int id, int slot, int count)switch (id) {case EDMA_CONT_PARAMS_ANY : -return reserve_contiguous_params (ctlr, id, count, +return reserve_contiguous_slots (ctlr, id, count, edma_info[ctlr]->num_channels);case EDMA_CONT_PARAMS_FIXED_EXACT :case EDMA_CONT_PARAMS_FIXED_NOT_EXACT : -return reserve_contiguous_params (ctlr, id, count, slot); +return reserve_contiguous_slots (ctlr, id, count, slot);default :return -EINVAL ; }
@@ -816,14 +817,14 @@ int edma_alloc_cont_slots(unsigned ctlr, unsigned int id, int slot, int count)EXPORT_SYMBOL (edma_alloc_cont_slots);/** -* edma_free_cont_slots - deallocate DMA parameter RAMs -* @slot: first parameter RAM of a set of parameter RAMs to be freed -* @count: the number of contiguous parameter RAMs to be freed +* edma_free_cont_slots - deallocate DMA parameter RAM slots +* @slot: first parameter RAM of a set of parameter RAM slots to be freed +* @count: the number of contiguous parameter RAM slots to be freed * * This deallocates the parameter RAM slots allocated by * edma_alloc_cont_slots. * Callers/applications need to keep track of sets of contiguous -* parameter RAMs that have been allocated using the edma_alloc_cont_slots +* parameter RAM slots that have been allocated using the edma_alloc_cont_slots * API. * Callers are responsible for ensuring the slots are inactive, and will * not be activated.
Signature · 1 line
1.6.4.3
PATCH 27/46 davinci: DA8xx: CFGCHIP2 register definitions
From: Sergei Shtylyov <[email protected]>
These are needed by the MUSB and OHCI glue layers...
--- arch/arm/mach-davinci/include/mach/da8xx.h | 1 + arch/arm/mach-davinci/include/mach/usb.h | 37 ++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-davinci/include/mach/usb.h
arch/arm/mach-davinci/include/mach/da8xx.h +1 -0
@@ -36,6 +36,7 @@ extern void __iomem *da8xx_syscfg_base;#define DA8XX_SYSCFG_BASE (IO_PHYS + 0x14000)#define DA8XX_SYSCFG_VIRT (x) (da8xx_syscfg_base + (x))#define DA8XX_JTAG_ID_REG 0x18 +#define DA8XX_CFGCHIP2_REG 0x184#define DA8XX_CFGCHIP3_REG 0x188#define DA8XX_PSC0_BASE 0x01c10000
arch/arm/mach-davinci/include/mach/usb.h new file +37 -0
@@ -0,0 +1,37 @@ +/* +* USB related definitions +* +* Copyright (C) 2009 MontaVista Software, Inc. <[email protected]> +* +* This file is licensed under the terms of the GNU General Public License +* version 2. This program is licensed "as is" without any warranty of any +* kind, whether express or implied. +*/ + +#ifndef __ASM_ARCH_USB_H +#define __ASM_ARCH_USB_H + +/* DA8xx CFGCHIP2 (USB 2.0 PHY Control) register bits */ +#define CFGCHIP2_PHYCLKGD (1 << 17) +#define CFGCHIP2_VBUSSENSE (1 << 16) +#define CFGCHIP2_RESET (1 << 15) +#define CFGCHIP2_OTGMODE (3 << 13) +#define CFGCHIP2_NO_OVERRIDE (0 << 13) +#define CFGCHIP2_FORCE_HOST (1 << 13) +#define CFGCHIP2_FORCE_DEVICE (2 << 13) +#define CFGCHIP2_FORCE_HOST_VBUS_LOW (3 << 13) +#define CFGCHIP2_USB1PHYCLKMUX (1 << 12) +#define CFGCHIP2_USB2PHYCLKMUX (1 << 11) +#define CFGCHIP2_PHYPWRDN (1 << 10) +#define CFGCHIP2_OTGPWRDN (1 << 9) +#define CFGCHIP2_DATPOL (1 << 8) +#define CFGCHIP2_USB1SUSPENDM (1 << 7) +#define CFGCHIP2_PHY_PLLON (1 << 6)/* override PLL suspend */ +#define CFGCHIP2_SESENDEN (1 << 5)/* Vsess_end comparator */ +#define CFGCHIP2_VBDTCTEN (1 << 4)/* Vbus comparator */ +#define CFGCHIP2_REFFREQ (0xf << 0) +#define CFGCHIP2_REFFREQ_12MHZ (1 << 0) +#define CFGCHIP2_REFFREQ_24MHZ (2 << 0) +#define CFGCHIP2_REFFREQ_48MHZ (3 << 0) + +#endif /* ifndef __ASM_ARCH_USB_H */
Signature · 1 line
1.6.4.3
PATCH 28/46 davinci: DA8xx: OHCI platform device
From: Sergei Shtylyov <[email protected]>
Add the function to register the OHCI platform device, given the root hub related platform data passed from the board specific code. The platfrom data provide for overriding the OHCI port power and over-current bits at the board level.
--- arch/arm/mach-davinci/include/mach/da8xx.h | 2 + arch/arm/mach-davinci/include/mach/usb.h | 20 +++++++++++++++ arch/arm/mach-davinci/usb.c | 37 +++++++++++++++++++++++++++- 3 files changed, 58 insertions(+), 1 deletions(-)
arch/arm/mach-davinci/include/mach/da8xx.h +2 -0
@@ -19,6 +19,7 @@#include <mach/emac.h> #include <mach/asp.h> #include <mach/mmc.h> +#include <mach/usb.h> extern void __iomem *da8xx_syscfg_base;
@@ -78,6 +79,7 @@ void __init da850_init(void);int da8xx_register_edma (void );int da8xx_register_i2c (int instance,struct davinci_i2c_platform_data *pdata);int da8xx_register_watchdog (void ); +int da8xx_register_usb11 (struct da8xx_ohci_root_hub *pdata);int da8xx_register_emac (void );int da8xx_register_lcdc (struct da8xx_lcdc_platform_data *pdata);int da8xx_register_mmcsd0 (struct davinci_mmc_config *config);
arch/arm/mach-davinci/include/mach/usb.h +20 -0
@@ -34,4 +34,24 @@#define CFGCHIP2_REFFREQ_24MHZ (2 << 0)#define CFGCHIP2_REFFREQ_48MHZ (3 << 0) +struct da8xx_ohci_root_hub ; + +typedef void (*da8xx_ocic_handler_t )(struct da8xx_ohci_root_hub *hub, +unsigned port); + +/* Passed as the platform data to the OHCI driver */ +struct da8xx_ohci_root_hub { +/* Switch the port power on/off */ +int (*set_power)(unsigned port,int on); +/* Read the port power status */ +int (*get_power)(unsigned port); +/* Read the port over-current indicator */ +int (*get_oci)(unsigned port); +/* Over-current indicator change notification (pass NULL to disable) */ +int (*ocic_notify)(da8xx_ocic_handler_t handler); + +/* Time from power on to power good (in 2 ms units) */ +u8 potpgt; +}; +#endif /* ifndef __ASM_ARCH_USB_H */
arch/arm/mach-davinci/usb.c +36 -1
@@ -14,8 +14,10 @@#include <mach/hardware.h> #include <mach/irqs.h> #include <mach/cputype.h> +#include <mach/usb.h> -#define DAVINCI_USB_OTG_BASE 0x01C64000 +#define DAVINCI_USB_OTG_BASE 0x01c64000 +#define DA8XX_USB1_BASE 0x01e25000#if defined(CONFIG_USB_MUSB_HDRC ) || defined(CONFIG_USB_MUSB_HDRC_MODULE ) static struct musb_hdrc_eps_bits musb_eps[] = {
@@ -108,3 +110,36 @@ void __init setup_usb(unsigned mA, unsigned potpgt_msec)#endif /* CONFIG_USB_MUSB_HDRC */ +#ifdef CONFIG_ARCH_DAVINCI_DA8XX +static struct resource da8xx_usb11_resources[] = { + [0 ] = { + .start =DA8XX_USB1_BASE , + .end =DA8XX_USB1_BASE +SZ_4K -1 , + .flags =IORESOURCE_MEM , + }, + [1 ] = { + .start =IRQ_DA8XX_IRQN , + .end =IRQ_DA8XX_IRQN , + .flags =IORESOURCE_IRQ , + }, +}; + +static u64 da8xx_usb11_dma_mask =DMA_BIT_MASK (32 ); + +static struct platform_device da8xx_usb11_device = { + .name ="ohci" , + .id =0 , + .dev = { + .dma_mask = &da8xx_usb11_dma_mask, + .coherent_dma_mask =DMA_BIT_MASK (32 ), + }, + .num_resources =ARRAY_SIZE (da8xx_usb11_resources), + .resource = da8xx_usb11_resources, +}; + +int __init da8xx_register_usb11 (struct da8xx_ohci_root_hub *pdata) +{ + da8xx_usb11_device.dev.platform_data = pdata; +return platform_device_register (&da8xx_usb11_device); +} +#endif /* CONFIG_DAVINCI_DA8XX */
Signature · 1 line
1.6.4.3
PATCH 29/46 davinci: DA830 EVM: OHCI platform code
From: Sergei Shtylyov <[email protected]>
On this board the OHCI port's power control and over-current signals from TPS2065 power switch are connected via GPIO1[15] and GPIO2[1] respectively, so we can implement the DA8xx OHCI glue layer's hooks for overriding the root hub port's power and over-current status bits.
We also have to properly set up the clocking mode in the CFGCHIP2 register, so that internal 24 MHz reference clock is fed to the USB 2.0 (MUSB) PHY and its output is used to clock the USB 1.1 (OHCI) PHY...
--- arch/arm/mach-davinci/board-da830-evm.c | 125 +++++++++++++++++++++++++++++++ 1 files changed, 125 insertions(+), 0 deletions(-)
arch/arm/mach-davinci/board-da830-evm.c +125 -0
@@ -13,6 +13,7 @@#include <linux/module.h> #include <linux/init.h> #include <linux/console.h> +#include <linux/interrupt.h> #include <linux/gpio.h> #include <linux/i2c.h> #include <linux/i2c/pcf857x.h>
@@ -28,6 +29,7 @@#include <mach/gpio.h> #include <mach/da8xx.h> #include <mach/asp.h> +#include <mach/usb.h> #define DA830_EVM_PHY_MASK 0x0#define DA830_EVM_MDIO_FREQUENCY 2200000/* PHY bus frequency */
@@ -84,6 +86,127 @@ static struct davinci_i2c_platform_data da830_evm_i2c_0_pdata = { .bus_delay = 0, /* usec */ }; +/* +* USB1 VBUS is controlled by GPIO1[15], over-current is reported on GPIO2[4]. +*/ +#define ON_BD_USB_DRV GPIO_TO_PIN(1, 15) +#define ON_BD_USB_OVC GPIO_TO_PIN(2, 4) + +static const short da830_evm_usb11_pins[] = { +DA830_GPIO1_15 ,DA830_GPIO2_4 , +-1 +}; + +static da8xx_ocic_handler_t da830_evm_usb_ocic_handler; + +static int da830_evm_usb_set_power (unsigned port,int on) +{ +gpio_set_value (ON_BD_USB_DRV , on); +return 0 ; +} + +static int da830_evm_usb_get_power (unsigned port) +{ +return gpio_get_value (ON_BD_USB_DRV ); +} + +static int da830_evm_usb_get_oci (unsigned port) +{ +return !gpio_get_value (ON_BD_USB_OVC ); +} + +static irqreturn_t da830_evm_usb_ocic_irq (int ,void *); + +static int da830_evm_usb_ocic_notify (da8xx_ocic_handler_t handler) +{ +int irq =gpio_to_irq (ON_BD_USB_OVC ); +int error =0 ; + +if (handler !=NULL ) { + da830_evm_usb_ocic_handler = handler; + + error =request_irq (irq, da830_evm_usb_ocic_irq,IRQF_DISABLED | +IRQF_TRIGGER_RISING |IRQF_TRIGGER_FALLING , +"OHCI over-current indicator" ,NULL ); +if (error) +printk (KERN_ERR "%s: could not request IRQ to watch " +"over-current indicator changes\n" , __func__); + }else +free_irq (irq,NULL ); + +return error; +} + +static struct da8xx_ohci_root_hub da830_evm_usb11_pdata = { + .set_power = da830_evm_usb_set_power, + .get_power = da830_evm_usb_get_power, + .get_oci = da830_evm_usb_get_oci, + .ocic_notify = da830_evm_usb_ocic_notify, + +/* TPS2065 switch @ 5V */ + .potpgt = (3 +1 ) /2 ,/* 3 ms max */ +}; + +static irqreturn_t da830_evm_usb_ocic_irq (int irq,void *dev_id) +{ +da830_evm_usb_ocic_handler (&da830_evm_usb11_pdata,1 ); +return IRQ_HANDLED ; +} + +static __init void da830_evm_usb_init (void ) +{ +u32 cfgchip2; +int ret; + +/* +* Set up USB clock/mode in the CFGCHIP2 register. +* FYI: CFGCHIP2 is 0x0000ef00 initially. +*/ + cfgchip2 =__raw_readl (DA8XX_SYSCFG_VIRT (DA8XX_CFGCHIP2_REG )); + +/* USB2.0 PHY reference clock is 24 MHz */ + cfgchip2 &= ~CFGCHIP2_REFFREQ ; + cfgchip2 |=CFGCHIP2_REFFREQ_24MHZ ; + +/* +* Select internal reference clock for USB 2.0 PHY +* and use it as a clock source for USB 1.1 PHY +* (this is the default setting anyway). +*/ + cfgchip2 &= ~CFGCHIP2_USB1PHYCLKMUX ; + cfgchip2 |=CFGCHIP2_USB2PHYCLKMUX ; + +__raw_writel (cfgchip2,DA8XX_SYSCFG_VIRT (DA8XX_CFGCHIP2_REG )); + + ret =da8xx_pinmux_setup (da830_evm_usb11_pins); +if (ret) { +pr_warning ("%s: USB 1.1 PinMux setup failed: %d\n" , + __func__, ret); +return ; + } + + ret =gpio_request (ON_BD_USB_DRV ,"ON_BD_USB_DRV" ); +if (ret) { +printk (KERN_ERR "%s: failed to request GPIO for USB 1.1 port " +"power control: %d\n" , __func__, ret); +return ; + } +gpio_direction_output (ON_BD_USB_DRV ,0 ); + + ret =gpio_request (ON_BD_USB_OVC ,"ON_BD_USB_OVC" ); +if (ret) { +printk (KERN_ERR "%s: failed to request GPIO for USB 1.1 port " +"over-current indicator: %d\n" , __func__, ret); +return ; + } +gpio_direction_input (ON_BD_USB_OVC ); + + ret =da8xx_register_usb11 (&da830_evm_usb11_pdata); +if (ret) +pr_warning ("%s: USB 1.1 registration failed: %d\n" , + __func__, ret); +} +static struct davinci_uart_config da830_evm_uart_config__initdata = { .enabled_uarts =0x7 , };
@@ -167,6 +290,8 @@ static __init void da830_evm_init(void)pr_warning ("da830_evm_init: i2c0 registration failed: %d\n" , ret); +da830_evm_usb_init (); + soc_info->emac_pdata->phy_mask =DA830_EVM_PHY_MASK ; soc_info->emac_pdata->mdio_max_freq =DA830_EVM_MDIO_FREQUENCY ; soc_info->emac_pdata->rmii_en =1 ;
Signature · 1 line
1.6.4.3
PATCH 30/46 davinci: da830 EVM: make machine name string consistent with da850
The machine name string shows up in /proc/cpuinfo under 'Hardware' and can be used by userspace apps. Make the format consistent with the DA850/OMAP-l138 EVM by adding the '-' between OMAP and L137.
--- arch/arm/mach-davinci/board-da830-evm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-davinci/board-da830-evm.c +1 -1
@@ -369,7 +369,7 @@ static void __init da830_evm_map_io(void)da830_init (); } -MACHINE_START (DAVINCI_DA830_EVM ,"DaVinci DA830/OMAP L137 EVM" ) +MACHINE_START (DAVINCI_DA830_EVM ,"DaVinci DA830/OMAP-L137 EVM" ) .phys_io = IO_PHYS, .io_pg_offst = (__IO_ADDRESS(IO_PHYS) >> 18) & 0xfffc, .boot_params = (DA8XX_DDR_BASE + 0x100),
Signature · 1 line
1.6.4.3
PATCH 31/46 davinci: da830: add support for new silicon revisions
Newer revs of da830 silicon have different 'variant' field of the JTAG id register. Current code only supports rev 1.0 silicon.
This patch adds support for rev1.1 and rev2.0 silicon and updates the 'name' strings to add a '-' between 'omap' & 'l137' to have consistent naming with da850/omap-l138.
PATCH 32/46 davinci: da830 EVM: remove #include <mach/gpio.h>
All that is needed is the existing #include <linux/gpio.h>
--- arch/arm/mach-davinci/board-da830-evm.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
arch/arm/mach-davinci/board-da830-evm.c +0 -1
@@ -26,7 +26,6 @@#include <mach/irqs.h> #include <mach/cp_intc.h> #include <mach/mux.h> -#include <mach/gpio.h> #include <mach/da8xx.h> #include <mach/asp.h> #include <mach/usb.h>
Signature · 1 line
1.6.4.3
PATCH 33/46 davinci: add generic CPUFreq driver for DaVinci
From: Sekhar Nori <[email protected]>
Adds a basic CPUFreq driver for DaVinci devices registering with the kernel CPUFreq infrastructure.
Support is added for both frequency and voltage regulation.
--- arch/arm/mach-davinci/Kconfig | 1 + arch/arm/mach-davinci/Makefile | 3 + arch/arm/mach-davinci/cpufreq.c | 219 ++++++++++++++++++++++++++ arch/arm/mach-davinci/include/mach/cpufreq.h | 25 +++ 4 files changed, 248 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-davinci/cpufreq.c create mode 100644 arch/arm/mach-davinci/include/mach/cpufreq.h
arch/arm/mach-davinci/Kconfig +1 -0
@@ -32,6 +32,7 @@ config ARCH_DAVINCI_DA830 bool "DA830/OMAP-L137 based system" select CP_INTC select ARCH_DAVINCI_DA8XX + select ARCH_HAS_CPUFREQ config ARCH_DAVINCI_DA850 bool "DA850/OMAP-L138 based system"
arch/arm/mach-davinci/Makefile +3 -0
@@ -29,3 +29,6 @@ obj-$(CONFIG_MACH_DAVINCI_DM6467_EVM) += board-dm646x-evm.o obj-$(CONFIG_MACH_DAVINCI_DM365_EVM) += board-dm365-evm.o obj-$(CONFIG_MACH_DAVINCI_DA830_EVM) += board-da830-evm.o obj-$(CONFIG_MACH_DAVINCI_DA850_EVM) += board-da850-evm.o + +# Power Management +obj-$(CONFIG_CPU_FREQ) += cpufreq.o
arch/arm/mach-davinci/cpufreq.c new file +219 -0
219 lines not on this page · raw message
arch/arm/mach-davinci/include/mach/cpufreq.h new file +25 -0
@@ -0,0 +1,25 @@ +/* +* TI DaVinci CPUFreq platform support. +* +* Copyright (C) 2009 Texas Instruments, Inc. http://www.ti.com/ +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation version 2. +* +* This program is distributed "as is" WITHOUT ANY WARRANTY of any +* kind, whether express or implied; without even the implied warranty +* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +*/ +#ifndef _MACH_DAVINCI_CPUFREQ_H +#define _MACH_DAVINCI_CPUFREQ_H + +#include <linux/cpufreq.h> + +struct davinci_cpufreq_config { +struct cpufreq_frequency_table *freq_table; +int (*set_voltage) (unsigned int index); +}; + +#endif
Signature · 1 line
1.6.4.3
PATCH 34/46 davinci: DA850/OMAP-L138: add frequency scaling support
From: Sekhar Nori <[email protected]>
Adds basic frequency scaling support for DA850/OMAP-L138.
Currently, frequency scaling only on PLL0 is supported. No scaling of PLL1 as yet.
Peripherals like MMC/SD which have a clock input synchronous with ARM clock will not work well since the clock will change behind their backs. Support for notification to such devices to adjust themselves to the new frequency will be added in later patches. Current defconfigs keep CPUFreq disabled so it will not affect normal operation.
The OPP defintions assume clock input of 24MHz to the SoC. This is inline with hardcoding of input frequency in the <soc>.c files. At some point this will need to move into board dependent code as new boards appear with a different reference clock.
Tested on OMAP-L138 EVM with ondemand governer and a shell script to vary processor load.
--- arch/arm/mach-davinci/da850.c | 153 ++++++++++++++++++++++++++++ arch/arm/mach-davinci/include/mach/da8xx.h | 2 + 2 files changed, 155 insertions(+), 0 deletions(-)
arch/arm/mach-davinci/da850.c +153 -0
@@ -15,6 +15,7 @@#include <linux/init.h> #include <linux/clk.h> #include <linux/platform_device.h> +#include <linux/cpufreq.h> #include <asm/mach/map.h>
@@ -26,6 +27,7 @@#include <mach/common.h> #include <mach/time.h> #include <mach/da8xx.h> +#include <mach/cpufreq.h> #include "clock.h" #include "mux.h"
@@ -40,6 +42,11 @@#define DA850_REF_FREQ 24000000#define CFGCHIP3_ASYNC3_CLKSRC BIT(4) +#define CFGCHIP0_PLL_MASTER_LOCK BIT(4) + +static int da850_set_armrate (struct clk *clk,unsigned long rate); +static int da850_round_armrate (struct clk *clk,unsigned long rate); +static int da850_set_pll0rate (struct clk *clk,unsigned long armrate);static struct pll_data pll0_data = { .num =1 ,
@@ -57,6 +64,7 @@ static struct clk pll0_clk = { .parent = &ref_clk, .pll_data = &pll0_data, .flags = CLK_PLL, + .set_rate = da850_set_pll0rate, };static struct clk pll0_aux_clk = {
@@ -283,6 +291,8 @@ static struct clk arm_clk = { .parent = &pll0_sysclk6, .lpsc = DA8XX_LPSC0_ARM, .flags = ALWAYS_ENABLED, + .set_rate = da850_set_armrate, + .round_rate = da850_round_armrate, };static struct clk rmii_clk = {
@@ -820,6 +830,149 @@ static void da850_set_async3_src(int pllnum)__raw_writel (v,DA8XX_SYSCFG_VIRT (DA8XX_CFGCHIP3_REG )); } +#ifdef CONFIG_CPU_FREQ +/* +* Notes: +* According to the TRM, minimum PLLM results in maximum power savings. +* The OPP definitions below should keep the PLLM as low as possible. +* +* The output of the PLLM must be between 400 to 600 MHz. +* This rules out prediv of anything but divide-by-one for 24Mhz OSC input. +*/ +struct da850_opp { +unsigned int freq;/* in KHz */ +unsigned int prediv; +unsigned int mult; +unsigned int postdiv; +}; + +static const struct da850_opp da850_opp_300 = { + .freq =300000 , + .prediv =1 , + .mult =25 , + .postdiv =2 , +}; + +static const struct da850_opp da850_opp_200 = { + .freq =200000 , + .prediv =1 , + .mult =25 , + .postdiv =3 , +}; + +static const struct da850_opp da850_opp_96 = { + .freq =96000 , + .prediv =1 , + .mult =20 , + .postdiv =5 , +}; + +#define OPP (freq) \ + { \ + .index = (unsigned int) &da850_opp_##freq, \ + .frequency = freq * 1000, \ + } + +static struct cpufreq_frequency_table da850_freq_table[] = { +OPP (300 ), +OPP (200 ), +OPP (96 ), + { + .index =0 , + .frequency =CPUFREQ_TABLE_END , + }, +}; + +static struct davinci_cpufreq_config cpufreq_info = { + .freq_table = &da850_freq_table[0 ], +}; + +static struct platform_device da850_cpufreq_device = { + .name ="cpufreq-davinci" , + .dev = { + .platform_data = &cpufreq_info, + }, +}; + +int __init da850_register_cpufreq (void ) +{ +return platform_device_register (&da850_cpufreq_device); +} + +static int da850_round_armrate (struct clk *clk,unsigned long rate) +{ +int i, ret =0 , diff; +unsigned int best = (unsigned int )-1 ; + + rate /=1000 ;/* convert to kHz */ + +for (i =0 ; da850_freq_table[i].frequency !=CPUFREQ_TABLE_END ; i++) { + diff = da850_freq_table[i].frequency - rate; +if (diff <0 ) + diff = -diff; + +if (diff < best) { + best = diff; + ret = da850_freq_table[i].frequency; + } + } + +return ret *1000 ; +} + +static int da850_set_armrate (struct clk *clk,unsigned long index) +{ +struct clk *pllclk = &pll0_clk; + +return clk_set_rate (pllclk, index); +} + +static int da850_set_pll0rate (struct clk *clk,unsigned long index) +{ +unsigned int prediv, mult, postdiv; +struct da850_opp *opp; +struct pll_data *pll = clk->pll_data; +unsigned int v; +int ret; + + opp = (struct da850_opp *) da850_freq_table[index].index; + prediv = opp->prediv; + mult = opp->mult; + postdiv = opp->postdiv; + +/* Unlock writing to PLL registers */ + v =__raw_readl (DA8XX_SYSCFG_VIRT (DA8XX_CFGCHIP0_REG )); + v &= ~CFGCHIP0_PLL_MASTER_LOCK ; +__raw_writel (v,DA8XX_SYSCFG_VIRT (DA8XX_CFGCHIP0_REG )); + + ret =davinci_set_pllrate (pll, prediv, mult, postdiv); +if (WARN_ON (ret)) +return ret; + +return 0 ; +} +#else +int __init da850_register_cpufreq (void ) +{ +return 0 ; +} + +static int da850_set_armrate (struct clk *clk,unsigned long rate) +{ +return -EINVAL ; +} + +static int da850_set_pll0rate (struct clk *clk,unsigned long armrate) +{ +return -EINVAL ; +} + +static int da850_round_armrate (struct clk *clk,unsigned long rate) +{ +return clk->rate; +} +#endif +static struct davinci_soc_info davinci_soc_info_da850 = { .io_desc = da850_io_desc, .io_desc_num =ARRAY_SIZE (da850_io_desc),
arch/arm/mach-davinci/include/mach/da8xx.h +2 -0
@@ -37,6 +37,7 @@ extern void __iomem *da8xx_syscfg_base;#define DA8XX_SYSCFG_BASE (IO_PHYS + 0x14000)#define DA8XX_SYSCFG_VIRT (x) (da8xx_syscfg_base + (x))#define DA8XX_JTAG_ID_REG 0x18 +#define DA8XX_CFGCHIP0_REG 0x17c#define DA8XX_CFGCHIP2_REG 0x184#define DA8XX_CFGCHIP3_REG 0x188
@@ -85,6 +86,7 @@ int da8xx_register_lcdc(struct da8xx_lcdc_platform_data *pdata);int da8xx_register_mmcsd0 (struct davinci_mmc_config *config);void __init da8xx_register_mcasp (int id,struct snd_platform_data *pdata);int da8xx_register_rtc (void ); +int da850_register_cpufreq (void );extern struct platform_device da8xx_serial_device;extern struct emac_platform_data da8xx_emac_pdata;
Signature · 1 line
1.6.4.3
PATCH 35/46 davinci: DA850/OMAP-L138: add voltage regulation support
From: Sekhar Nori <[email protected]>
This patch adds support for regulating the CVDD voltage for the DA850/OMAP-L138 platform.
The CVDD min and max values for each OPP have been obtained from section 5.2 "Recommended Operating Conditions" of SPRS586
--- arch/arm/mach-davinci/da850.c | 43 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 43 insertions(+), 0 deletions(-)
arch/arm/mach-davinci/da850.c +43 -0
@@ -16,6 +16,7 @@#include <linux/clk.h> #include <linux/platform_device.h> #include <linux/cpufreq.h> +#include <linux/regulator/consumer.h> #include <asm/mach/map.h>
@@ -844,6 +845,8 @@ struct da850_opp {unsigned int prediv;unsigned int mult;unsigned int postdiv; +unsigned int cvdd_min;/* in uV */ +unsigned int cvdd_max;/* in uV */ };static const struct da850_opp da850_opp_300 = {
@@ -851,6 +854,8 @@ static const struct da850_opp da850_opp_300 = { .prediv = 1, .mult = 25, .postdiv = 2, + .cvdd_min = 1140000, + .cvdd_max = 1320000, };static const struct da850_opp da850_opp_200 = {
@@ -858,6 +863,8 @@ static const struct da850_opp da850_opp_200 = { .prediv = 1, .mult = 25, .postdiv = 3, + .cvdd_min = 1050000, + .cvdd_max = 1160000, };static const struct da850_opp da850_opp_96 = {
@@ -865,6 +872,8 @@ static const struct da850_opp da850_opp_96 = { .prediv = 1, .mult = 20, .postdiv = 5, + .cvdd_min = 950000, + .cvdd_max = 1050000, };#define OPP (freq) \
@@ -973,6 +982,40 @@ static int da850_round_armrate(struct clk *clk, unsigned long rate) }#endif +#ifdef CONFIG_REGULATOR +static struct regulator *cvdd; + +static int da850_set_voltage (unsigned int index) +{ +struct da850_opp *opp; + +if (!cvdd) +return -ENODEV ; + + opp = (struct da850_opp *) da850_freq_table[index].index; + +return regulator_set_voltage (cvdd, opp->cvdd_min, opp->cvdd_max); +} + +static int __init da850_regulator_init (void ) +{ +int ret =0 ; + + cvdd =regulator_get (NULL ,"cvdd" ); +if (WARN (IS_ERR (cvdd),"Unable to obtain voltage regulator for CVDD;" +" voltage scaling unsupported\n" )) { + ret =PTR_ERR (cvdd); + goto out; + } + + cpufreq_info.set_voltage = da850_set_voltage; + +out: +return ret; +} +device_initcall (da850_regulator_init); +#endif +static struct davinci_soc_info davinci_soc_info_da850 = { .io_desc = da850_io_desc, .io_desc_num =ARRAY_SIZE (da850_io_desc),
Signature · 1 line
1.6.4.3
PATCH 36/46 davinci: DA850/OMAP-L138 EVM: register for CPUFreq support
From: Sekhar Nori <[email protected]>
--- arch/arm/mach-davinci/board-da850-evm.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
arch/arm/mach-davinci/board-da850-evm.c +5 -0
@@ -397,6 +397,11 @@ static __init void da850_evm_init(void) ret =da8xx_register_rtc ();if (ret)pr_warning ("da850_evm_init: rtc setup failed: %d\n" , ret); + + ret =da850_register_cpufreq (); +if (ret) +pr_warning ("da850_evm_init: cpufreq registration failed: %d\n" , + ret); }#ifdef CONFIG_SERIAL_8250_CONSOLE
Signature · 1 line
1.6.4.3
PATCH 37/46 davinci: DA850/OMAP-L138 EVM: add support for TPS65070 PMIC
From: Sekhar Nori <[email protected]>
This patch adds support for using the TPS65070 PMIC found on the DA850/OMAP-L138 EVM.
It defines the power rail consumer mapping and registers the the I2C based PMIC as a board device.
The power rail constraints are derived from the maxmimum and minimum recommended operating condition values of the respective consumers derived from section 5.2 of the OMAP-L138 datasheet.
--- arch/arm/mach-davinci/board-da850-evm.c | 153 +++++++++++++++++++++++++++++++ 1 files changed, 153 insertions(+), 0 deletions(-)
arch/arm/mach-davinci/board-da850-evm.c +153 -0
@@ -23,6 +23,7 @@#include <linux/mtd/nand.h> #include <linux/mtd/partitions.h> #include <linux/mtd/physmap.h> +#include <linux/regulator/machine.h> #include <asm/mach-types.h> #include <asm/mach/arch.h>
@@ -251,6 +252,153 @@ static void __init da850_evm_init_nor(void)iounmap (aemif_addr); } +/* TPS65070 voltage regulator support */ + +/* 3.3V */ +struct regulator_consumer_supply tps65070_dcdc1_consumers[] = { + { + .supply ="usb0_vdda33" , + }, + { + .supply ="usb1_vdda33" , + }, +}; + +/* 3.3V or 1.8V */ +struct regulator_consumer_supply tps65070_dcdc2_consumers[] = { + { + .supply ="dvdd3318_a" , + }, + { + .supply ="dvdd3318_b" , + }, + { + .supply ="dvdd3318_c" , + }, +}; + +/* 1.2V */ +struct regulator_consumer_supply tps65070_dcdc3_consumers[] = { + { + .supply ="cvdd" , + }, +}; + +/* 1.8V LDO */ +struct regulator_consumer_supply tps65070_ldo1_consumers[] = { + { + .supply ="sata_vddr" , + }, + { + .supply ="usb0_vdda18" , + }, + { + .supply ="usb1_vdda18" , + }, + { + .supply ="ddr_dvdd18" , + }, +}; + +/* 1.2V LDO */ +struct regulator_consumer_supply tps65070_ldo2_consumers[] = { + { + .supply ="sata_vdd" , + }, + { + .supply ="pll0_vdda" , + }, + { + .supply ="pll1_vdda" , + }, + { + .supply ="usbs_cvdd" , + }, + { + .supply ="vddarnwa1" , + }, +}; + +struct regulator_init_data tps65070_regulator_data[] = { +/* dcdc1 */ + { + .constraints = { + .min_uV =3150000 , + .max_uV =3450000 , + .valid_ops_mask = (REGULATOR_CHANGE_VOLTAGE | +REGULATOR_CHANGE_STATUS ), + .boot_on =1 , + }, + .num_consumer_supplies =ARRAY_SIZE (tps65070_dcdc1_consumers), + .consumer_supplies = tps65070_dcdc1_consumers, + }, + +/* dcdc2 */ + { + .constraints = { + .min_uV =1710000 , + .max_uV =3450000 , + .valid_ops_mask = (REGULATOR_CHANGE_VOLTAGE | +REGULATOR_CHANGE_STATUS ), + .boot_on =1 , + }, + .num_consumer_supplies =ARRAY_SIZE (tps65070_dcdc2_consumers), + .consumer_supplies = tps65070_dcdc2_consumers, + }, + +/* dcdc3 */ + { + .constraints = { + .min_uV =950000 , + .max_uV =1320000 , + .valid_ops_mask = (REGULATOR_CHANGE_VOLTAGE | +REGULATOR_CHANGE_STATUS ), + .boot_on =1 , + }, + .num_consumer_supplies =ARRAY_SIZE (tps65070_dcdc3_consumers), + .consumer_supplies = tps65070_dcdc3_consumers, + }, + +/* ldo1 */ + { + .constraints = { + .min_uV =1710000 , + .max_uV =1890000 , + .valid_ops_mask = (REGULATOR_CHANGE_VOLTAGE | +REGULATOR_CHANGE_STATUS ), + .boot_on =1 , + }, + .num_consumer_supplies =ARRAY_SIZE (tps65070_ldo1_consumers), + .consumer_supplies = tps65070_ldo1_consumers, + }, + +/* ldo2 */ + { + .constraints = { + .min_uV =1140000 , + .max_uV =1320000 , + .valid_ops_mask = (REGULATOR_CHANGE_VOLTAGE | +REGULATOR_CHANGE_STATUS ), + .boot_on =1 , + }, + .num_consumer_supplies =ARRAY_SIZE (tps65070_ldo2_consumers), + .consumer_supplies = tps65070_ldo2_consumers, + }, +}; + +static struct i2c_board_info __initdata da850evm_tps65070_info[] = { + { +I2C_BOARD_INFO ("tps6507x" ,0x48 ), + .platform_data = &tps65070_regulator_data[0 ], + }, +}; + +static int __init pmic_tps65070_init (void ) +{ +return i2c_register_board_info (1 , da850evm_tps65070_info, +ARRAY_SIZE (da850evm_tps65070_info)); +} +#if defined(CONFIG_MTD_PHYSMAP ) || \ defined(CONFIG_MTD_PHYSMAP_MODULE )#define HAS_NOR 1
@@ -275,6 +423,11 @@ static __init void da850_evm_init(void)struct davinci_soc_info *soc_info = &davinci_soc_info;int ret; + ret =pmic_tps65070_init (); +if (ret) +pr_warning ("da850_evm_init: TPS65070 PMIC init failed: %d\n" , + ret); + ret =da8xx_pinmux_setup (da850_nand_pins);if (ret) pr_warning("da850_evm_init: nand mux setup failed: %d\n",
Signature · 1 line
1.6.4.3
PATCH 38/46 davinci: fix compilation error when using mach/system.h
From: Sekhar Nori <[email protected]>
include/mach/system.h uses the cpu_do_idle() function which is defined in asm/proc-fns.h. Without this patch including system.h leads to error of the sort:
error: implicit declaration of function 'cpu_do_idle'
--- arch/arm/mach-davinci/include/mach/system.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mach-davinci/include/mach/system.h +1 -0
@@ -13,6 +13,7 @@#include <linux/io.h> #include <mach/hardware.h> +#include <asm/proc-fns.h> extern void davinci_watchdog_reset (void );
Signature · 1 line
1.6.4.3
PATCH 39/46 davinci: DA8xx: rename 'psc_ctlr' field into 'gpsc'
From: Sergei Shtylyov <[email protected]>
Replace badly chosen 'psc_ctlr' name of the 'struct clk' field (PSC already means "Power and Sleep Controller", so the '_ctlr' postfix makes the name tautological) with technically correct 'gpsc' (Global PSC -- which contains all the module registers).
--- arch/arm/mach-davinci/clock.c | 10 +++----- arch/arm/mach-davinci/clock.h | 2 +- arch/arm/mach-davinci/da830.c | 42 ++++++++++++++++++++-------------------- arch/arm/mach-davinci/da850.c | 20 +++++++++--------- 4 files changed, 36 insertions(+), 38 deletions(-)
arch/arm/mach-davinci/clock.c +4 -6
@@ -43,8 +43,7 @@ static void __clk_enable(struct clk *clk)if (clk->parent)__clk_enable (clk->parent);if (clk->usecount++ ==0 && (clk->flags &CLK_PSC )) -davinci_psc_config (psc_domain (clk), clk->psc_ctlr, - clk->lpsc,1 ); +davinci_psc_config (psc_domain (clk), clk->gpsc, clk->lpsc,1 ); }static void __clk_disable (struct clk *clk)
@@ -52,8 +51,7 @@ static void __clk_disable(struct clk *clk)if (WARN_ON (clk->usecount ==0 ))return ;if (--clk->usecount ==0 && !(clk->flags &CLK_PLL )) -davinci_psc_config (psc_domain (clk), clk->psc_ctlr, - clk->lpsc,0 ); +davinci_psc_config (psc_domain (clk), clk->gpsc, clk->lpsc,0 );if (clk->parent)__clk_disable (clk->parent); }
@@ -226,11 +224,11 @@ static int __init clk_disable_unused(void)continue ;/* ignore if in Disabled or SwRstDisable states */ -if (!davinci_psc_is_clk_active (ck->psc_ctlr, ck->lpsc)) +if (!davinci_psc_is_clk_active (ck->gpsc, ck->lpsc))continue ;pr_info ("Clocks: disable unused %s\n" , ck->name); -davinci_psc_config (psc_domain (ck), ck->psc_ctlr, ck->lpsc,0 ); +davinci_psc_config (psc_domain (ck), ck->gpsc, ck->lpsc,0 ); }spin_unlock_irq (&clockfw_lock);
arch/arm/mach-davinci/clock.h +1 -1
@@ -70,7 +70,7 @@ struct clk {unsigned long rate;u8 usecount;u8 lpsc; -u8 psc_ctlr; +u8 gpsc;u32 flags;struct clk *parent;struct list_head children;/* list of children */
arch/arm/mach-davinci/da830.c +21 -21
169 lines not on this page · raw message
arch/arm/mach-davinci/da850.c +10 -10
@@ -224,16 +224,16 @@ static struct clk tpcc1_clk = { .name = "tpcc1", .parent = &pll0_sysclk2, .lpsc = DA850_LPSC1_TPCC1, + .gpsc = 1, .flags = CLK_PSC | ALWAYS_ENABLED, - .psc_ctlr = 1, };static struct clk tptc2_clk = { .name ="tptc2" , .parent = &pll0_sysclk2, .lpsc =DA850_LPSC1_TPTC2 , + .gpsc =1 , .flags =ALWAYS_ENABLED , - .psc_ctlr =1 , };static struct clk uart0_clk = {
@@ -246,16 +246,16 @@ static struct clk uart1_clk = { .name = "uart1", .parent = &pll0_sysclk2, .lpsc = DA8XX_LPSC1_UART1, + .gpsc = 1, .flags = DA850_CLK_ASYNC3, - .psc_ctlr = 1, };static struct clk uart2_clk = { .name ="uart2" , .parent = &pll0_sysclk2, .lpsc =DA8XX_LPSC1_UART2 , + .gpsc =1 , .flags =DA850_CLK_ASYNC3 , - .psc_ctlr =1 , };static struct clk aintc_clk = {
@@ -269,22 +269,22 @@ static struct clk gpio_clk = { .name = "gpio", .parent = &pll0_sysclk4, .lpsc = DA8XX_LPSC1_GPIO, - .psc_ctlr = 1, + .gpsc = 1, };static struct clk i2c1_clk = { .name ="i2c1" , .parent = &pll0_sysclk4, .lpsc =DA8XX_LPSC1_I2C , - .psc_ctlr =1 , + .gpsc =1 , };static struct clk emif3_clk = { .name ="emif3" , .parent = &pll0_sysclk5, .lpsc =DA8XX_LPSC1_EMIF3C , + .gpsc =1 , .flags =ALWAYS_ENABLED , - .psc_ctlr =1 , };static struct clk arm_clk = {
@@ -305,21 +305,21 @@ static struct clk emac_clk = { .name = "emac", .parent = &pll0_sysclk4, .lpsc = DA8XX_LPSC1_CPGMAC, - .psc_ctlr = 1, + .gpsc = 1, };static struct clk mcasp_clk = { .name ="mcasp" , .parent = &pll0_sysclk2, .lpsc = DA8XX_LPSC1_McASP0, - .psc_ctlr =1 , + .gpsc =1 , };static struct clk lcdc_clk = { .name ="lcdc" , .parent = &pll0_sysclk2, .lpsc =DA8XX_LPSC1_LCDC , - .psc_ctlr =1 , + .gpsc =1 , };static struct clk mmcsd_clk = {
Signature · 1 line
1.6.4.3
PATCH 40/46 davinci: DA850/OMAP-L138 EVM expander setup and UI card detection
From: Chaithrika U S <[email protected]>
DA850/OMAP-L138 EVM can be connected to an UI card which has various peripherals on it.The UI card has TCA6416 expander which can be probed to check whether the UI card is connected or not. If the UI card is connected, setup NOR and NAND devices. This is done via the expander setup callback.
--- arch/arm/mach-davinci/board-da850-evm.c | 127 ++++++++++++++++++++++++------- 1 files changed, 99 insertions(+), 28 deletions(-)
arch/arm/mach-davinci/board-da850-evm.c +99 -28
@@ -17,6 +17,7 @@#include <linux/console.h> #include <linux/i2c.h> #include <linux/i2c/at24.h> +#include <linux/i2c/pca953x.h> #include <linux/gpio.h> #include <linux/platform_device.h> #include <linux/mtd/mtd.h>
@@ -145,10 +146,85 @@ static struct platform_device da850_evm_nandflash_device = { .resource = da850_evm_nandflash_resource, }; +static u32 ui_card_detected; +static void da850_evm_setup_nor_nand (void ); + +static int da850_evm_ui_expander_setup (struct i2c_client *client,unsigned gpio, +unsigned ngpio,void *c) +{ +int sel_a, sel_b, sel_c, ret; + + sel_a = gpio +7 ; + sel_b = gpio +6 ; + sel_c = gpio +5 ; + + ret =gpio_request (sel_a,"sel_a" ); +if (ret) { +pr_warning ("Cannot open UI expander pin %d\n" , sel_a); + goto exp_setup_sela_fail; + } + + ret =gpio_request (sel_b,"sel_b" ); +if (ret) { +pr_warning ("Cannot open UI expander pin %d\n" , sel_b); + goto exp_setup_selb_fail; + } + + ret =gpio_request (sel_c,"sel_c" ); +if (ret) { +pr_warning ("Cannot open UI expander pin %d\n" , sel_c); + goto exp_setup_selc_fail; + } + +/* deselect all functionalities */ +gpio_direction_output (sel_a,1 ); +gpio_direction_output (sel_b,1 ); +gpio_direction_output (sel_c,1 ); + + ui_card_detected =1 ; +pr_info ("DA850/OMAP-L138 EVM UI card detected\n" ); + +da850_evm_setup_nor_nand (); + +return 0 ; + +exp_setup_selc_fail: +gpio_free (sel_b); +exp_setup_selb_fail: +gpio_free (sel_a); +exp_setup_sela_fail: +return ret; +} + +static int da850_evm_ui_expander_teardown (struct i2c_client *client, +unsigned gpio,unsigned ngpio,void *c) +{ +/* deselect all functionalities */ +gpio_set_value (gpio +5 ,1 ); +gpio_set_value (gpio +6 ,1 ); +gpio_set_value (gpio +7 ,1 ); + +gpio_free (gpio +5 ); +gpio_free (gpio +6 ); +gpio_free (gpio +7 ); + +return 0 ; +} + +static struct pca953x_platform_data da850_evm_ui_expander_info = { + .gpio_base =DAVINCI_N_GPIO , + .setup = da850_evm_ui_expander_setup, + .teardown = da850_evm_ui_expander_teardown, +}; +static struct i2c_board_info __initdata da850_evm_i2c_devices[] = { {I2C_BOARD_INFO ("tlv320aic3x" ,0x18 ), - } + }, + { +I2C_BOARD_INFO ("tca6416" ,0x20 ), + .platform_data = &da850_evm_ui_expander_info, + }, };static struct davinci_i2c_platform_data da850_evm_i2c_0_pdata = {
@@ -399,13 +475,6 @@ static int __init pmic_tps65070_init(void) ARRAY_SIZE(da850evm_tps65070_info)); } -#if defined(CONFIG_MTD_PHYSMAP ) || \ - defined(CONFIG_MTD_PHYSMAP_MODULE ) -#define HAS_NOR 1 -#else -#define HAS_NOR 0 -#endif -#if defined(CONFIG_MMC_DAVINCI ) || \ defined(CONFIG_MMC_DAVINCI_MODULE )#define HAS_MMC 1
@@ -413,6 +482,28 @@ static int __init pmic_tps65070_init(void)#define HAS_MMC 0#endif +static void da850_evm_setup_nor_nand (void ) +{ +int ret =0 ; + +if (ui_card_detected & !HAS_MMC ) { + ret =da8xx_pinmux_setup (da850_nand_pins); +if (ret) +pr_warning ("da850_evm_init: nand mux setup failed: " +"%d\n" , ret); + + ret =da8xx_pinmux_setup (da850_nor_pins); +if (ret) +pr_warning ("da850_evm_init: nor mux setup failed: %d\n" , + ret); + +da850_evm_init_nor (); + +platform_add_devices (da850_evm_devices, +ARRAY_SIZE (da850_evm_devices)); + } +} +static const short da850_evm_lcdc_pins[] = {DA850_GPIO2_8 ,DA850_GPIO2_15 ,-1
@@ -428,21 +519,6 @@ static __init void da850_evm_init(void)pr_warning ("da850_evm_init: TPS65070 PMIC init failed: %d\n" , ret); - ret =da8xx_pinmux_setup (da850_nand_pins); -if (ret) -pr_warning ("da850_evm_init: nand mux setup failed: %d\n" , - ret); - - ret =da8xx_pinmux_setup (da850_nor_pins); -if (ret) -pr_warning ("da850_evm_init: nor mux setup failed: %d\n" , - ret); - -da850_evm_init_nor (); - -platform_add_devices (da850_evm_devices, -ARRAY_SIZE (da850_evm_devices)); - ret =da8xx_register_edma ();if (ret) pr_warning("da850_evm_init: edma registration failed: %d\n",
@@ -478,11 +554,6 @@ static __init void da850_evm_init(void) ret);if (HAS_MMC ) { -if (HAS_NOR ) -pr_warning ("WARNING: both NOR Flash and MMC/SD are " -"enabled, but they share AEMIF pins.\n" -"\tDisable one of them.\n" ); - ret =da8xx_pinmux_setup (da850_mmcsd0_pins);if (ret) pr_warning("da850_evm_init: mmcsd0 mux setup failed:"
Signature · 1 line
1.6.4.3
PATCH 41/46 davinci: RMII support for DA850/OMAP-L138 EVM
From: Chaithrika U S <[email protected]>
DA850/OMAP-L138 EVM has a RMII Ethernet PHY on the UI daughter card. The PHY is enabled by proper programming of the IO Expander (TCA6416) ports. Also for RMII PHY to work, the MDIO clock of MII PHY has to be disabled since both the PHYs have the same address. This is done via the GPIO2[6] pin. This patch adds support for RMII PHY.
This patch also adds a menuconfig option to select one or no peripheral connected to expander. Currently, sub-options in this menu are RMII and no peripheral.This menuconfig option is similar to the one present for UI card on DA830/OMAP-L137 EVM.
--- arch/arm/mach-davinci/Kconfig | 31 +++++++++++++ arch/arm/mach-davinci/board-da850-evm.c | 68 ++++++++++++++++++++++++++- arch/arm/mach-davinci/da850.c | 17 +++++++ arch/arm/mach-davinci/include/mach/da8xx.h | 1 + arch/arm/mach-davinci/include/mach/mux.h | 9 ++++ 5 files changed, 123 insertions(+), 3 deletions(-)
arch/arm/mach-davinci/Kconfig +31 -0
@@ -130,6 +130,37 @@ config MACH_DAVINCI_DA850_EVM help Say Y here to select the TI DA850/OMAP-L138 Evaluation Module. +config DA850_UI_EXP + bool "DA850/OMAP-L138 UI (User Interface) board expander configuration" + depends on MACH_DAVINCI_DA850_EVM + select GPIO_PCA953X + help + Say Y here if you have the DA850/OMAP-L138 UI + (User Interface) board installed and you want to + enable the peripherals located on User Interface + board contorlled by TCA6416 expander. + +choice + prompt "Select peripherals connected to expander on UI board" + depends on DA850_UI_EXP + +config DA850_UI_NONE + bool "No peripheral is enabled" + help + Say Y if you do not want to enable any of the peripherals connected + to TCA6416 expander on DA850/OMAP-L138 EVM UI card + +config DA850_UI_RMII + bool "RMII Ethernet PHY" + help + Say Y if you want to use the RMII PHY on the DA850/OMAP-L138 EVM. + This PHY is found on the UI daughter card that is supplied with + the EVM. + NOTE: Please take care while choosing this option, MII PHY will + not be functional if RMII mode is selected. + +endchoice + config DAVINCI_MUX bool "DAVINCI multiplexing support" depends on ARCH_DAVINCI
arch/arm/mach-davinci/board-da850-evm.c +65 -3
101 lines not on this page · raw message
arch/arm/mach-davinci/da850.c +17 -0
@@ -422,6 +422,14 @@ static const struct mux_config da850_pins[] = { MUX_CFG(DA850, MII_RXD_0, 3, 28, 15, 8, false) MUX_CFG(DA850, MDIO_CLK, 4, 0, 15, 8, false) MUX_CFG(DA850, MDIO_D, 4, 4, 15, 8, false) + MUX_CFG(DA850, RMII_TXD_0, 14, 12, 15, 8, false) + MUX_CFG(DA850, RMII_TXD_1, 14, 8, 15, 8, false) + MUX_CFG(DA850, RMII_TXEN, 14, 16, 15, 8, false) + MUX_CFG(DA850, RMII_CRS_DV, 15, 4, 15, 8, false) + MUX_CFG(DA850, RMII_RXD_0, 14, 24, 15, 8, false) + MUX_CFG(DA850, RMII_RXD_1, 14, 20, 15, 8, false) + MUX_CFG(DA850, RMII_RXER, 14, 28, 15, 8, false) +MUX_CFG (DA850 ,RMII_MHZ_50_CLK ,15 ,0 ,15 ,0 , false) /* McASP function */ MUX_CFG(DA850, ACLKR, 0, 0, 15, 1, false)MUX_CFG (DA850 ,ACLKX ,0 ,4 ,15 ,1 , false)
@@ -524,6 +532,7 @@ static const struct mux_config da850_pins[] = { MUX_CFG(DA850, EMA_WAIT_1, 6, 24, 15, 1, false)MUX_CFG (DA850 ,NEMA_CS_2 ,7 ,0 ,15 ,1 , false) /* GPIO function */ + MUX_CFG(DA850, GPIO2_6, 6, 4, 15, 8, false) MUX_CFG(DA850, GPIO2_8, 5, 28, 15, 8, false) MUX_CFG(DA850, GPIO2_15, 5, 0, 15, 8, false)MUX_CFG (DA850 ,GPIO4_0 ,10 ,28 ,15 ,8 , false)
@@ -565,6 +574,14 @@ const short da850_cpgmac_pins[] __initdata = {-1 }; +const short da850_rmii_pins[]__initdata = { +DA850_RMII_TXD_0 ,DA850_RMII_TXD_1 ,DA850_RMII_TXEN , +DA850_RMII_CRS_DV ,DA850_RMII_RXD_0 ,DA850_RMII_RXD_1 , +DA850_RMII_RXER ,DA850_RMII_MHZ_50_CLK ,DA850_MDIO_CLK , +DA850_MDIO_D , +-1 +}; +const short da850_mcasp_pins[]__initdata = {DA850_AHCLKX ,DA850_ACLKX ,DA850_AFSX ,DA850_AHCLKR ,DA850_ACLKR ,DA850_AFSR ,DA850_AMUTE ,
arch/arm/mach-davinci/include/mach/da8xx.h +1 -0
@@ -124,6 +124,7 @@ extern const short da850_uart2_pins[];extern const short da850_i2c0_pins[];extern const short da850_i2c1_pins[];extern const short da850_cpgmac_pins[]; +extern const short da850_rmii_pins[];extern const short da850_mcasp_pins[];extern const short da850_lcdcntl_pins[];extern const short da850_mmcsd0_pins[];
arch/arm/mach-davinci/include/mach/mux.h +9 -0
@@ -774,6 +774,14 @@ enum davinci_da850_index {DA850_MII_RXD_0 ,DA850_MDIO_CLK ,DA850_MDIO_D , +DA850_RMII_TXD_0 , +DA850_RMII_TXD_1 , +DA850_RMII_TXEN , +DA850_RMII_CRS_DV , +DA850_RMII_RXD_0 , +DA850_RMII_RXD_1 , +DA850_RMII_RXER , +DA850_RMII_MHZ_50_CLK ,/* McASP function */ DA850_ACLKR,
@@ -881,6 +889,7 @@ enum davinci_da850_index {DA850_NEMA_CS_2 ,/* GPIO function */ +DA850_GPIO2_6 ,DA850_GPIO2_8 ,DA850_GPIO2_15 , DA850_GPIO4_0,
Signature · 1 line
1.6.4.3
PATCH 42/46 davinci: make it easier to identify SoC init failures
From: Sekhar Nori <[email protected]>
This patch makes it easier to identify SoC init failures by panicing when SoC init fails. Without successful SoC init, the kernel eventually fails when attempt is made to access the clocks.
Also, an error is printed when JTAG ID match fails to make it easier to identify failures due to SoC rev changes.
--- arch/arm/mach-davinci/common.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
arch/arm/mach-davinci/common.c +3 -1
@@ -86,6 +86,8 @@ void __init davinci_common_init(struct davinci_soc_info *soc_info) dip =davinci_get_id (davinci_soc_info.jtag_id);if (!dip) { ret = -EINVAL ; +pr_err ("Unknown DaVinci JTAG ID 0x%x\n" , + davinci_soc_info.jtag_id); goto err; }
@@ -104,5 +106,5 @@ void __init davinci_common_init(struct davinci_soc_info *soc_info)return ; err: -pr_err ("davinci_common_init: SoC Initialization failed\n" ); +panic ("davinci_common_init: SoC Initialization failed\n" ); }
Signature · 1 line
1.6.4.3
PATCH 43/46 DaVinci: remove unneeded #include's
From: Sergei Shtylyov <[email protected]>
There have accumulated quite a lot of them after the code reorganizations...
In several cases I had to replace #include <linux/dma-mapping.h> which wasn't needed directly but happened to #include <linux/err.h> which was needed.
--- arch/arm/mach-davinci/board-da830-evm.c | 4 ---- arch/arm/mach-davinci/board-da850-evm.c | 3 --- arch/arm/mach-davinci/board-dm355-evm.c | 9 +-------- arch/arm/mach-davinci/board-dm355-leopard.c | 9 +-------- arch/arm/mach-davinci/board-dm365-evm.c | 10 +++------- arch/arm/mach-davinci/board-dm644x-evm.c | 12 ------------ arch/arm/mach-davinci/board-dm646x-evm.c | 15 --------------- arch/arm/mach-davinci/board-sffsdr.c | 12 ------------ arch/arm/mach-davinci/clock.c | 1 - arch/arm/mach-davinci/cp_intc.c | 3 --- arch/arm/mach-davinci/da830.c | 5 ----- arch/arm/mach-davinci/da850.c | 5 +---- arch/arm/mach-davinci/devices-da8xx.c | 2 -- arch/arm/mach-davinci/devices.c | 4 ---- arch/arm/mach-davinci/dm355.c | 2 -- arch/arm/mach-davinci/dm365.c | 2 -- arch/arm/mach-davinci/dm644x.c | 2 -- arch/arm/mach-davinci/dm646x.c | 2 -- arch/arm/mach-davinci/dma.c | 9 --------- arch/arm/mach-davinci/gpio.c | 9 --------- arch/arm/mach-davinci/include/mach/dm644x.h | 1 - arch/arm/mach-davinci/include/mach/system.h | 2 -- arch/arm/mach-davinci/mux.c | 1 - arch/arm/mach-davinci/psc.c | 3 --- arch/arm/mach-davinci/serial.c | 6 ------ arch/arm/mach-davinci/sram.c | 3 --- arch/arm/mach-davinci/time.c | 6 ------ arch/arm/mach-davinci/usb.c | 4 ---- 28 files changed, 6 insertions(+), 140 deletions(-)
arch/arm/mach-davinci/board-da830-evm.c +0 -4
@@ -10,7 +10,6 @@* or implied. */ #include <linux/kernel.h> -#include <linux/module.h> #include <linux/init.h> #include <linux/console.h> #include <linux/interrupt.h>
@@ -22,12 +21,9 @@#include <asm/mach-types.h> #include <asm/mach/arch.h> -#include <mach/common.h> -#include <mach/irqs.h> #include <mach/cp_intc.h> #include <mach/mux.h> #include <mach/da8xx.h> -#include <mach/asp.h> #include <mach/usb.h> #define DA830_EVM_PHY_MASK 0x0
arch/arm/mach-davinci/board-da850-evm.c +0 -3
@@ -12,7 +12,6 @@* or implied. */ #include <linux/kernel.h> -#include <linux/module.h> #include <linux/init.h> #include <linux/console.h> #include <linux/i2c.h>
@@ -29,8 +28,6 @@#include <asm/mach-types.h> #include <asm/mach/arch.h> -#include <mach/common.h> -#include <mach/irqs.h> #include <mach/cp_intc.h> #include <mach/da8xx.h> #include <mach/nand.h>
arch/arm/mach-davinci/board-dm355-evm.c +1 -8
@@ -9,15 +9,13 @@* or implied. */ #include <linux/kernel.h> -#include <linux/module.h> #include <linux/init.h> -#include <linux/dma-mapping.h> +#include <linux/err.h> #include <linux/platform_device.h> #include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h> #include <linux/mtd/nand.h> #include <linux/i2c.h> -#include <linux/io.h> #include <linux/gpio.h> #include <linux/clk.h> #include <linux/videodev2.h>
@@ -25,15 +23,10 @@#include <linux/spi/spi.h> #include <linux/spi/eeprom.h> -#include <asm/setup.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> -#include <asm/mach/map.h> -#include <asm/mach/flash.h> -#include <mach/hardware.h> #include <mach/dm355.h> -#include <mach/psc.h> #include <mach/common.h> #include <mach/i2c.h> #include <mach/serial.h>
arch/arm/mach-davinci/board-dm355-leopard.c +1 -8
@@ -8,29 +8,22 @@* warranty of any kind, whether express or implied. */ #include <linux/kernel.h> -#include <linux/module.h> #include <linux/init.h> -#include <linux/dma-mapping.h> +#include <linux/err.h> #include <linux/platform_device.h> #include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h> #include <linux/mtd/nand.h> #include <linux/i2c.h> -#include <linux/io.h> #include <linux/gpio.h> #include <linux/clk.h> #include <linux/spi/spi.h> #include <linux/spi/eeprom.h> -#include <asm/setup.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> -#include <asm/mach/map.h> -#include <asm/mach/flash.h> -#include <mach/hardware.h> #include <mach/dm355.h> -#include <mach/psc.h> #include <mach/common.h> #include <mach/i2c.h> #include <mach/serial.h>
arch/arm/mach-davinci/board-dm365-evm.c +3 -7
@@ -13,9 +13,8 @@* GNU General Public License for more details. */ #include <linux/kernel.h> -#include <linux/module.h> #include <linux/init.h> -#include <linux/dma-mapping.h> +#include <linux/err.h> #include <linux/i2c.h> #include <linux/io.h> #include <linux/clk.h>
@@ -24,21 +23,18 @@#include <linux/mtd/mtd.h> #include <linux/mtd/partitions.h> #include <linux/mtd/nand.h> -#include <asm/setup.h> +#include <asm/mach-types.h> #include <asm/mach/arch.h> -#include <asm/mach/map.h> +#include <mach/mux.h> -#include <mach/hardware.h> #include <mach/dm365.h> -#include <mach/psc.h> #include <mach/common.h> #include <mach/i2c.h> #include <mach/serial.h> #include <mach/mmc.h> #include <mach/nand.h> -static inline int have_imager (void ) {/* REVISIT when it's supported, trigger via Kconfig */
arch/arm/mach-davinci/board-dm644x-evm.c +0 -12
@@ -9,45 +9,33 @@* or implied. */ #include <linux/kernel.h> -#include <linux/module.h> #include <linux/init.h> #include <linux/dma-mapping.h> #include <linux/platform_device.h> #include <linux/gpio.h> -#include <linux/leds.h> -#include <linux/memory.h> -#include <linux/i2c.h> #include <linux/i2c/pcf857x.h> #include <linux/i2c/at24.h> -#include <linux/etherdevice.h> #include <linux/mtd/mtd.h> #include <linux/mtd/nand.h> #include <linux/mtd/partitions.h> #include <linux/mtd/physmap.h> -#include <linux/io.h> #include <linux/phy.h> #include <linux/clk.h> #include <linux/videodev2.h> #include <media/tvp514x.h> -#include <asm/setup.h> #include <asm/mach-types.h> -#include <asm/mach/arch.h> -#include <asm/mach/map.h> -#include <asm/mach/flash.h> #include <mach/dm644x.h> #include <mach/common.h> #include <mach/i2c.h> #include <mach/serial.h> #include <mach/mux.h> -#include <mach/psc.h> #include <mach/nand.h> #include <mach/mmc.h> -#include <mach/emac.h> #define DM644X_EVM_PHY_MASK (0x2)#define DM644X_EVM_MDIO_FREQUENCY (2200000)/* PHY bus frequency */
arch/arm/mach-davinci/board-dm646x-evm.c +0 -15
@@ -17,38 +17,23 @@**************************************************************************/ #include <linux/kernel.h> -#include <linux/module.h> #include <linux/init.h> -#include <linux/fs.h> -#include <linux/major.h> -#include <linux/root_dev.h> -#include <linux/dma-mapping.h> -#include <linux/serial.h> -#include <linux/serial_8250.h> #include <linux/leds.h> #include <linux/gpio.h> -#include <linux/io.h> #include <linux/platform_device.h> #include <linux/i2c.h> #include <linux/i2c/at24.h> #include <linux/i2c/pcf857x.h> -#include <linux/etherdevice.h> #include <media/tvp514x.h> -#include <asm/setup.h> #include <asm/mach-types.h> #include <asm/mach/arch.h> -#include <asm/mach/map.h> -#include <asm/mach/flash.h> #include <mach/dm646x.h> #include <mach/common.h> -#include <mach/psc.h> #include <mach/serial.h> #include <mach/i2c.h> -#include <mach/mmc.h> -#include <mach/emac.h> #if defined(CONFIG_BLK_DEV_PALMCHIP_BK3710 ) || \ defined(CONFIG_BLK_DEV_PALMCHIP_BK3710_MODULE )
arch/arm/mach-davinci/board-sffsdr.c +0 -12
@@ -23,34 +23,22 @@* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <linux/kernel.h> -#include <linux/module.h> #include <linux/init.h> -#include <linux/dma-mapping.h> #include <linux/platform_device.h> -#include <linux/gpio.h> -#include <linux/i2c.h> #include <linux/i2c/at24.h> -#include <linux/etherdevice.h> #include <linux/mtd/mtd.h> #include <linux/mtd/nand.h> #include <linux/mtd/partitions.h> -#include <linux/mtd/physmap.h> -#include <linux/io.h> -#include <asm/setup.h> #include <asm/mach-types.h> -#include <asm/mach/arch.h> -#include <asm/mach/map.h> #include <asm/mach/flash.h> #include <mach/dm644x.h> #include <mach/common.h> #include <mach/i2c.h> #include <mach/serial.h> -#include <mach/psc.h> #include <mach/mux.h> #define SFFSDR_PHY_MASK (0x2)
arch/arm/mach-davinci/clock.c +0 -1
@@ -17,7 +17,6 @@#include <linux/clk.h> #include <linux/err.h> #include <linux/mutex.h> -#include <linux/platform_device.h> #include <linux/io.h> #include <linux/delay.h>
arch/arm/mach-davinci/cp_intc.c +0 -3
@@ -10,9 +10,6 @@*/ #include <linux/init.h> -#include <linux/sched.h> -#include <linux/interrupt.h> -#include <linux/kernel.h> #include <linux/irq.h> #include <linux/io.h>
arch/arm/mach-davinci/da830.c +0 -5
@@ -8,22 +8,17 @@* is licensed "as is" without any warranty of any kind, whether express * or implied. */ -#include <linux/kernel.h> #include <linux/init.h> #include <linux/clk.h> -#include <linux/platform_device.h> #include <asm/mach/map.h> -#include <mach/clock.h> #include <mach/psc.h> -#include <mach/mux.h> #include <mach/irqs.h> #include <mach/cputype.h> #include <mach/common.h> #include <mach/time.h> #include <mach/da8xx.h> -#include <mach/asp.h> #include "clock.h" #include "mux.h"
arch/arm/mach-davinci/da850.c +1 -4
@@ -11,24 +11,21 @@* is licensed "as is" without any warranty of any kind, whether express * or implied. */ -#include <linux/kernel.h> #include <linux/init.h> #include <linux/clk.h> -#include <linux/platform_device.h> #include <linux/cpufreq.h> #include <linux/regulator/consumer.h> #include <asm/mach/map.h> -#include <mach/clock.h> #include <mach/psc.h> -#include <mach/mux.h> #include <mach/irqs.h> #include <mach/cputype.h> #include <mach/common.h> #include <mach/time.h> #include <mach/da8xx.h> #include <mach/cpufreq.h> +#include <linux/platform_device.h> #include "clock.h" #include "mux.h"
arch/arm/mach-davinci/devices-da8xx.c +0 -2
@@ -10,8 +10,6 @@* the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */ -#include <linux/module.h> -#include <linux/kernel.h> #include <linux/init.h> #include <linux/platform_device.h> #include <linux/dma-mapping.h>
arch/arm/mach-davinci/devices.c +0 -4
@@ -9,15 +9,11 @@* (at your option) any later version. */ -#include <linux/module.h> -#include <linux/kernel.h> #include <linux/init.h> #include <linux/platform_device.h> #include <linux/dma-mapping.h> #include <linux/io.h> -#include <asm/mach/map.h> -#include <mach/hardware.h> #include <mach/i2c.h> #include <mach/irqs.h>
arch/arm/mach-davinci/dm355.c +0 -2
@@ -8,7 +8,6 @@* is licensed "as is" without any warranty of any kind, whether express * or implied. */ -#include <linux/kernel.h> #include <linux/init.h> #include <linux/clk.h> #include <linux/serial_8250.h>
@@ -21,7 +20,6 @@#include <asm/mach/map.h> #include <mach/dm355.h> -#include <mach/clock.h> #include <mach/cputype.h> #include <mach/edma.h> #include <mach/psc.h>
arch/arm/mach-davinci/dm365.c +0 -2
@@ -12,7 +12,6 @@* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ -#include <linux/kernel.h> #include <linux/init.h> #include <linux/clk.h> #include <linux/serial_8250.h>
@@ -23,7 +22,6 @@#include <asm/mach/map.h> #include <mach/dm365.h> -#include <mach/clock.h> #include <mach/cputype.h> #include <mach/edma.h> #include <mach/psc.h>
arch/arm/mach-davinci/dm644x.c +0 -2
@@ -8,7 +8,6 @@* is licensed "as is" without any warranty of any kind, whether express * or implied. */ -#include <linux/kernel.h> #include <linux/init.h> #include <linux/clk.h> #include <linux/serial_8250.h>
@@ -18,7 +17,6 @@#include <asm/mach/map.h> #include <mach/dm644x.h> -#include <mach/clock.h> #include <mach/cputype.h> #include <mach/edma.h> #include <mach/irqs.h>
arch/arm/mach-davinci/dm646x.c +0 -2
@@ -8,7 +8,6 @@* is licensed "as is" without any warranty of any kind, whether express * or implied. */ -#include <linux/kernel.h> #include <linux/init.h> #include <linux/clk.h> #include <linux/serial_8250.h>
@@ -18,7 +17,6 @@#include <asm/mach/map.h> #include <mach/dm646x.h> -#include <mach/clock.h> #include <mach/cputype.h> #include <mach/edma.h> #include <mach/irqs.h>
arch/arm/mach-davinci/dma.c +0 -9
@@ -18,22 +18,13 @@* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <linux/kernel.h> -#include <linux/sched.h> #include <linux/init.h> #include <linux/module.h> #include <linux/interrupt.h> #include <linux/platform_device.h> -#include <linux/spinlock.h> -#include <linux/compiler.h> #include <linux/io.h> -#include <mach/cputype.h> -#include <mach/memory.h> -#include <mach/hardware.h> -#include <mach/irqs.h> #include <mach/edma.h> -#include <mach/mux.h> -/* Offsets matching "struct edmacc_param" */ #define PARM_OPT 0x00
arch/arm/mach-davinci/gpio.c +0 -9
@@ -12,23 +12,14 @@#include <linux/errno.h> #include <linux/kernel.h> -#include <linux/list.h> -#include <linux/module.h> #include <linux/clk.h> #include <linux/err.h> #include <linux/io.h> -#include <linux/irq.h> -#include <linux/bitops.h> -#include <mach/cputype.h> -#include <mach/irqs.h> -#include <mach/hardware.h> -#include <mach/common.h> #include <mach/gpio.h> #include <asm/mach/irq.h> -static DEFINE_SPINLOCK (gpio_lock);struct davinci_gpio {
arch/arm/mach-davinci/include/mach/dm644x.h +0 -1
@@ -22,7 +22,6 @@#ifndef __ASM_ARCH_DM644X_H#define __ASM_ARCH_DM644X_H -#include <linux/platform_device.h> #include <mach/hardware.h> #include <mach/emac.h> #include <mach/asp.h>
arch/arm/mach-davinci/include/mach/system.h +0 -2
@@ -11,8 +11,6 @@#ifndef __ASM_ARCH_SYSTEM_H#define __ASM_ARCH_SYSTEM_H -#include <linux/io.h> -#include <mach/hardware.h> #include <asm/proc-fns.h> extern void davinci_watchdog_reset (void );
arch/arm/mach-davinci/mux.c +0 -1
@@ -19,7 +19,6 @@#include <linux/module.h> #include <linux/spinlock.h> -#include <mach/hardware.h> #include <mach/mux.h> #include <mach/common.h>
arch/arm/mach-davinci/psc.c +0 -3
@@ -19,14 +19,11 @@* */ #include <linux/kernel.h> -#include <linux/module.h> #include <linux/init.h> #include <linux/io.h> #include <mach/cputype.h> -#include <mach/hardware.h> #include <mach/psc.h> -#include <mach/mux.h> /* PSC register offsets */ #define EPCPR 0x070
arch/arm/mach-davinci/serial.c +0 -6
@@ -28,14 +28,8 @@#include <linux/clk.h> #include <linux/io.h> -#include <asm/irq.h> -#include <mach/hardware.h> #include <mach/serial.h> -#include <mach/irqs.h> #include <mach/cputype.h> -#include <mach/common.h> - -#include "clock.h" static inline unsigned int serial_read_reg (struct plat_serial8250_port *up,int offset)
arch/arm/mach-davinci/sram.c +0 -3
@@ -9,15 +9,12 @@* (at your option) any later version. */ #include <linux/module.h> -#include <linux/kernel.h> #include <linux/init.h> #include <linux/genalloc.h> #include <mach/common.h> -#include <mach/memory.h> #include <mach/sram.h> -static struct gen_pool *sram_pool;void *sram_alloc (size_t len,dma_addr_t *dma)
arch/arm/mach-davinci/time.c +0 -6
@@ -14,20 +14,14 @@#include <linux/interrupt.h> #include <linux/clocksource.h> #include <linux/clockchips.h> -#include <linux/spinlock.h> #include <linux/io.h> #include <linux/clk.h> #include <linux/err.h> -#include <linux/device.h> #include <linux/platform_device.h> #include <mach/hardware.h> -#include <asm/system.h> -#include <asm/irq.h> #include <asm/mach/irq.h> #include <asm/mach/time.h> -#include <asm/errno.h> -#include <mach/io.h> #include <mach/cputype.h> #include <mach/time.h> #include "clock.h"
arch/arm/mach-davinci/usb.c +0 -4
@@ -1,17 +1,13 @@/* * USB */ -#include <linux/kernel.h> -#include <linux/module.h> #include <linux/init.h> #include <linux/platform_device.h> #include <linux/dma-mapping.h> #include <linux/usb/musb.h> -#include <linux/usb/otg.h> #include <mach/common.h> -#include <mach/hardware.h> #include <mach/irqs.h> #include <mach/cputype.h> #include <mach/usb.h>
Signature · 1 line
1.6.4.3
PATCH 44/46 davinci: dm646x-evm: Add platform data for NAND
From: Hemant Pedanekar <[email protected]>
This patch adds platform data and partition info for NAND on dm6467 EVM.
Note that the partition layout is dependent on the UBL, U-Boot etc. used. This patch tries to minimize that dependency by setting first partition for UBL, U-Boot and environment altogether.
--- arch/arm/mach-davinci/board-dm646x-evm.c | 69 ++++++++++++++++++++++++++++++ 1 files changed, 69 insertions(+), 0 deletions(-)
arch/arm/mach-davinci/board-dm646x-evm.c +69 -0
@@ -27,6 +27,10 @@#include <media/tvp514x.h> +#include <linux/mtd/mtd.h> +#include <linux/mtd/nand.h> +#include <linux/mtd/partitions.h> +#include <asm/mach-types.h> #include <asm/mach/arch.h>
@@ -34,6 +38,7 @@#include <mach/common.h> #include <mach/serial.h> #include <mach/i2c.h> +#include <mach/nand.h> #if defined(CONFIG_BLK_DEV_PALMCHIP_BK3710 ) || \ defined(CONFIG_BLK_DEV_PALMCHIP_BK3710_MODULE )
@@ -42,6 +47,11 @@#define HAS_ATA 0#endif +#define DAVINCI_ASYNC_EMIF_CONTROL_BASE 0x20008000 +#define DAVINCI_ASYNC_EMIF_DATA_CE0_BASE 0x42000000 + +#define NAND_BLOCK_SIZE SZ_128K +/* CPLD Register 0 bits to control ATA */ #define DM646X_EVM_ATA_RST BIT(0)#define DM646X_EVM_ATA_PWD BIT(1)
@@ -77,6 +87,63 @@ static struct davinci_uart_config uart_config __initdata = { .enabled_uarts = (1 << 0), }; +/* Note: We are setting first partition as 'bootloader' constituting UBL, U-Boot +* and U-Boot environment this avoids dependency on any particular combination +* of UBL, U-Boot or flashing tools etc. +*/ +static struct mtd_partition davinci_nand_partitions[] = { + { +/* UBL, U-Boot with environment */ + .name ="bootloader" , + .offset =MTDPART_OFS_APPEND , + .size =16 *NAND_BLOCK_SIZE , + .mask_flags =MTD_WRITEABLE ,/* force read-only */ + }, { + .name ="kernel" , + .offset =MTDPART_OFS_APPEND , + .size =SZ_4M , + .mask_flags =0 , + }, { + .name ="filesystem" , + .offset =MTDPART_OFS_APPEND , + .size =MTDPART_SIZ_FULL , + .mask_flags =0 , + } +}; + +static struct davinci_nand_pdata davinci_nand_data = { + .mask_cle =0x80000 , + .mask_ale =0x40000 , + .parts = davinci_nand_partitions, + .nr_parts =ARRAY_SIZE (davinci_nand_partitions), + .ecc_mode =NAND_ECC_HW , + .options =0 , +}; + +static struct resource davinci_nand_resources[] = { + { + .start =DAVINCI_ASYNC_EMIF_DATA_CE0_BASE , + .end =DAVINCI_ASYNC_EMIF_DATA_CE0_BASE +SZ_32M -1 , + .flags =IORESOURCE_MEM , + }, { + .start =DAVINCI_ASYNC_EMIF_CONTROL_BASE , + .end =DAVINCI_ASYNC_EMIF_CONTROL_BASE +SZ_4K -1 , + .flags =IORESOURCE_MEM , + }, +}; + +static struct platform_device davinci_nand_device = { + .name ="davinci_nand" , + .id =0 , + + .num_resources =ARRAY_SIZE (davinci_nand_resources), + .resource = davinci_nand_resources, + + .dev = { + .platform_data = &davinci_nand_data, + }, +}; +/* CPLD Register 0 Client: used for I/O Control */ static int cpld_reg0_probe (struct i2c_client *client,const struct i2c_device_id *id)
@@ -632,6 +699,8 @@ static __init void evm_init(void)dm646x_init_mcasp0 (&dm646x_evm_snd_data[0 ]);dm646x_init_mcasp1 (&dm646x_evm_snd_data[1 ]); +platform_device_register (&davinci_nand_device); +if (HAS_ATA )dm646x_init_ide ();
Signature · 1 line
1.6.4.3
PATCH 45/46 davinci: DA850/OMAP-L138: Set ASYNC3 domain flag for McASP
From: Chaithrika U S <[email protected]>
In the McASP clock definition add a flag to indicate that the peripheral clock belongs to ASYNC3 clock domain.
--- arch/arm/mach-davinci/da850.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mach-davinci/da850.c +1 -0
@@ -310,6 +310,7 @@ static struct clk mcasp_clk = { .parent = &pll0_sysclk2, .lpsc = DA8XX_LPSC1_McASP0, .gpsc = 1, + .flags = DA850_CLK_ASYNC3, };static struct clk lcdc_clk = {
Signature · 1 line
1.6.4.3
PATCH 46/46 davinci: DMx and da8xx defconfig updates
DMx:
- enable MMC and dm365evm_keys
- Enable DM355 and DM365 input drivers as modules.
da8xx
- combine da830 and da850 into common defconfig
- drop SYSFS_DEPRECATED flag
- auto-select D$ writethrough for da830
- enable CPUfreq and FB
--- arch/arm/configs/da830_omapl137_defconfig | 1254 --------------------------- arch/arm/configs/da850_omapl138_defconfig | 1229 --------------------------- arch/arm/configs/da8xx_omapl_defconfig | 1322 +++++++++++++++++++++++++++++ arch/arm/configs/davinci_all_defconfig | 125 ++- arch/arm/mach-davinci/Kconfig | 1 + 5 files changed, 1410 insertions(+), 2521 deletions(-) delete mode 100644 arch/arm/configs/da830_omapl137_defconfig delete mode 100644 arch/arm/configs/da850_omapl138_defconfig create mode 100644 arch/arm/configs/da8xx_omapl_defconfig
arch/arm/configs/da830_omapl137_defconfig deleted +0 -1254
@@ -1,1254 +0,0 @@ -# -# Automatically generated make config: don't edit -# Linux kernel version: 2.6.30-rc2-davinci1 -# Wed May 13 15:33:29 2009 -# -CONFIG_ARM=y -CONFIG_SYS_SUPPORTS_APM_EMULATION=y -CONFIG_GENERIC_GPIO=y -CONFIG_GENERIC_TIME=y -CONFIG_GENERIC_CLOCKEVENTS=y -CONFIG_MMU=y -# CONFIG_NO_IOPORT is not set -CONFIG_GENERIC_HARDIRQS=y -CONFIG_STACKTRACE_SUPPORT=y -CONFIG_HAVE_LATENCYTOP_SUPPORT=y -CONFIG_LOCKDEP_SUPPORT=y -CONFIG_TRACE_IRQFLAGS_SUPPORT=y -CONFIG_HARDIRQS_SW_RESEND=y -CONFIG_GENERIC_IRQ_PROBE=y -CONFIG_RWSEM_GENERIC_SPINLOCK=y -# CONFIG_ARCH_HAS_ILOG2_U32 is not set -# CONFIG_ARCH_HAS_ILOG2_U64 is not set -CONFIG_GENERIC_HWEIGHT=y -CONFIG_GENERIC_CALIBRATE_DELAY=y -CONFIG_ZONE_DMA=y -CONFIG_GENERIC_HARDIRQS_NO__DO_IRQ=y -CONFIG_VECTORS_BASE=0xffff0000 -CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" - -# -# General setup -# -CONFIG_EXPERIMENTAL=y -CONFIG_BROKEN_ON_SMP=y -CONFIG_LOCK_KERNEL=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=y -CONFIG_POSIX_MQUEUE_SYSCTL=y -# CONFIG_BSD_PROCESS_ACCT is not set -# CONFIG_TASKSTATS is not set -# CONFIG_AUDIT is not set - -# -# RCU Subsystem -# -CONFIG_CLASSIC_RCU=y -# CONFIG_TREE_RCU is not set -# CONFIG_PREEMPT_RCU is not set -# CONFIG_TREE_RCU_TRACE is not set -# CONFIG_PREEMPT_RCU_TRACE is not set -CONFIG_IKCONFIG=y -CONFIG_IKCONFIG_PROC=y -CONFIG_LOG_BUF_SHIFT=14 -CONFIG_GROUP_SCHED=y -CONFIG_FAIR_GROUP_SCHED=y -# CONFIG_RT_GROUP_SCHED is not set -CONFIG_USER_SCHED=y -# CONFIG_CGROUP_SCHED is not set -# CONFIG_CGROUPS is not set -CONFIG_SYSFS_DEPRECATED=y -CONFIG_SYSFS_DEPRECATED_V2=y -# CONFIG_RELAY is not set -# CONFIG_NAMESPACES is not set -CONFIG_BLK_DEV_INITRD=y -CONFIG_INITRAMFS_SOURCE="" -CONFIG_RD_GZIP=y -# CONFIG_RD_BZIP2 is not set -# CONFIG_RD_LZMA is not set -CONFIG_CC_OPTIMIZE_FOR_SIZE=y -CONFIG_SYSCTL=y -CONFIG_ANON_INODES=y -CONFIG_EMBEDDED=y -CONFIG_UID16=y -CONFIG_SYSCTL_SYSCALL=y -CONFIG_KALLSYMS=y -# CONFIG_KALLSYMS_ALL is not set -# CONFIG_KALLSYMS_EXTRA_PASS is not set -# CONFIG_STRIP_ASM_SYMS is not set -CONFIG_HOTPLUG=y -CONFIG_PRINTK=y -CONFIG_BUG=y -CONFIG_ELF_CORE=y -CONFIG_BASE_FULL=y -CONFIG_FUTEX=y -CONFIG_EPOLL=y -CONFIG_SIGNALFD=y -CONFIG_TIMERFD=y -CONFIG_EVENTFD=y -CONFIG_SHMEM=y -CONFIG_AIO=y -CONFIG_VM_EVENT_COUNTERS=y -CONFIG_SLUB_DEBUG=y -CONFIG_COMPAT_BRK=y -# CONFIG_SLAB is not set -CONFIG_SLUB=y -# CONFIG_SLOB is not set -# CONFIG_PROFILING is not set -# CONFIG_MARKERS is not set -CONFIG_HAVE_OPROFILE=y -# CONFIG_KPROBES is not set -CONFIG_HAVE_KPROBES=y -CONFIG_HAVE_KRETPROBES=y -CONFIG_HAVE_CLK=y -# CONFIG_SLOW_WORK is not set -CONFIG_HAVE_GENERIC_DMA_COHERENT=y -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=y -CONFIG_MODVERSIONS=y -# CONFIG_MODULE_SRCVERSION_ALL is not set -CONFIG_BLOCK=y -# CONFIG_LBD is not set -# CONFIG_BLK_DEV_BSG is not set -# CONFIG_BLK_DEV_INTEGRITY is not set - -# -# IO Schedulers -# -CONFIG_IOSCHED_NOOP=y -CONFIG_IOSCHED_AS=y -# CONFIG_IOSCHED_DEADLINE is not set -# CONFIG_IOSCHED_CFQ is not set -CONFIG_DEFAULT_AS=y -# CONFIG_DEFAULT_DEADLINE is not set -# CONFIG_DEFAULT_CFQ is not set -# CONFIG_DEFAULT_NOOP is not set -CONFIG_DEFAULT_IOSCHED="anticipatory" -# CONFIG_FREEZER is not set - -# -# System Type -# -# CONFIG_ARCH_AAEC2000 is not set -# CONFIG_ARCH_INTEGRATOR is not set -# CONFIG_ARCH_REALVIEW is not set -# CONFIG_ARCH_VERSATILE is not set -# CONFIG_ARCH_AT91 is not set -# CONFIG_ARCH_CLPS711X is not set -# CONFIG_ARCH_EBSA110 is not set -# CONFIG_ARCH_EP93XX is not set -# CONFIG_ARCH_GEMINI is not set -# CONFIG_ARCH_FOOTBRIDGE is not set -# CONFIG_ARCH_NETX is not set -# CONFIG_ARCH_H720X is not set -# CONFIG_ARCH_IMX is not set -# CONFIG_ARCH_IOP13XX is not set -# CONFIG_ARCH_IOP32X is not set -# CONFIG_ARCH_IOP33X is not set -# CONFIG_ARCH_IXP23XX is not set -# CONFIG_ARCH_IXP2000 is not set -# CONFIG_ARCH_IXP4XX is not set -# CONFIG_ARCH_L7200 is not set -# CONFIG_ARCH_KIRKWOOD is not set -# CONFIG_ARCH_KS8695 is not set -# CONFIG_ARCH_NS9XXX is not set -# CONFIG_ARCH_LOKI is not set -# CONFIG_ARCH_MV78XX0 is not set -# CONFIG_ARCH_MXC is not set -# CONFIG_ARCH_ORION5X is not set -# CONFIG_ARCH_PNX4008 is not set -# CONFIG_ARCH_PXA is not set -# CONFIG_ARCH_MMP is not set -# CONFIG_ARCH_RPC is not set -# CONFIG_ARCH_SA1100 is not set -# CONFIG_ARCH_S3C2410 is not set -# CONFIG_ARCH_S3C64XX is not set -# CONFIG_ARCH_SHARK is not set -# CONFIG_ARCH_LH7A40X is not set -CONFIG_ARCH_DAVINCI=y -# CONFIG_ARCH_OMAP is not set -# CONFIG_ARCH_MSM is not set -# CONFIG_ARCH_W90X900 is not set -CONFIG_CP_INTC=y - -# -# TI DaVinci Implementations -# - -# -# DaVinci Core Type -# -# CONFIG_ARCH_DAVINCI_DM644x is not set -# CONFIG_ARCH_DAVINCI_DM646x is not set -# CONFIG_ARCH_DAVINCI_DM355 is not set -CONFIG_ARCH_DAVINCI_DA830=y - -# -# DaVinci Board Type -# -CONFIG_MACH_DAVINCI_DA830_EVM=y -CONFIG_DAVINCI_MUX=y -# CONFIG_DAVINCI_MUX_DEBUG is not set -# CONFIG_DAVINCI_MUX_WARNINGS is not set -CONFIG_DAVINCI_RESET_CLOCKS=y - -# -# Processor Type -# -CONFIG_CPU_32=y -CONFIG_CPU_ARM926T=y -CONFIG_CPU_32v5=y -CONFIG_CPU_ABRT_EV5TJ=y -CONFIG_CPU_PABRT_NOIFAR=y -CONFIG_CPU_CACHE_VIVT=y -CONFIG_CPU_COPY_V4WB=y -CONFIG_CPU_TLB_V4WBI=y -CONFIG_CPU_CP15=y -CONFIG_CPU_CP15_MMU=y - -# -# Processor Features -# -CONFIG_ARM_THUMB=y -# CONFIG_CPU_ICACHE_DISABLE is not set -# CONFIG_CPU_DCACHE_DISABLE is not set -CONFIG_CPU_DCACHE_WRITETHROUGH=y -# CONFIG_CPU_CACHE_ROUND_ROBIN is not set -# CONFIG_OUTER_CACHE is not set -CONFIG_COMMON_CLKDEV=y - -# -# Bus support -# -# CONFIG_PCI_SYSCALL is not set -# CONFIG_ARCH_SUPPORTS_MSI is not set -# CONFIG_PCCARD is not set - -# -# Kernel Features -# -CONFIG_TICK_ONESHOT=y -CONFIG_NO_HZ=y -CONFIG_HIGH_RES_TIMERS=y -CONFIG_GENERIC_CLOCKEVENTS_BUILD=y -CONFIG_VMSPLIT_3G=y -# CONFIG_VMSPLIT_2G is not set -# CONFIG_VMSPLIT_1G is not set -CONFIG_PAGE_OFFSET=0xC0000000 -CONFIG_PREEMPT=y -CONFIG_HZ=100 -CONFIG_AEABI=y -# CONFIG_OABI_COMPAT is not set -CONFIG_ARCH_FLATMEM_HAS_HOLES=y -# CONFIG_ARCH_SPARSEMEM_DEFAULT is not set -# CONFIG_ARCH_SELECT_MEMORY_MODEL is not set -# CONFIG_HIGHMEM is not set -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=4096 -# CONFIG_PHYS_ADDR_T_64BIT is not set -CONFIG_ZONE_DMA_FLAG=1 -CONFIG_BOUNCE=y -CONFIG_VIRT_TO_BUS=y -CONFIG_UNEVICTABLE_LRU=y -CONFIG_HAVE_MLOCK=y -CONFIG_HAVE_MLOCKED_PAGE_BIT=y -CONFIG_LEDS=y -# CONFIG_LEDS_CPU is not set -CONFIG_ALIGNMENT_TRAP=y - -# -# Boot options -# -CONFIG_ZBOOT_ROM_TEXT=0x0 -CONFIG_ZBOOT_ROM_BSS=0x0 -CONFIG_CMDLINE="" -# CONFIG_XIP_KERNEL is not set -# CONFIG_KEXEC is not set - -# -# CPU Power Management -# -# CONFIG_CPU_IDLE is not set - -# -# Floating point emulation -# - -# -# At least one emulation must be selected -# -# CONFIG_VFP is not set - -# -# Userspace binary formats -# -CONFIG_BINFMT_ELF=y -# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set -CONFIG_HAVE_AOUT=y -# CONFIG_BINFMT_AOUT is not set -# CONFIG_BINFMT_MISC is not set - -# -# Power management options -# -# CONFIG_PM is not set -CONFIG_ARCH_SUSPEND_POSSIBLE=y -CONFIG_NET=y - -# -# Networking options -# -CONFIG_PACKET=y -# CONFIG_PACKET_MMAP is not set -CONFIG_UNIX=y -CONFIG_XFRM=y -# CONFIG_XFRM_USER is not set -# CONFIG_XFRM_SUB_POLICY is not set -# CONFIG_XFRM_MIGRATE is not set -# CONFIG_XFRM_STATISTICS is not set -# CONFIG_NET_KEY is not set -CONFIG_INET=y -# CONFIG_IP_MULTICAST is not set -# CONFIG_IP_ADVANCED_ROUTER is not set -CONFIG_IP_FIB_HASH=y -CONFIG_IP_PNP=y -CONFIG_IP_PNP_DHCP=y -# CONFIG_IP_PNP_BOOTP 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=m -CONFIG_INET_XFRM_MODE_TRANSPORT=y -CONFIG_INET_XFRM_MODE_TUNNEL=y -CONFIG_INET_XFRM_MODE_BEET=y -# CONFIG_INET_LRO is not set -CONFIG_INET_DIAG=y -CONFIG_INET_TCP_DIAG=y -# CONFIG_TCP_CONG_ADVANCED is not set -CONFIG_TCP_CONG_CUBIC=y -CONFIG_DEFAULT_TCP_CONG="cubic" -# CONFIG_TCP_MD5SIG is not set -CONFIG_IPV6=m -# CONFIG_IPV6_PRIVACY is not set -# CONFIG_IPV6_ROUTER_PREF is not set -# CONFIG_IPV6_OPTIMISTIC_DAD is not set -# CONFIG_INET6_AH is not set -# CONFIG_INET6_ESP is not set -# CONFIG_INET6_IPCOMP is not set -# CONFIG_IPV6_MIP6 is not set -# CONFIG_INET6_XFRM_TUNNEL is not set -# CONFIG_INET6_TUNNEL is not set -CONFIG_INET6_XFRM_MODE_TRANSPORT=m -CONFIG_INET6_XFRM_MODE_TUNNEL=m -CONFIG_INET6_XFRM_MODE_BEET=m -# CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION is not set -CONFIG_IPV6_SIT=m -CONFIG_IPV6_NDISC_NODETYPE=y -# CONFIG_IPV6_TUNNEL is not set -# CONFIG_IPV6_MULTIPLE_TABLES is not set -# CONFIG_IPV6_MROUTE is not set -# CONFIG_NETWORK_SECMARK is not set -CONFIG_NETFILTER=y -# CONFIG_NETFILTER_DEBUG is not set -CONFIG_NETFILTER_ADVANCED=y - -# -# Core Netfilter Configuration -# -# CONFIG_NETFILTER_NETLINK_QUEUE is not set -# CONFIG_NETFILTER_NETLINK_LOG is not set -# CONFIG_NF_CONNTRACK is not set -# CONFIG_NETFILTER_XTABLES is not set -# CONFIG_IP_VS is not set - -# -# IP: Netfilter Configuration -# -# CONFIG_NF_DEFRAG_IPV4 is not set -# CONFIG_IP_NF_QUEUE is not set -# CONFIG_IP_NF_IPTABLES is not set -# CONFIG_IP_NF_ARPTABLES is not set - -# -# IPv6: Netfilter Configuration -# -# CONFIG_IP6_NF_QUEUE is not set -# CONFIG_IP6_NF_IPTABLES is not set -# CONFIG_IP_DCCP is not set -# CONFIG_IP_SCTP is not set -# CONFIG_TIPC is not set -# CONFIG_ATM is not set -# CONFIG_BRIDGE is not set -# CONFIG_NET_DSA is not set -# CONFIG_VLAN_8021Q is not set -# CONFIG_DECNET is not set -# CONFIG_LLC2 is not set -# CONFIG_IPX is not set -# CONFIG_ATALK is not set -# CONFIG_X25 is not set -# CONFIG_LAPB is not set -# CONFIG_ECONET is not set -# CONFIG_WAN_ROUTER is not set -# CONFIG_PHONET is not set -# CONFIG_NET_SCHED is not set -# CONFIG_DCB is not set - -# -# Network testing -# -# CONFIG_NET_PKTGEN is not set -# CONFIG_HAMRADIO is not set -# CONFIG_CAN is not set -# CONFIG_IRDA is not set -# CONFIG_BT is not set -# CONFIG_AF_RXRPC is not set -# CONFIG_WIRELESS is not set -# CONFIG_WIMAX is not set -# CONFIG_RFKILL is not set -# CONFIG_NET_9P is not set - -# -# Device Drivers -# - -# -# Generic Driver Options -# -CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" -CONFIG_STANDALONE=y -CONFIG_PREVENT_FIRMWARE_BUILD=y -# CONFIG_FW_LOADER is not set -# CONFIG_DEBUG_DRIVER is not set -# CONFIG_DEBUG_DEVRES is not set -# CONFIG_SYS_HYPERVISOR is not set -# CONFIG_CONNECTOR is not set -# CONFIG_MTD is not set -# CONFIG_PARPORT is not set -CONFIG_BLK_DEV=y -# CONFIG_BLK_DEV_COW_COMMON is not set -CONFIG_BLK_DEV_LOOP=m -# CONFIG_BLK_DEV_CRYPTOLOOP is not set -# CONFIG_BLK_DEV_NBD is not set -CONFIG_BLK_DEV_RAM=y -CONFIG_BLK_DEV_RAM_COUNT=1 -CONFIG_BLK_DEV_RAM_SIZE=32768 -# CONFIG_BLK_DEV_XIP is not set -# CONFIG_CDROM_PKTCDVD is not set -# CONFIG_ATA_OVER_ETH is not set -CONFIG_MISC_DEVICES=y -# CONFIG_ICS932S401 is not set -# CONFIG_ENCLOSURE_SERVICES is not set -# CONFIG_ISL29003 is not set -# CONFIG_C2PORT is not set - -# -# EEPROM support -# -CONFIG_EEPROM_AT24=y -# CONFIG_EEPROM_LEGACY is not set -# CONFIG_EEPROM_93CX6 is not set -CONFIG_HAVE_IDE=y -# CONFIG_IDE is not set - -# -# SCSI device support -# -# CONFIG_RAID_ATTRS is not set -CONFIG_SCSI=m -CONFIG_SCSI_DMA=y -# CONFIG_SCSI_TGT is not set -# CONFIG_SCSI_NETLINK is not set -CONFIG_SCSI_PROC_FS=y - -# -# SCSI support type (disk, tape, CD-ROM) -# -CONFIG_BLK_DEV_SD=m -# 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 is not set -# CONFIG_CHR_DEV_SCH is not set - -# -# Some SCSI devices (e.g. CD jukebox) support multiple LUNs -# -# 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_LIBFC is not set -# CONFIG_LIBFCOE is not set -# CONFIG_SCSI_DEBUG 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_NETDEVICES=y -CONFIG_COMPAT_NET_DEV_OPS=y -# CONFIG_DUMMY is not set -# CONFIG_BONDING is not set -# CONFIG_MACVLAN is not set -# CONFIG_EQUALIZER is not set -CONFIG_TUN=m -# CONFIG_VETH is not set -CONFIG_PHYLIB=y - -# -# MII PHY device drivers -# -# CONFIG_MARVELL_PHY is not set -# CONFIG_DAVICOM_PHY is not set -# CONFIG_QSEMI_PHY is not set -CONFIG_LXT_PHY=y -# CONFIG_CICADA_PHY is not set -# CONFIG_VITESSE_PHY is not set -# CONFIG_SMSC_PHY is not set -# CONFIG_BROADCOM_PHY is not set -# CONFIG_ICPLUS_PHY is not set -# CONFIG_REALTEK_PHY is not set -# CONFIG_NATIONAL_PHY is not set -# CONFIG_STE10XP is not set -CONFIG_LSI_ET1011C_PHY=y -# CONFIG_FIXED_PHY is not set -# CONFIG_MDIO_BITBANG is not set -CONFIG_NET_ETHERNET=y -CONFIG_MII=y -# CONFIG_AX88796 is not set -# CONFIG_SMC91X is not set -CONFIG_TI_DAVINCI_EMAC=y -# CONFIG_DM9000 is not set -# CONFIG_ETHOC is not set -# CONFIG_SMC911X is not set -# CONFIG_SMSC911X is not set -# CONFIG_DNET 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_B44 is not set -# CONFIG_NETDEV_1000 is not set -# CONFIG_NETDEV_10000 is not set - -# -# Wireless LAN -# -# CONFIG_WLAN_PRE80211 is not set -# CONFIG_WLAN_80211 is not set - -# -# Enable WiMAX (Networking options) to see the WiMAX drivers -# -# CONFIG_WAN is not set -# CONFIG_PPP is not set -# CONFIG_SLIP is not set -CONFIG_NETCONSOLE=y -# CONFIG_NETCONSOLE_DYNAMIC is not set -CONFIG_NETPOLL=y -CONFIG_NETPOLL_TRAP=y -CONFIG_NET_POLL_CONTROLLER=y -# CONFIG_ISDN is not set - -# -# Input device support -# -CONFIG_INPUT=y -# CONFIG_INPUT_FF_MEMLESS is not set -# CONFIG_INPUT_POLLDEV is not set - -# -# Userland interfaces -# -CONFIG_INPUT_MOUSEDEV=m -CONFIG_INPUT_MOUSEDEV_PSAUX=y -CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 -CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 -# CONFIG_INPUT_JOYDEV is not set -CONFIG_INPUT_EVDEV=m -CONFIG_INPUT_EVBUG=m - -# -# Input Device Drivers -# -CONFIG_INPUT_KEYBOARD=y -CONFIG_KEYBOARD_ATKBD=m -# CONFIG_KEYBOARD_SUNKBD is not set -# CONFIG_KEYBOARD_LKKBD is not set -CONFIG_KEYBOARD_XTKBD=m -# CONFIG_KEYBOARD_NEWTON is not set -# CONFIG_KEYBOARD_STOWAWAY is not set -CONFIG_KEYBOARD_GPIO=y -# CONFIG_INPUT_MOUSE is not set -# CONFIG_INPUT_JOYSTICK is not set -# CONFIG_INPUT_TABLET is not set -CONFIG_INPUT_TOUCHSCREEN=y -# CONFIG_TOUCHSCREEN_AD7879_I2C is not set -# CONFIG_TOUCHSCREEN_AD7879 is not set -# CONFIG_TOUCHSCREEN_FUJITSU is not set -# CONFIG_TOUCHSCREEN_GUNZE is not set -# CONFIG_TOUCHSCREEN_ELO is not set -# CONFIG_TOUCHSCREEN_WACOM_W8001 is not set -# CONFIG_TOUCHSCREEN_MTOUCH is not set -# CONFIG_TOUCHSCREEN_INEXIO is not set -# CONFIG_TOUCHSCREEN_MK712 is not set -# CONFIG_TOUCHSCREEN_PENMOUNT is not set -# CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set -# CONFIG_TOUCHSCREEN_TOUCHWIN is not set -# CONFIG_TOUCHSCREEN_TOUCHIT213 is not set -# CONFIG_TOUCHSCREEN_TSC2007 is not set -# CONFIG_INPUT_MISC is not set - -# -# Hardware I/O ports -# -CONFIG_SERIO=y -CONFIG_SERIO_SERPORT=y -CONFIG_SERIO_LIBPS2=y -# CONFIG_SERIO_RAW is not set -# CONFIG_GAMEPORT is not set - -# -# Character devices -# -CONFIG_VT=y -CONFIG_CONSOLE_TRANSLATIONS=y -# CONFIG_VT_CONSOLE is not set -CONFIG_HW_CONSOLE=y -# CONFIG_VT_HW_CONSOLE_BINDING is not set -CONFIG_DEVKMEM=y -# CONFIG_SERIAL_NONSTANDARD is not set - -# -# Serial drivers -# -CONFIG_SERIAL_8250=y -CONFIG_SERIAL_8250_CONSOLE=y -CONFIG_SERIAL_8250_NR_UARTS=3 -CONFIG_SERIAL_8250_RUNTIME_UARTS=3 -# CONFIG_SERIAL_8250_EXTENDED is not set - -# -# Non-8250 serial port support -# -CONFIG_SERIAL_CORE=y -CONFIG_SERIAL_CORE_CONSOLE=y -CONFIG_UNIX98_PTYS=y -# CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set -CONFIG_LEGACY_PTYS=y -CONFIG_LEGACY_PTY_COUNT=256 -# CONFIG_IPMI_HANDLER is not set -CONFIG_HW_RANDOM=m -# CONFIG_HW_RANDOM_TIMERIOMEM is not set -# CONFIG_R3964 is not set -# CONFIG_RAW_DRIVER is not set -# CONFIG_TCG_TPM is not set -CONFIG_I2C=y -CONFIG_I2C_BOARDINFO=y -CONFIG_I2C_CHARDEV=y -CONFIG_I2C_HELPER_AUTO=y - -# -# I2C Hardware Bus support -# - -# -# I2C system bus drivers (mostly embedded / system-on-chip) -# -CONFIG_I2C_DAVINCI=y -# CONFIG_I2C_GPIO is not set -# 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 - -# -# Other I2C/SMBus bus drivers -# -# CONFIG_I2C_PCA_PLATFORM is not set -# CONFIG_I2C_STUB is not set - -# -# Miscellaneous I2C Chip support -# -# CONFIG_DS1682 is not set -# CONFIG_SENSORS_PCA9539 is not set -# CONFIG_SENSORS_MAX6875 is not set -# CONFIG_SENSORS_TSL2550 is not set -# CONFIG_I2C_DEBUG_CORE is not set -# CONFIG_I2C_DEBUG_ALGO is not set -# CONFIG_I2C_DEBUG_BUS is not set -# CONFIG_I2C_DEBUG_CHIP is not set -# CONFIG_SPI is not set -CONFIG_ARCH_REQUIRE_GPIOLIB=y -CONFIG_GPIOLIB=y -# CONFIG_DEBUG_GPIO is not set -# CONFIG_GPIO_SYSFS is not set - -# -# Memory mapped GPIO expanders: -# - -# -# I2C GPIO expanders: -# -# CONFIG_GPIO_MAX732X is not set -# CONFIG_GPIO_PCA953X is not set -CONFIG_GPIO_PCF857X=m - -# -# PCI GPIO expanders: -# - -# -# SPI GPIO expanders: -# -# CONFIG_W1 is not set -# CONFIG_POWER_SUPPLY is not set -# CONFIG_HWMON is not set -# CONFIG_THERMAL is not set -# CONFIG_THERMAL_HWMON is not set -CONFIG_WATCHDOG=y -# CONFIG_WATCHDOG_NOWAYOUT is not set - -# -# Watchdog Device Drivers -# -# CONFIG_SOFT_WATCHDOG is not set -# CONFIG_DAVINCI_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_MFD_ASIC3 is not set -# CONFIG_HTC_EGPIO is not set -# CONFIG_HTC_PASIC3 is not set -# CONFIG_TPS65010 is not set -# CONFIG_TWL4030_CORE is not set -# CONFIG_MFD_TMIO is not set -# CONFIG_MFD_T7L66XB is not set -# CONFIG_MFD_TC6387XB is not set -# CONFIG_MFD_TC6393XB is not set -# CONFIG_PMIC_DA903X is not set -# CONFIG_MFD_WM8400 is not set -# CONFIG_MFD_WM8350_I2C is not set -# CONFIG_MFD_PCF50633 is not set - -# -# Multimedia devices -# - -# -# Multimedia core support -# -# CONFIG_VIDEO_DEV is not set -# CONFIG_DVB_CORE is not set -# CONFIG_VIDEO_MEDIA is not set - -# -# Multimedia drivers -# -# CONFIG_DAB is not set - -# -# Graphics support -# -# CONFIG_VGASTATE is not set -# CONFIG_VIDEO_OUTPUT_CONTROL is not set -# CONFIG_FB is not set -# CONFIG_BACKLIGHT_LCD_SUPPORT is not set - -# -# Display device support -# -# CONFIG_DISPLAY_SUPPORT is not set - -# -# Console display driver support -# -# CONFIG_VGA_CONSOLE is not set -CONFIG_DUMMY_CONSOLE=y -CONFIG_SOUND=m -# CONFIG_SOUND_OSS_CORE is not set -CONFIG_SND=m -CONFIG_SND_TIMER=m -CONFIG_SND_PCM=m -CONFIG_SND_JACK=y -# CONFIG_SND_SEQUENCER is not set -# CONFIG_SND_MIXER_OSS is not set -# CONFIG_SND_PCM_OSS is not set -# CONFIG_SND_HRTIMER is not set -# CONFIG_SND_DYNAMIC_MINORS is not set -CONFIG_SND_SUPPORT_OLD_API=y -CONFIG_SND_VERBOSE_PROCFS=y -# CONFIG_SND_VERBOSE_PRINTK is not set -# CONFIG_SND_DEBUG is not set -CONFIG_SND_DRIVERS=y -# CONFIG_SND_DUMMY is not set -# CONFIG_SND_MTPAV is not set -# CONFIG_SND_SERIAL_U16550 is not set -# CONFIG_SND_MPU401 is not set -CONFIG_SND_ARM=y -CONFIG_SND_SOC=m -CONFIG_SND_DAVINCI_SOC=m -CONFIG_SND_SOC_I2C_AND_SPI=m -# CONFIG_SND_SOC_ALL_CODECS is not set -# CONFIG_SOUND_PRIME is not set -# CONFIG_HID_SUPPORT is not set -# CONFIG_USB_SUPPORT is not set -# CONFIG_USB_MUSB_HOST is not set -# CONFIG_USB_MUSB_PERIPHERAL is not set -# CONFIG_USB_MUSB_OTG is not set -# CONFIG_USB_GADGET_MUSB_HDRC is not set -# CONFIG_USB_GADGET_AT91 is not set -# CONFIG_USB_GADGET_ATMEL_USBA is not set -# CONFIG_USB_GADGET_FSL_USB2 is not set -# CONFIG_USB_GADGET_LH7A40X is not set -# CONFIG_USB_GADGET_OMAP is not set -# CONFIG_USB_GADGET_PXA25X is not set -# CONFIG_USB_GADGET_PXA27X is not set -# CONFIG_USB_GADGET_S3C2410 is not set -# CONFIG_USB_GADGET_IMX is not set -# CONFIG_USB_GADGET_M66592 is not set -# CONFIG_USB_GADGET_AMD5536UDC is not set -# CONFIG_USB_GADGET_FSL_QE is not set -# CONFIG_USB_GADGET_CI13XXX is not set -# CONFIG_USB_GADGET_NET2280 is not set -# CONFIG_USB_GADGET_GOKU is not set -# CONFIG_USB_GADGET_DUMMY_HCD is not set -# CONFIG_USB_ZERO is not set -# CONFIG_USB_ETH is not set -# CONFIG_USB_GADGETFS is not set -# CONFIG_USB_FILE_STORAGE is not set -# CONFIG_USB_G_SERIAL is not set -# CONFIG_USB_MIDI_GADGET is not set -# CONFIG_USB_G_PRINTER is not set -# CONFIG_USB_CDC_COMPOSITE is not set -# CONFIG_MMC is not set -# CONFIG_MEMSTICK is not set -# CONFIG_ACCESSIBILITY is not set -# CONFIG_NEW_LEDS is not set -CONFIG_RTC_LIB=y -# CONFIG_RTC_CLASS is not set -# CONFIG_DMADEVICES is not set -# CONFIG_AUXDISPLAY is not set -# CONFIG_REGULATOR is not set -# CONFIG_UIO is not set -# CONFIG_STAGING is not set - -# -# File systems -# -CONFIG_EXT2_FS=y -# CONFIG_EXT2_FS_XATTR is not set -# CONFIG_EXT2_FS_XIP is not set -CONFIG_EXT3_FS=y -# CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set -CONFIG_EXT3_FS_XATTR=y -# CONFIG_EXT3_FS_POSIX_ACL is not set -# CONFIG_EXT3_FS_SECURITY is not set -# CONFIG_EXT4_FS is not set -CONFIG_JBD=y -# CONFIG_JBD_DEBUG is not set -CONFIG_FS_MBCACHE=y -# CONFIG_REISERFS_FS is not set -# CONFIG_JFS_FS is not set -# CONFIG_FS_POSIX_ACL is not set -CONFIG_FILE_LOCKING=y -CONFIG_XFS_FS=m -# CONFIG_XFS_QUOTA is not set -# CONFIG_XFS_POSIX_ACL is not set -# CONFIG_XFS_RT is not set -# CONFIG_XFS_DEBUG is not set -# CONFIG_OCFS2_FS is not set -# CONFIG_BTRFS_FS is not set -CONFIG_DNOTIFY=y -CONFIG_INOTIFY=y -CONFIG_INOTIFY_USER=y -# CONFIG_QUOTA is not set -# CONFIG_AUTOFS_FS is not set -CONFIG_AUTOFS4_FS=m -# CONFIG_FUSE_FS is not set - -# -# Caches -# -# CONFIG_FSCACHE is not set - -# -# CD-ROM/DVD Filesystems -# -# CONFIG_ISO9660_FS is not set -# CONFIG_UDF_FS is not set - -# -# DOS/FAT/NT Filesystems -# -CONFIG_FAT_FS=y -CONFIG_MSDOS_FS=y -CONFIG_VFAT_FS=y -CONFIG_FAT_DEFAULT_CODEPAGE=437 -CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" -# CONFIG_NTFS_FS is not set - -# -# Pseudo filesystems -# -CONFIG_PROC_FS=y -CONFIG_PROC_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_CRAMFS=y -# CONFIG_SQUASHFS is not set -# CONFIG_VXFS_FS is not set -CONFIG_MINIX_FS=m -# CONFIG_OMFS_FS is not set -# CONFIG_HPFS_FS is not set -# CONFIG_QNX4FS_FS is not set -# CONFIG_ROMFS_FS is not set -# CONFIG_SYSV_FS is not set -# CONFIG_UFS_FS is not set -# CONFIG_NILFS2_FS is not set -CONFIG_NETWORK_FILESYSTEMS=y -CONFIG_NFS_FS=y -CONFIG_NFS_V3=y -# CONFIG_NFS_V3_ACL is not set -# CONFIG_NFS_V4 is not set -CONFIG_ROOT_NFS=y -CONFIG_NFSD=m -CONFIG_NFSD_V3=y -# CONFIG_NFSD_V3_ACL is not set -# CONFIG_NFSD_V4 is not set -CONFIG_LOCKD=y -CONFIG_LOCKD_V4=y -CONFIG_EXPORTFS=m -CONFIG_NFS_COMMON=y -CONFIG_SUNRPC=y -# CONFIG_RPCSEC_GSS_KRB5 is not set -# CONFIG_RPCSEC_GSS_SPKM3 is not set -CONFIG_SMB_FS=m -# CONFIG_SMB_NLS_DEFAULT is not set -# CONFIG_CIFS is not set -# CONFIG_NCP_FS is not set -# CONFIG_CODA_FS is not set -# CONFIG_AFS_FS is not set - -# -# Partition Types -# -CONFIG_PARTITION_ADVANCED=y -# CONFIG_ACORN_PARTITION is not set -# CONFIG_OSF_PARTITION is not set -# CONFIG_AMIGA_PARTITION is not set -# CONFIG_ATARI_PARTITION is not set -# CONFIG_MAC_PARTITION is not set -CONFIG_MSDOS_PARTITION=y -# CONFIG_BSD_DISKLABEL is not set -# CONFIG_MINIX_SUBPARTITION is not set -# CONFIG_SOLARIS_X86_PARTITION is not set -# CONFIG_UNIXWARE_DISKLABEL is not set -# CONFIG_LDM_PARTITION is not set -# CONFIG_SGI_PARTITION is not set -# CONFIG_ULTRIX_PARTITION is not set -# CONFIG_SUN_PARTITION is not set -# CONFIG_KARMA_PARTITION is not set -# CONFIG_EFI_PARTITION is not set -# CONFIG_SYSV68_PARTITION is not set -CONFIG_NLS=y -CONFIG_NLS_DEFAULT="iso8859-1" -CONFIG_NLS_CODEPAGE_437=y -# CONFIG_NLS_CODEPAGE_737 is not set -# CONFIG_NLS_CODEPAGE_775 is not set -# CONFIG_NLS_CODEPAGE_850 is not set -# CONFIG_NLS_CODEPAGE_852 is not set -# CONFIG_NLS_CODEPAGE_855 is not set -# CONFIG_NLS_CODEPAGE_857 is not set -# CONFIG_NLS_CODEPAGE_860 is not set -# CONFIG_NLS_CODEPAGE_861 is not set -# CONFIG_NLS_CODEPAGE_862 is not set -# CONFIG_NLS_CODEPAGE_863 is not set -# CONFIG_NLS_CODEPAGE_864 is not set -# CONFIG_NLS_CODEPAGE_865 is not set -# CONFIG_NLS_CODEPAGE_866 is not set -# CONFIG_NLS_CODEPAGE_869 is not set -# CONFIG_NLS_CODEPAGE_936 is not set -# CONFIG_NLS_CODEPAGE_950 is not set -# CONFIG_NLS_CODEPAGE_932 is not set -# CONFIG_NLS_CODEPAGE_949 is not set -# CONFIG_NLS_CODEPAGE_874 is not set -# CONFIG_NLS_ISO8859_8 is not set -# CONFIG_NLS_CODEPAGE_1250 is not set -# CONFIG_NLS_CODEPAGE_1251 is not set -CONFIG_NLS_ASCII=m -CONFIG_NLS_ISO8859_1=y -# CONFIG_NLS_ISO8859_2 is not set -# CONFIG_NLS_ISO8859_3 is not set -# CONFIG_NLS_ISO8859_4 is not set -# CONFIG_NLS_ISO8859_5 is not set -# CONFIG_NLS_ISO8859_6 is not set -# CONFIG_NLS_ISO8859_7 is not set -# CONFIG_NLS_ISO8859_9 is not set -# CONFIG_NLS_ISO8859_13 is not set -# CONFIG_NLS_ISO8859_14 is not set -# CONFIG_NLS_ISO8859_15 is not set -# CONFIG_NLS_KOI8_R is not set -# CONFIG_NLS_KOI8_U is not set -CONFIG_NLS_UTF8=m -# CONFIG_DLM is not set - -# -# Kernel hacking -# -# CONFIG_PRINTK_TIME is not set -CONFIG_ENABLE_WARN_DEPRECATED=y -CONFIG_ENABLE_MUST_CHECK=y -CONFIG_FRAME_WARN=1024 -# CONFIG_MAGIC_SYSRQ is not set -# CONFIG_UNUSED_SYMBOLS is not set -CONFIG_DEBUG_FS=y -# CONFIG_HEADERS_CHECK is not set -CONFIG_DEBUG_KERNEL=y -# CONFIG_DEBUG_SHIRQ is not set -CONFIG_DETECT_SOFTLOCKUP=y -# CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set -CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC_VALUE=0 -CONFIG_DETECT_HUNG_TASK=y -# CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not set -CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0 -CONFIG_SCHED_DEBUG=y -# CONFIG_SCHEDSTATS is not set -CONFIG_TIMER_STATS=y -# CONFIG_DEBUG_OBJECTS is not set -# CONFIG_SLUB_DEBUG_ON is not set -# CONFIG_SLUB_STATS is not set -CONFIG_DEBUG_PREEMPT=y -CONFIG_DEBUG_RT_MUTEXES=y -CONFIG_DEBUG_PI_LIST=y -# CONFIG_RT_MUTEX_TESTER is not set -# CONFIG_DEBUG_SPINLOCK is not set -CONFIG_DEBUG_MUTEXES=y -# CONFIG_DEBUG_LOCK_ALLOC is not set -# CONFIG_PROVE_LOCKING is not set -# CONFIG_LOCK_STAT is not set -# CONFIG_DEBUG_SPINLOCK_SLEEP is not set -# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set -# CONFIG_DEBUG_KOBJECT is not set -CONFIG_DEBUG_BUGVERBOSE=y -# CONFIG_DEBUG_INFO is not set -# CONFIG_DEBUG_VM is not set -# CONFIG_DEBUG_WRITECOUNT is not set -# CONFIG_DEBUG_MEMORY_INIT is not set -# CONFIG_DEBUG_LIST is not set -# CONFIG_DEBUG_SG is not set -# CONFIG_DEBUG_NOTIFIERS is not set -# CONFIG_BOOT_PRINTK_DELAY is not set -# CONFIG_RCU_TORTURE_TEST is not set -# CONFIG_RCU_CPU_STALL_DETECTOR is not set -# CONFIG_BACKTRACE_SELF_TEST is not set -# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set -# CONFIG_FAULT_INJECTION is not set -# CONFIG_LATENCYTOP is not set -# CONFIG_SYSCTL_SYSCALL_CHECK is not set -# CONFIG_PAGE_POISONING is not set -CONFIG_HAVE_FUNCTION_TRACER=y -CONFIG_TRACING_SUPPORT=y - -# -# Tracers -# -# CONFIG_FUNCTION_TRACER is not set -# CONFIG_IRQSOFF_TRACER is not set -# CONFIG_PREEMPT_TRACER is not set -# CONFIG_SCHED_TRACER is not set -# CONFIG_CONTEXT_SWITCH_TRACER is not set -# CONFIG_EVENT_TRACER is not set -# CONFIG_BOOT_TRACER is not set -# CONFIG_TRACE_BRANCH_PROFILING is not set -# CONFIG_STACK_TRACER is not set -# CONFIG_KMEMTRACE is not set -# CONFIG_WORKQUEUE_TRACER is not set -# CONFIG_BLK_DEV_IO_TRACE is not set -# CONFIG_DYNAMIC_DEBUG is not set -# CONFIG_SAMPLES is not set -CONFIG_HAVE_ARCH_KGDB=y -# CONFIG_KGDB is not set -CONFIG_ARM_UNWIND=y -CONFIG_DEBUG_USER=y -CONFIG_DEBUG_ERRORS=y -# CONFIG_DEBUG_STACK_USAGE is not set -# CONFIG_DEBUG_LL is not set - -# -# Security options -# -# CONFIG_KEYS is not set -# CONFIG_SECURITY is not set -# CONFIG_SECURITYFS is not set -# CONFIG_SECURITY_FILE_CAPABILITIES is not set -CONFIG_CRYPTO=y - -# -# Crypto core or helper -# -# CONFIG_CRYPTO_FIPS is not set -# CONFIG_CRYPTO_MANAGER is not set -# CONFIG_CRYPTO_MANAGER2 is not set -# CONFIG_CRYPTO_GF128MUL is not set -# CONFIG_CRYPTO_NULL is not set -# CONFIG_CRYPTO_CRYPTD is not set -# CONFIG_CRYPTO_AUTHENC is not set -# CONFIG_CRYPTO_TEST is not set - -# -# Authenticated Encryption with Associated Data -# -# CONFIG_CRYPTO_CCM is not set -# CONFIG_CRYPTO_GCM is not set -# CONFIG_CRYPTO_SEQIV is not set - -# -# Block modes -# -# CONFIG_CRYPTO_CBC is not set -# CONFIG_CRYPTO_CTR is not set -# CONFIG_CRYPTO_CTS is not set -# CONFIG_CRYPTO_ECB is not set -# CONFIG_CRYPTO_LRW is not set -# CONFIG_CRYPTO_PCBC is not set -# CONFIG_CRYPTO_XTS is not set - -# -# Hash modes -# -# CONFIG_CRYPTO_HMAC is not set -# CONFIG_CRYPTO_XCBC is not set - -# -# Digest -# -# CONFIG_CRYPTO_CRC32C is not set -# CONFIG_CRYPTO_MD4 is not set -# CONFIG_CRYPTO_MD5 is not set -# CONFIG_CRYPTO_MICHAEL_MIC is not set -# CONFIG_CRYPTO_RMD128 is not set -# CONFIG_CRYPTO_RMD160 is not set -# CONFIG_CRYPTO_RMD256 is not set -# CONFIG_CRYPTO_RMD320 is not set -# CONFIG_CRYPTO_SHA1 is not set -# CONFIG_CRYPTO_SHA256 is not set -# CONFIG_CRYPTO_SHA512 is not set -# CONFIG_CRYPTO_TGR192 is not set -# CONFIG_CRYPTO_WP512 is not set - -# -# Ciphers -# -# CONFIG_CRYPTO_AES is not set -# CONFIG_CRYPTO_ANUBIS is not set -# CONFIG_CRYPTO_ARC4 is not set -# CONFIG_CRYPTO_BLOWFISH is not set -# CONFIG_CRYPTO_CAMELLIA is not set -# CONFIG_CRYPTO_CAST5 is not set -# CONFIG_CRYPTO_CAST6 is not set -# CONFIG_CRYPTO_DES is not set -# CONFIG_CRYPTO_FCRYPT is not set -# CONFIG_CRYPTO_KHAZAD is not set -# CONFIG_CRYPTO_SALSA20 is not set -# CONFIG_CRYPTO_SEED is not set -# CONFIG_CRYPTO_SERPENT is not set -# CONFIG_CRYPTO_TEA is not set -# CONFIG_CRYPTO_TWOFISH is not set - -# -# Compression -# -# CONFIG_CRYPTO_DEFLATE is not set -# CONFIG_CRYPTO_ZLIB is not set -# CONFIG_CRYPTO_LZO is not set - -# -# Random Number Generation -# -# CONFIG_CRYPTO_ANSI_CPRNG is not set -# CONFIG_CRYPTO_HW is not set -# CONFIG_BINARY_PRINTF is not set - -# -# Library routines -# -CONFIG_BITREVERSE=y -CONFIG_GENERIC_FIND_LAST_BIT=y -CONFIG_CRC_CCITT=m -# CONFIG_CRC16 is not set -CONFIG_CRC_T10DIF=m -# 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_DECOMPRESS_GZIP=y -CONFIG_GENERIC_ALLOCATOR=y -CONFIG_HAS_IOMEM=y -CONFIG_HAS_IOPORT=y -CONFIG_HAS_DMA=y -CONFIG_NLATTR=y
arch/arm/configs/da850_omapl138_defconfig deleted +0 -1229
1,229 lines not on this page · raw message
arch/arm/configs/da8xx_omapl_defconfig new file +1322 -0
517 lines not on this page · raw message
arch/arm/configs/davinci_all_defconfig +87 -38
125 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.6.4.3
Part of the diff is not shown here. View the raw message.
PATCH 43/46 DaVinci: remove unneeded #include's
In reply to Kevin HilmanHello.
Quoted 9 lines · Kevin Hilman
From: Sergei Shtylyov <[email protected]>
There have accumulated quite a lot of them after the code reorganizations...
In several cases I had to replace #include <
linux/dma-mapping.h> which wasn't needed directly but happened to #include <linux/err.h> which was needed.Signed-off-by Sergei Shtylyov <[email protected]>Signed-off-by Kevin Hilman <[email protected]>
[...]
Quoted 17 lines
arch/arm/mach-davinci/da850.c +0
-2@@ -11,24 +11,21 @@* is licensed "as is" without any warranty of any kind, whether express * or implied. */ -#include <linux/kernel.h> #include <linux/init.h> #include <linux/clk.h> -#include <linux/platform_device.h> #include <linux/cpufreq.h> #include <linux/regulator/consumer.h> #include <asm/mach/map.h>
arch/arm/mach-davinci/da850.c line 28
Quoted 10 lines
arch/arm/mach-davinci/da850.c +1
-2-#include <mach/clock.h> #include <mach/psc.h> -#include <mach/mux.h> #include <mach/irqs.h> #include <mach/cputype.h> #include <mach/common.h> #include <mach/time.h> #include <mach/da8xx.h> #include <mach/cpufreq.h> +#include <linux/platform_device.h>
As has been pointed out, this is not in its proper group. Perhaps the
patch can be changed before pushing upstream, and removal and addition of this line just nullified?
WBR, Sergei
PATCH 43/46 DaVinci: remove unneeded #include's
Quoted 37 lines · Sergei Shtylyov
Hello.
Quoted 9 lines · Kevin Hilman
From: Sergei Shtylyov <[email protected]>
There have accumulated quite a lot of them after the code reorganizations...
In several cases I had to replace #include <
linux/dma-mapping.h> which wasn't needed directly but happened to #include <linux/err.h> which was needed.Signed-off-by Sergei Shtylyov <[email protected]>Signed-off-by Kevin Hilman <[email protected]>[...]
Quoted 21 lines
arch/arm/mach-davinci/da850.c +0
-3@@ -11,24 +11,21 @@* is licensed "as is" without any warranty of any kind, whether express * or implied. */ -#include <linux/kernel.h> #include <linux/init.h> #include <linux/clk.h> -#include <linux/platform_device.h> #include <linux/cpufreq.h> #include <linux/regulator/consumer.h> #include <asm/mach/map.h> -#include <mach/clock.h>#include <mach/psc.h> -#include <mach/mux.h> #include <mach/irqs.h> #include <mach/cputype.h> #include <mach/common.h>
Quoted 8 lines
arch/arm/mach-davinci/da850.c line 28
Quoted 4 lines
arch/arm/mach-davinci/da850.c +1
-0#include <mach/time.h> #include <mach/da8xx.h> #include <mach/cpufreq.h> +#include <linux/platform_device.h> As has been pointed out, this is not in its proper group. Perhaps
the patch can be changed before pushing upstream, and removal and addition of this line just nullified?
Indeed, I'll clean this up in the davinci-next branch.
Thanks,
Kevin
PATCH 38/46 davinci: fix compilation error when using mach/system.h
In reply to Kevin HilmanQuoted 7 lines · Kevin Hilman
From: Sekhar Nori <[email protected]>
include/mach/system.huses thecpu_do_idle()function which is defined inasm/proc-fns.h. Without this patch includingsystem.hleads to error of the sort:error: implicit declaration of function '
cpu_do_idle'
The right answer might actually be to ensure that arch/arm/kernel/process.c includes this file, so that all mach/system.h files don't have to.
PATCH 38/46 davinci: fix compilation error when using mach/system.h
Quoted 11 lines · Russell King - ARM Linux
Quoted 7 lines · Kevin Hilman
From: Sekhar Nori <[email protected]>
include/mach/system.huses thecpu_do_idle()function which is defined inasm/proc-fns.h. Without this patch includingsystem.hleads to error of the sort:error: implicit declaration of function '
cpu_do_idle'The right answer might actually be to ensure that
arch/arm/kernel/process.cincludes this file, so that allmach/system.hfiles don't have to.
Maybe it should be more explicit, but at least on 2.6.32, process.c already triggers an include of <asm/proc-fns.h> (linux/mm.h -> asm/pgtable.h -> asm/proc-fns.h.
IIRC, the problem was not with arch/arm/kernel/process.c other mach-davinci files using <mach/system.h> for some reason.
After Sergei's major #include cleanup for mach-davinci/*, I don't think this is actually necessary anymore.
Sekhar, I'll drop this patch from davinci-next unless you think this is still necessary for some reason.
Kevin
PATCH 38/46 davinci: fix compilation error when using mach/system.h
Quoted 6 lines · Kevin Hilman
Maybe it should be more explicit, but at least on 2.6.32,
process.calready triggers an include of <asm/proc-fns.h> (linux/mm.h->asm/pgtable.h->asm/proc-fns.h.IIRC, the problem was not with
arch/arm/kernel/process.cother mach-davinci files using <mach/system.h> for some reason.
Ok. Note that nothing else other than process.c should be using mach/system.h (it's a private include file for it) so it sounds like the include cleanup did the right thing.
PATCH 38/46 davinci: fix compilation error when using mach/system.h
In reply to Kevin HilmanQuoted 18 lines · Kevin Hilman
Quoted 11 lines · Russell King - ARM Linux
Quoted 7 lines · Kevin Hilman
From: Sekhar Nori <[email protected]>
include/mach/system.huses thecpu_do_idle()function which is defined inasm/proc-fns.h. Without this patch includingsystem.hleads to error of the sort:error: implicit declaration of function '
cpu_do_idle'The right answer might actually be to ensure that
arch/arm/kernel/process.cincludes this file, so that allmach/system.hfiles don't have to.Maybe it should be more explicit, but at least on 2.6.32,
process.calready triggers an include of <asm/proc-fns.h> (linux/mm.h->asm/pgtable.h->asm/proc-fns.h.
Quoted 8 lines
IIRC, the problem was not with
arch/arm/kernel/process.cother mach-davinci files using <mach/system.h> for some reason.After Sergei's major #include cleanup for mach-davinci/*, I don't think this is actually necessary anymore.
Sekhar, I'll drop this patch from davinci-next unless you think this is still necessary for some reason.
Kevin, I made this patch because I started using arch_idle() for entering WFI mode in the da850 cpuidle driver.
The Marvell Kirkwood cpuidle driver uses a call to cpu_do_idle() directly, but calling arch_idle sounded more appropriate to me in case the arch needs to do something special for entering idle (though not actually the case with da850).
Thanks,
Sekhar
PATCH 38/46 davinci: fix compilation error when using mach/system.h
Quoted 28 lines · Sekhar
Quoted 18 lines · Kevin Hilman
Quoted 11 lines · Russell King - ARM Linux
Quoted 7 lines · Kevin Hilman
From: Sekhar Nori <[email protected]>
include/mach/system.huses thecpu_do_idle()function which is defined inasm/proc-fns.h. Without this patch includingsystem.hleads to error of the sort:error: implicit declaration of function '
cpu_do_idle'The right answer might actually be to ensure that
arch/arm/kernel/process.cincludes this file, so that allmach/system.hfiles don't have to.Maybe it should be more explicit, but at least on 2.6.32,
process.calready triggers an include of <asm/proc-fns.h> (linux/mm.h->asm/pgtable.h->asm/proc-fns.h.Quoted 8 lines
IIRC, the problem was not with
arch/arm/kernel/process.cother mach-davinci files using <mach/system.h> for some reason.After Sergei's major #include cleanup for mach-davinci/*, I don't think this is actually necessary anymore.
Sekhar, I'll drop this patch from davinci-next unless you think this is still necessary for some reason.
Quoted 7 lines
Kevin, I made this patch because I started using
arch_idle()for entering WFI mode in the da850 cpuidle driver.The Marvell Kirkwood cpuidle driver uses a call to
cpu_do_idle()directly, but callingarch_idlesounded more appropriate to me in case the arch needs to do something special for entering idle (though not actually the case with da850).
For now, I think we should stick to calling cpu_do_idle() directly.
Kevin
PATCH 33/46 davinci: add generic CPUFreq driver for DaVinci
In reply to Kevin HilmanQuoted 23 lines · Kevin Hilman
From: Sekhar Nori <[email protected]>
Adds a basic CPUFreq driver for DaVinci devices registering with the kernel CPUFreq infrastructure.
Support is added for both frequency and voltage regulation.
Signed-off-by Sekhar Nori <[email protected]>Signed-off-by Kevin Hilman <[email protected]>--- arch/arm/mach-davinci/Kconfig | 1 + arch/arm/mach-davinci/Makefile | 3 + arch/arm/mach-davinci/cpufreq.c | 219 ++++++++++++++++++++++++++ arch/arm/mach-davinci/include/mach/cpufreq.h | 25 +++ 4 files changed, 248 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-davinci/cpufreq.c create mode 100644 arch/arm/mach-davinci/include/mach/cpufreq.harch/arm/mach-davinci/Kconfig +0
-0
arch/arm/mach-davinci/Kconfig config ARCH_DAVINCI_DA830 · line 35
Quoted 4 lines
arch/arm/mach-davinci/Kconfig +1
-0@@ -32,6 +32,7 @@ config ARCH_DAVINCI_DA830 bool "DA830/OMAP-L137 based system" select CP_INTC select ARCH_DAVINCI_DA8XX + select ARCH_HAS_CPUFREQ
Kevin,
This config option has mistakenly been selected for DA830 instead of DA850.
Thanks,
Sekhar
PATCH 33/46 davinci: add generic CPUFreq driver for DaVinci
Quoted 31 lines · Sekhar
Quoted 23 lines · Kevin Hilman
From: Sekhar Nori <[email protected]>
Adds a basic CPUFreq driver for DaVinci devices registering with the kernel CPUFreq infrastructure.
Support is added for both frequency and voltage regulation.
Signed-off-by Sekhar Nori <[email protected]>Signed-off-by Kevin Hilman <[email protected]>--- arch/arm/mach-davinci/Kconfig | 1 + arch/arm/mach-davinci/Makefile | 3 + arch/arm/mach-davinci/cpufreq.c | 219 ++++++++++++++++++++++++++ arch/arm/mach-davinci/include/mach/cpufreq.h | 25 +++ 4 files changed, 248 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-davinci/cpufreq.c create mode 100644 arch/arm/mach-davinci/include/mach/cpufreq.harch/arm/mach-davinci/Kconfig +0
-0arch/arm/mach-davinci/Kconfig config ARCH_DAVINCI_DA830 · line 35
Quoted 4 lines
arch/arm/mach-davinci/Kconfig +1
-0@@ -32,6 +32,7 @@ config ARCH_DAVINCI_DA830 bool "DA830/OMAP-L137 based system" select CP_INTC select ARCH_DAVINCI_DA8XX + select ARCH_HAS_CPUFREQKevin,
Quoted 3 lines
This config option has mistakenly been selected for DA830 instead of DA850.
Thanks Sekhar,
I'll fix in davinci-next.
Kevin
PATCH 16/46 davinci: Add MMC/SD support for DA830/OMAP-L137 EVM
In reply to Kevin HilmanQuoted 16 lines · Kevin Hilman
From: David A. Griego <[email protected]>
Add pinmux settings, etc. to enable the MMC/SC hardware.
Signed-off-by David A. Griego <[email protected]>Signed-off-by Mark A. Greer <[email protected]>Signed-off-by Kevin Hilman <[email protected]>--- arch/arm/mach-davinci/board-da830-evm.c | 43 +++++++++++++++++++++++++++++++ 1 files changed, 43 insertions(+), 0 deletions(-)arch/arm/mach-davinci/board-da830-evm.c +0
-0
arch/arm/mach-davinci/board-da830-evm.c line 26
Quoted 4 lines
arch/arm/mach-davinci/board-da830-evm.c +1
-0@@ -23,6 +23,7 @@#include <mach/irqs.h> #include <mach/cp_intc.h> #include <mach/mux.h> +#include <mach/gpio.h>
linux/gpio.h
arch/arm/mach-davinci/board-da830-evm.c static struct snd_platform_data da830_evm_snd_data = { · line 109
Quoted 12 lines
arch/arm/mach-davinci/board-da830-evm.c +12
-0+static int da830_evm_mmc_get_ro (int index) +{ +int val, status, gpio_num =33 ; + + status =gpio_request (gpio_num,"MMC WP\n" ); +if (status <0 ) { +pr_warning ("%s can not open GPIO %d\n" , __func__, gpio_num); +return 0 ; + } +gpio_direction_input (gpio_num); + val =gpio_get_value (gpio_num); +gpio_free (gpio_num);
Should this really be requesting the gpio every time it wants to be read? This approach sounds wrong. Why not just request the GPIO in the platform initialisation code, setting its direction, and merely reading it in this function?
PATCH 16/46 davinci: Add MMC/SD support for DA830/OMAP-L137 EVM
Quoted 12 lines · Russell King - ARM Linux
Quoted 11 lines · Kevin Hilman
From: David A. Griego <[email protected]>
Add pinmux settings, etc. to enable the MMC/SC hardware.
Signed-off-by David A. Griego <[email protected]>Signed-off-by Mark A. Greer <[email protected]>Signed-off-by Kevin Hilman <[email protected]>--- arch/arm/mach-davinci/board-da830-evm.c | 43 +++++++++++++++++++++++++++++++ 1 files changed, 43 insertions(+), 0 deletions(-)
Quoted 11 lines
arch/arm/mach-davinci/board-da830-evm.c line 26
Quoted 9 lines
arch/arm/mach-davinci/board-da830-evm.c +1
-0@@ -23,6 +23,7 @@#include <mach/irqs.h> #include <mach/cp_intc.h> #include <mach/mux.h> +#include <mach/gpio.h>
linux/gpio.h
Oops.
Quoted 9 lines
Quoted 9 lines
arch/arm/mach-davinci/board-da830-evm.c +9
-0+static int da830_evm_mmc_get_ro (int index) +{ +int val, status, gpio_num =33 ; + + status =gpio_request (gpio_num,"MMC WP\n" ); +if (status <0 ) { +pr_warning ("%s can not open GPIO %d\n" , __func__, gpio_num); +return 0 ; + }
Quoted 8 lines
arch/arm/mach-davinci/board-da830-evm.c static struct snd_platform_data da830_evm_snd_data = { · line 109
Quoted 3 lines
arch/arm/mach-davinci/board-da830-evm.c +3
-0+gpio_direction_input (gpio_num); + val =gpio_get_value (gpio_num); +gpio_free (gpio_num);Should this really be requesting the gpio every time it wants to be read? This approach sounds wrong. Why not just request the GPIO in the platform initialisation code, setting its direction, and merely reading it in this function?
This routine doesn't get called on every read. AFAICT, its only called by mmc_sd_init_card() which is called during init and resume. That seems like the logical time to check if the card is set to read-only since cards can be inserted and removed while the system is running.
Mark
--
PATCH 16/46 davinci: Add MMC/SD support for DA830/OMAP-L137 EVM
Quoted 21 lines · Mark A. Greer
Quoted 11 lines · Russell King - ARM Linux
Quoted 9 lines · Kevin Hilman
arch/arm/mach-davinci/board-da830-evm.c +9
-0+static int da830_evm_mmc_get_ro (int index) +{ +int val, status, gpio_num =33 ; + + status =gpio_request (gpio_num,"MMC WP\n" ); +if (status <0 ) { +pr_warning ("%s can not open GPIO %d\n" , __func__, gpio_num); +return 0 ; + }Quoted 8 lines
arch/arm/mach-davinci/board-da830-evm.c static struct snd_platform_data da830_evm_snd_data = { · line 109
Quoted 3 lines
arch/arm/mach-davinci/board-da830-evm.c +3
-0+gpio_direction_input (gpio_num); + val =gpio_get_value (gpio_num); +gpio_free (gpio_num);Should this really be requesting the gpio every time it wants to be read? This approach sounds wrong. Why not just request the GPIO in the platform initialisation code, setting its direction, and merely reading it in this function?
Quoted 4 lines
This routine doesn't get called on every read. AFAICT, its only called by
mmc_sd_init_card()which is called during init and resume. That seems like the logical time to check if the card is set to read-only since cards can be inserted and removed while the system is running.
Nevermind, I see what you're saying now. Yes, that would work.
Mark
--
PATCH 16/46 davinci: Add MMC/SD support for DA830/OMAP-L137 EVM
In reply to Mark A. GreerQuoted 20 lines · Mark A. Greer
Quoted 10 lines · Russell King - ARM Linux
Quoted 9 lines · Kevin Hilman
arch/arm/mach-davinci/board-da830-evm.c +9
-0+static int da830_evm_mmc_get_ro (int index) +{ +int val, status, gpio_num =33 ; + + status =gpio_request (gpio_num,"MMC WP\n" ); +if (status <0 ) { +pr_warning ("%s can not open GPIO %d\n" , __func__, gpio_num); +return 0 ; + }Quoted 8 lines
arch/arm/mach-davinci/board-da830-evm.c static struct snd_platform_data da830_evm_snd_data = { · line 109
Quoted 3 lines
arch/arm/mach-davinci/board-da830-evm.c +3
-0+gpio_direction_input (gpio_num); + val =gpio_get_value (gpio_num); +gpio_free (gpio_num);Should this really be requesting the gpio every time it wants to be read? This approach sounds wrong. Why not just request the GPIO in the platform initialisation code, setting its direction, and merely reading it in this function?
Quoted 4 lines
This routine doesn't get called on every read. AFAICT, its only called by
mmc_sd_init_card()which is called during init and resume. That seems like the logical time to check if the card is set to read-only since cards can be inserted and removed while the system is running.
My complaint is not about when this function is called, it's about what is being done inside this function.
PATCH 16/46 davinci: Add MMC/SD support for DA830/OMAP-L137 EVM
In reply to Russell King - ARM LinuxQuoted 33 lines · Russell King - ARM Linux
Quoted 16 lines · Kevin Hilman
From: David A. Griego <[email protected]>
Add pinmux settings, etc. to enable the MMC/SC hardware.
Signed-off-by David A. Griego <[email protected]>Signed-off-by Mark A. Greer <[email protected]>Signed-off-by Kevin Hilman <[email protected]>--- arch/arm/mach-davinci/board-da830-evm.c | 43 +++++++++++++++++++++++++++++++ 1 files changed, 43 insertions(+), 0 deletions(-)arch/arm/mach-davinci/board-da830-evm.c +0
-0arch/arm/mach-davinci/board-da830-evm.c line 26
Quoted 4 lines
arch/arm/mach-davinci/board-da830-evm.c +1
-0@@ -23,6 +23,7 @@#include <mach/irqs.h> #include <mach/cp_intc.h> #include <mach/mux.h> +#include <mach/gpio.h>
linux/gpio.hQuoted 9 lines
arch/arm/mach-davinci/board-da830-evm.c +9
-0+static int da830_evm_mmc_get_ro (int index) +{ +int val, status, gpio_num =33 ; + + status =gpio_request (gpio_num,"MMC WP\n" ); +if (status <0 ) { +pr_warning ("%s can not open GPIO %d\n" , __func__, gpio_num); +return 0 ; + }
Quoted 8 lines
arch/arm/mach-davinci/board-da830-evm.c static struct snd_platform_data da830_evm_snd_data = { · line 109
Quoted 3 lines
arch/arm/mach-davinci/board-da830-evm.c +3
-0+gpio_direction_input (gpio_num); + val =gpio_get_value (gpio_num); +gpio_free (gpio_num);Should this really be requesting the gpio every time it wants to be read? This approach sounds wrong. Why not just request the GPIO in the platform initialisation code, setting its direction, and merely reading it in this function?
Russell,
Thanks for the reviews.
Indeed, request and init should be done at init time as is done for the da850 board. Here's an updated version.
This version is now the one pushed to the davinci-next branch.
Kevin
PATCH 16/46 davinci: Add MMC/SD support for DA830/OMAP-L137 EVM
Quoted 67 lines · Kevin Hilman
From
05e5376685ce71812ae8eb48115ce0d7fd8e0776Mon Sep 17 00:00:00 2001
From: David A. Griego <[email protected]>
Date: Tue, 15 Sep 2009 18:10:20 -0700
Subject: [PATCH 16/46] davinci: Add MMC/SD support for DA830/OMAP-L137 EVMAdd pinmux settings, etc. to enable the MMC/SC hardware.
Signed-off-by David A. Griego <[email protected]>Signed-off-by Mark A. Greer <[email protected]>Signed-off-by Kevin Hilman <[email protected]>--- arch/arm/mach-davinci/board-da830-evm.c | 41 +++++++++++++++++++++++++++++++ 1 files changed, 41 insertions(+), 0 deletions(-)arch/arm/mach-davinci/board-da830-evm.c +31
-0@@ -23,6 +23,7 @@#include <mach/irqs.h> #include <mach/cp_intc.h> #include <mach/mux.h> +#include <mach/gpio.h> #include <mach/da8xx.h> #include <mach/asp.h> @@ -83,6 +84,30 @@ static struct snd_platform_data da830_evm_snd_data = { .rxnumevt = 1, }; +/* +* GPIO2[1] is used as MMC_SD_WP and GPIO2[2] as MMC_SD_INS. +*/ +static const short da830_evm_mmc_sd_pins[] = { +DA830_MMCSD_DAT_0 ,DA830_MMCSD_DAT_1 ,DA830_MMCSD_DAT_2 , +DA830_MMCSD_DAT_3 ,DA830_MMCSD_DAT_4 ,DA830_MMCSD_DAT_5 , +DA830_MMCSD_DAT_6 ,DA830_MMCSD_DAT_7 ,DA830_MMCSD_CLK , +DA830_MMCSD_CMD ,DA830_GPIO2_1 ,DA830_GPIO2_2 , +-1 +}; + +#define DA830_MMCSD_WP_PIN GPIO_TO_PIN(2, 1) + +static int da830_evm_mmc_get_ro (int index) +{ +return gpio_get_value (DA830_MMCSD_WP_PIN ); +} + +static struct davinci_mmc_config da830_evm_mmc_config = { + .get_ro = da830_evm_mmc_get_ro, + .wires =4 , + .version =MMC_CTLR_VERSION_2 , +}; +static __init void da830_evm_init (void ) {struct davinci_soc_info *soc_info = &davinci_soc_info;@@ -132,6 +157,22 @@ static __init void da830_evm_init(void) ret);da8xx_register_mcasp (1 , &da830_evm_snd_data); + + ret =da8xx_pinmux_setup (da830_evm_mmc_sd_pins); +if (ret) +pr_warning ("da830_evm_init: mmc/sd mux setup failed: %d\n" , + ret); +
arch/arm/mach-davinci/board-da830-evm.c static __init void da830_evm_init(void) · line 175
Quoted 10 lines
arch/arm/mach-davinci/board-da830-evm.c +10
-0+ ret =gpio_request (DA830_MMCSD_WP_PIN ,"MMC WP" ); +if (ret) +pr_warning ("da830_evm_init: can not open GPIO %d\n" , +DA830_MMCSD_WP_PIN ); +gpio_direction_input (DA830_MMCSD_WP_PIN ); + + ret =da8xx_register_mmcsd0 (&da830_evm_mmc_config); +if (ret) +pr_warning ("da830_evm_init: mmc/sd registration failed: %d\n" , + ret);
If the da8xx_pinmux_setup or gpio_request fail is it still safe to do the da8xx_register_mmcsd0?
Regards,
Hartley
PATCH 16/46 davinci: Add MMC/SD support for DA830/OMAP-L137 EVM
Quoted 73 lines · H Hartley Sweeten
Quoted 72 lines · Kevin Hilman
From
05e5376685ce71812ae8eb48115ce0d7fd8e0776Mon Sep 17 00:00:00 2001
From: David A. Griego <[email protected]>
Date: Tue, 15 Sep 2009 18:10:20 -0700
Subject: [PATCH 16/46] davinci: Add MMC/SD support for DA830/OMAP-L137 EVMAdd pinmux settings, etc. to enable the MMC/SC hardware.
Signed-off-by David A. Griego <[email protected]>Signed-off-by Mark A. Greer <[email protected]>Signed-off-by Kevin Hilman <[email protected]>--- arch/arm/mach-davinci/board-da830-evm.c | 41 +++++++++++++++++++++++++++++++ 1 files changed, 41 insertions(+), 0 deletions(-)arch/arm/mach-davinci/board-da830-evm.c +36
-0@@ -23,6 +23,7 @@#include <mach/irqs.h> #include <mach/cp_intc.h> #include <mach/mux.h> +#include <mach/gpio.h> #include <mach/da8xx.h> #include <mach/asp.h> @@ -83,6 +84,30 @@ static struct snd_platform_data da830_evm_snd_data = { .rxnumevt = 1, }; +/* +* GPIO2[1] is used as MMC_SD_WP and GPIO2[2] as MMC_SD_INS. +*/ +static const short da830_evm_mmc_sd_pins[] = { +DA830_MMCSD_DAT_0 ,DA830_MMCSD_DAT_1 ,DA830_MMCSD_DAT_2 , +DA830_MMCSD_DAT_3 ,DA830_MMCSD_DAT_4 ,DA830_MMCSD_DAT_5 , +DA830_MMCSD_DAT_6 ,DA830_MMCSD_DAT_7 ,DA830_MMCSD_CLK , +DA830_MMCSD_CMD ,DA830_GPIO2_1 ,DA830_GPIO2_2 , +-1 +}; + +#define DA830_MMCSD_WP_PIN GPIO_TO_PIN(2, 1) + +static int da830_evm_mmc_get_ro (int index) +{ +return gpio_get_value (DA830_MMCSD_WP_PIN ); +} + +static struct davinci_mmc_config da830_evm_mmc_config = { + .get_ro = da830_evm_mmc_get_ro, + .wires =4 , + .version =MMC_CTLR_VERSION_2 , +}; +static __init void da830_evm_init (void ) {struct davinci_soc_info *soc_info = &davinci_soc_info;@@ -132,6 +157,22 @@ static __init void da830_evm_init(void) ret);da8xx_register_mcasp (1 , &da830_evm_snd_data); + + ret =da8xx_pinmux_setup (da830_evm_mmc_sd_pins); +if (ret) +pr_warning ("da830_evm_init: mmc/sd mux setup failed: %d\n" , + ret); + + ret =gpio_request (DA830_MMCSD_WP_PIN ,"MMC WP" ); +if (ret) +pr_warning ("da830_evm_init: can not open GPIO %d\n" , +DA830_MMCSD_WP_PIN ); +gpio_direction_input (DA830_MMCSD_WP_PIN );
Quoted 8 lines
arch/arm/mach-davinci/board-da830-evm.c static __init void da830_evm_init(void) · line 177
Quoted 5 lines
arch/arm/mach-davinci/board-da830-evm.c +5
-0+ + ret =da8xx_register_mmcsd0 (&da830_evm_mmc_config); +if (ret) +pr_warning ("da830_evm_init: mmc/sd registration failed: %d\n" , + ret);If the
da8xx_pinmux_setuporgpio_requestfail is it still safe to do theda8xx_register_mmcsd0?
Well, it would be safe, but it wouldn't work. ;)
Good catch, I'll break those MMC init calls out into a separate init function that will return early if any of the calls fails.
Here's an updated version.
Kevin
PATCH 13/46 davinci: support re-parenting a clock in the clock framework
In reply to Kevin HilmanQuoted 24 lines · Kevin Hilman
From: Sekhar Nori <[email protected]>
The
clk_set_parent()API is implemented to enable re-parenting clocks in the clock tree.This is useful in DVFS and helps by shifting clocks to an asynchronous domain where supported by hardware
Signed-off-by Sekhar Nori <[email protected]>Signed-off-by Kevin Hilman <[email protected]>--- arch/arm/mach-davinci/clock.c | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-)arch/arm/mach-davinci/clock.c +2
-0@@ -141,6 +141,29 @@ int clk_set_rate(struct clk *clk, unsigned long rate) }EXPORT_SYMBOL (clk_set_rate); +int clk_set_parent (struct clk *clk,struct clk *parent) +{
arch/arm/mach-davinci/clock.c int clk_set_rate(struct clk *clk, unsigned long rate) · line 155
Quoted 10 lines
arch/arm/mach-davinci/clock.c +10
-0+unsigned long flags; + +if (clk ==NULL ||IS_ERR (clk)) +return -EINVAL ; + +mutex_lock (&clocks_mutex); + clk->parent = parent; +list_del_init (&clk->childnode); +list_add (&clk->childnode, &clk->parent->children); +mutex_unlock (&clocks_mutex);
This is bad, and is suffering from precisely the same problem which OMAP suffered from:
1. it takes no notice of whether the clk is in use.
2. it takes no notice of whether the parent clocks are being used.
The result is that using clk_set_parent() on a clk_enable()'d clock, you totally destroy the usecounting of the parent clocks, leading to the clock tree usecount becoming totally buggered up.
Either refuse to change the parent of an already clk_enable()'d clock, or do proper usecount fixups when changing the parent.
PATCH 13/46 davinci: support re-parenting a clock in the clock framework
Quoted 42 lines · Russell King - ARM Linux
Quoted 24 lines · Kevin Hilman
From: Sekhar Nori <[email protected]>
The
clk_set_parent()API is implemented to enable re-parenting clocks in the clock tree.This is useful in DVFS and helps by shifting clocks to an asynchronous domain where supported by hardware
Signed-off-by Sekhar Nori <[email protected]>Signed-off-by Kevin Hilman <[email protected]>--- arch/arm/mach-davinci/clock.c | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-)arch/arm/mach-davinci/clock.c +2
-0@@ -141,6 +141,29 @@ int clk_set_rate(struct clk *clk, unsigned long rate) }EXPORT_SYMBOL (clk_set_rate); +int clk_set_parent (struct clk *clk,struct clk *parent) +{arch/arm/mach-davinci/clock.c int clk_set_rate(struct clk *clk, unsigned long rate) · line 155
Quoted 10 lines
arch/arm/mach-davinci/clock.c +10
-0+unsigned long flags; + +if (clk ==NULL ||IS_ERR (clk)) +return -EINVAL ; + +mutex_lock (&clocks_mutex); + clk->parent = parent; +list_del_init (&clk->childnode); +list_add (&clk->childnode, &clk->parent->children); +mutex_unlock (&clocks_mutex);This is bad, and is suffering from precisely the same problem which OMAP suffered from:
1. it takes no notice of whether the clk is in use.
2. it takes no notice of whether the parent clocks are being used.
Quoted 6 lines
The result is that using
clk_set_parent()on a clk_enable()'d clock, you totally destroy the usecounting of the parent clocks, leading to the clock tree usecount becoming totally buggered up.Either refuse to change the parent of an already clk_enable()'d clock, or do proper usecount fixups when changing the parent.
On davinci, we only reparent during early init, so refusing to change the parent of an enabled will suffice.
I've added a check (and warning) if the clock is already enabled as well as a refusal to re-parent:
int clk_set_parent(struct clk *clk, struct clk *parent)
{
unsigned long flags;
if (clk == NULL || IS_ERR(clk))
return -EINVAL;
/* Cannot change parent on enabled clock */
if (WARN_ON(clk->usecount))
return -EINVAL;
mutex_lock(&clocks_mutex);
clk->parent = parent;
list_del_init(&clk->childnode);
list_add(&clk->childnode, &clk->parent->children);
mutex_unlock(&clocks_mutex);
spin_lock_irqsave(&clockfw_lock, flags);
if (clk->recalc)
clk->rate = clk->recalc(clk);
propagate_rate(clk);
spin_unlock_irqrestore(&clockfw_lock, flags);
return 0;
}PATCH 13/46 davinci: support re-parenting a clock in the clock framework
In reply to Russell King - ARM LinuxQuoted 42 lines · Russell King - ARM Linux
Quoted 24 lines · Kevin Hilman
From: Sekhar Nori <[email protected]>
The
clk_set_parent()API is implemented to enable re-parenting clocks in the clock tree.This is useful in DVFS and helps by shifting clocks to an asynchronous domain where supported by hardware
Signed-off-by Sekhar Nori <[email protected]>Signed-off-by Kevin Hilman <[email protected]>--- arch/arm/mach-davinci/clock.c | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-)arch/arm/mach-davinci/clock.c +2
-0@@ -141,6 +141,29 @@ int clk_set_rate(struct clk *clk, unsigned long rate) }EXPORT_SYMBOL (clk_set_rate); +int clk_set_parent (struct clk *clk,struct clk *parent) +{arch/arm/mach-davinci/clock.c int clk_set_rate(struct clk *clk, unsigned long rate) · line 155
Quoted 10 lines
arch/arm/mach-davinci/clock.c +10
-0+unsigned long flags; + +if (clk ==NULL ||IS_ERR (clk)) +return -EINVAL ; + +mutex_lock (&clocks_mutex); + clk->parent = parent; +list_del_init (&clk->childnode); +list_add (&clk->childnode, &clk->parent->children); +mutex_unlock (&clocks_mutex);This is bad, and is suffering from precisely the same problem which OMAP suffered from:
1. it takes no notice of whether the clk is in use.
2. it takes no notice of whether the parent clocks are being used.
Quoted 6 lines
The result is that using
clk_set_parent()on a clk_enable()'d clock, you totally destroy the usecounting of the parent clocks, leading to the clock tree usecount becoming totally buggered up.Either refuse to change the parent of an already clk_enable()'d clock, or do proper usecount fixups when changing the parent.
Russell, thanks for the review.
Here's an updated version which refuses to reparent on an enabled clock. This updated one is now part of davinci-next.
Kevin
PATCH 1/46 DaVinci: DM365: SDIO interrupt resource correction
In reply to Kevin HilmanShouldn't this be targetted for -rc?
If it's a bug fix, it should go for rc and stable releases, not the next kernel.
Quoted 31 lines · Kevin Hilman
From: Phaneendra Kumar <[email protected]>
This patch fixes a typo/bug in the DM365 SDIO interrupt assignment
Signed-off-by Sandeep Paulraj <[email protected]>Signed-off-by Kevin Hilman <[email protected]>--- arch/arm/mach-davinci/devices.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/arm/mach-davinci/devices.c +1
-1@@ -177,7 +177,7 @@ void __init davinci_setup_mmc(int module, struct davinci_mmc_config *config) mmcsd1_resources[0 ].start =DM365_MMCSD1_BASE ; mmcsd1_resources[0 ].end =DM365_MMCSD1_BASE +SZ_4K -1 ; - mmcsd0_resources[2 ].start =IRQ_DM365_SDIOINT1 ; + mmcsd1_resources[2 ].start =IRQ_DM365_SDIOINT1 ; }else break ;Signature · 7 lines
1.6.4.3 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 1/46 DaVinci: DM365: SDIO interrupt resource correction
Quoted 4 lines · Russell King - ARM Linux
Shouldn't this be targetted for -rc?
If it's a bug fix, it should go for rc and stable releases, not the next kernel.
Yes, it's a bug fix and there are two in this series, but since mainline is not the (yet) the primary tree for davinci, I decided not to bother with more fixes late in in this round and send them for the next window instead.
Kevin
Quoted 32 lines · Kevin Hilman
Quoted 31 lines
From: Phaneendra Kumar <[email protected]>
This patch fixes a typo/bug in the DM365 SDIO interrupt assignment
Signed-off-by Sandeep Paulraj <[email protected]>Signed-off-by Kevin Hilman <[email protected]>--- arch/arm/mach-davinci/devices.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/arm/mach-davinci/devices.c +1
-1@@ -177,7 +177,7 @@ void __init davinci_setup_mmc(int module, struct davinci_mmc_config *config) mmcsd1_resources[0 ].start =DM365_MMCSD1_BASE ; mmcsd1_resources[0 ].end =DM365_MMCSD1_BASE +SZ_4K -1 ; - mmcsd0_resources[2 ].start =IRQ_DM365_SDIOINT1 ; + mmcsd1_resources[2 ].start =IRQ_DM365_SDIOINT1 ; }else break ;Signature · 7 lines
1.6.4.3 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel