Re: [PATCH v3] video: add OpenCores VGA/LCD framebuffer driver

2013-11-26 Thread Stefan Kristiansson
On Tue, Nov 26, 2013 at 08:10:46AM +0100, Michal Simek wrote: > On 11/22/2013 05:34 AM, Stefan Kristiansson wrote: > > + > > + /* Request I/O resource */ > > + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > > + if (!res) { > > + dev_err(>

Re: [PATCH v3] video: add OpenCores VGA/LCD framebuffer driver

2013-11-26 Thread Stefan Kristiansson
On Tue, Nov 26, 2013 at 08:10:46AM +0100, Michal Simek wrote: On 11/22/2013 05:34 AM, Stefan Kristiansson wrote: + + /* Request I/O resource */ + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); + if (!res) { + dev_err(pdev-dev, I/O resource request failed\n

Re: [PATCH v3] video: add OpenCores VGA/LCD framebuffer driver

2013-11-25 Thread Stefan Kristiansson
On Sun, Nov 24, 2013 at 03:12:11PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 06:34 Fri 22 Nov , Stefan Kristiansson wrote: > > This adds support for the VGA/LCD core available from OpenCores: > > http://opencores.org/project,vga_lcd > > > > The drive

Re: [PATCH v3] video: add OpenCores VGA/LCD framebuffer driver

2013-11-25 Thread Stefan Kristiansson
On Sun, Nov 24, 2013 at 03:12:11PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: On 06:34 Fri 22 Nov , Stefan Kristiansson wrote: This adds support for the VGA/LCD core available from OpenCores: http://opencores.org/project,vga_lcd The driver have been tested together with both

Re: [PATCH v2] video: add OpenCores VGA/LCD framebuffer driver

2013-11-20 Thread Stefan Kristiansson
On Wed, Nov 20, 2013 at 03:20:28PM +0900, Jingoo Han wrote: > On Wednesday, November 20, 2013 1:14 PM, Stefan Kristiansson wrote: > > > +static int ocfb_probe(struct platform_device *pdev) > > +{ > > + int ret = 0; > > + struct ocfb_dev *fbdev; > >

Re: [PATCH v2] video: add OpenCores VGA/LCD framebuffer driver

2013-11-20 Thread Stefan Kristiansson
On Wed, Nov 20, 2013 at 03:20:28PM +0900, Jingoo Han wrote: On Wednesday, November 20, 2013 1:14 PM, Stefan Kristiansson wrote: +static int ocfb_probe(struct platform_device *pdev) +{ + int ret = 0; + struct ocfb_dev *fbdev; + struct ocfb_par *par = ocfb_par_priv; + struct

[PATCH v2] video: add OpenCores VGA/LCD framebuffer driver

2013-11-19 Thread Stefan Kristiansson
This adds support for the VGA/LCD core available from OpenCores: http://opencores.org/project,vga_lcd The driver have been tested together with both OpenRISC and ARM (socfpga) processors. Signed-off-by: Stefan Kristiansson --- Changes in v2: - Add Microblaze as an example user and fix a typo

[PATCH v2] video: add OpenCores VGA/LCD framebuffer driver

2013-11-19 Thread Stefan Kristiansson
This adds support for the VGA/LCD core available from OpenCores: http://opencores.org/project,vga_lcd The driver have been tested together with both OpenRISC and ARM (socfpga) processors. Signed-off-by: Stefan Kristiansson stefan.kristians...@saunalahti.fi --- Changes in v2: - Add Microblaze

Re: [PATCH] openrisc: Add DTS and defconfig for DE0-Nano

2013-11-16 Thread Stefan Kristiansson
On Fri, Nov 15, 2013 at 10:50:18AM +0100, Jonas Bonn wrote: > >+ > >+i2c0: ocores@a000 { > >+#address-cells = <1>; > >+#size-cells = <0>; > >+compatible = "opencores,i2c-ocores"; > > Version number needed. OpenCores wanted "projectname-rtlsvn###" >

Re: [PATCH] openrisc: Add DTS and defconfig for DE0-Nano

2013-11-16 Thread Stefan Kristiansson
On Fri, Nov 15, 2013 at 10:50:18AM +0100, Jonas Bonn wrote: + +i2c0: ocores@a000 { +#address-cells = 1; +#size-cells = 0; +compatible = opencores,i2c-ocores; Version number needed. OpenCores wanted projectname-rtlsvn### where ### is the SVN

Re: [PATCH] clk: add generic driver for fixed rate clock

2013-11-12 Thread Stefan Kristiansson
Ping and adding Mike Turquette to CC On Sun, Sep 01, 2013 at 07:40:20AM +0300, Stefan Kristiansson wrote: > This adds a simple driver with the only purpose to initialise > the fixed rate clock. > This is useful for systems that do not wish to use seperate init > code for the fixed rat

Re: [PATCH] clk: add generic driver for fixed rate clock

2013-11-12 Thread Stefan Kristiansson
Ping and adding Mike Turquette to CC On Sun, Sep 01, 2013 at 07:40:20AM +0300, Stefan Kristiansson wrote: This adds a simple driver with the only purpose to initialise the fixed rate clock. This is useful for systems that do not wish to use seperate init code for the fixed rate clock init

Re: [PATCH] video: add OpenCores VGA/LCD framebuffer driver

2013-11-11 Thread Stefan Kristiansson
On Mon, Nov 11, 2013 at 10:13:14AM +0100, Michal Simek wrote: > On 11/10/2013 02:08 PM, Stefan Kristiansson wrote: > > +config FB_OPENCORES > > + tristate "OpenCores VGA/LCD core 2.0 framebuffer support" > > + depends on FB > > + select FB_CFB_FI

Re: [PATCH] video: add OpenCores VGA/LCD framebuffer driver

2013-11-11 Thread Stefan Kristiansson
On Mon, Nov 11, 2013 at 10:13:14AM +0100, Michal Simek wrote: On 11/10/2013 02:08 PM, Stefan Kristiansson wrote: +config FB_OPENCORES + tristate OpenCores VGA/LCD core 2.0 framebuffer support + depends on FB + select FB_CFB_FILLRECT + select FB_CFB_COPYAREA + select

[PATCH] video: add OpenCores VGA/LCD framebuffer driver

2013-11-10 Thread Stefan Kristiansson
This adds support for the VGA/LCD core available from OpenCores: http://opencores.org/project,vga_lcd The driver have been tested together with both OpenRISC and ARM (socfpga) processors. Signed-off-by: Stefan Kristiansson --- drivers/video/Kconfig | 17 ++ drivers/video/Makefile | 1

[PATCH] video: add OpenCores VGA/LCD framebuffer driver

2013-11-10 Thread Stefan Kristiansson
This adds support for the VGA/LCD core available from OpenCores: http://opencores.org/project,vga_lcd The driver have been tested together with both OpenRISC and ARM (socfpga) processors. Signed-off-by: Stefan Kristiansson stefan.kristians...@saunalahti.fi --- drivers/video/Kconfig | 17

Re: [ORLinux] [PATCH] openrisc: Add DTS and defconfig for DE0-Nano

2013-11-09 Thread Stefan Kristiansson
On Sat, Nov 09, 2013 at 09:37:31PM +0100, Geert Uytterhoeven wrote: > Add a DTS and defconfig for the Terasic DE0-Nano Development and Education > Board running ORPSoC. This board contains an Altera Cyclone IV FPGA with > support chips and I/O. > > The DTS was derived from published versions by

Re: [ORLinux] [PATCH] openrisc: Add DTS and defconfig for DE0-Nano

2013-11-09 Thread Stefan Kristiansson
On Sat, Nov 09, 2013 at 09:37:31PM +0100, Geert Uytterhoeven wrote: Add a DTS and defconfig for the Terasic DE0-Nano Development and Education Board running ORPSoC. This board contains an Altera Cyclone IV FPGA with support chips and I/O. The DTS was derived from published versions by Kevin

[PATCH] openrisc: select COMMON_CLK

2013-08-31 Thread Stefan Kristiansson
This is needed to be able to use the common clock framework. Signed-off-by: Stefan Kristiansson --- arch/openrisc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/openrisc/Kconfig b/arch/openrisc/Kconfig index 3a91b69..3d879db 100644 --- a/arch/openrisc/Kconfig +++ b/arch

[PATCH] clk: add generic driver for fixed rate clock

2013-08-31 Thread Stefan Kristiansson
This adds a simple driver with the only purpose to initialise the fixed rate clock. This is useful for systems that do not wish to use seperate init code for the fixed rate clock init, but rather only rely on a device tree description of it. Signed-off-by: Stefan Kristiansson --- drivers/clk

[PATCH] clk: add generic driver for fixed rate clock

2013-08-31 Thread Stefan Kristiansson
This adds a simple driver with the only purpose to initialise the fixed rate clock. This is useful for systems that do not wish to use seperate init code for the fixed rate clock init, but rather only rely on a device tree description of it. Signed-off-by: Stefan Kristiansson stefan.kristians

[PATCH] openrisc: select COMMON_CLK

2013-08-31 Thread Stefan Kristiansson
This is needed to be able to use the common clock framework. Signed-off-by: Stefan Kristiansson stefan.kristians...@saunalahti.fi --- arch/openrisc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/openrisc/Kconfig b/arch/openrisc/Kconfig index 3a91b69..3d879db 100644 --- a/arch

[PATCH] openrisc: tlb miss handler optimizations

2013-08-01 Thread Stefan Kristiansson
By slightly reorganizing the code, the number of registers used in the tlb miss handlers can be reduced by two, thus removing the need to save them to memory. Also, some dead and commented out code is removed. No functional change. Signed-off-by: Stefan Kristiansson --- arch/openrisc/kernel

[PATCH] openrisc: tlb miss handler optimizations

2013-08-01 Thread Stefan Kristiansson
By slightly reorganizing the code, the number of registers used in the tlb miss handlers can be reduced by two, thus removing the need to save them to memory. Also, some dead and commented out code is removed. No functional change. Signed-off-by: Stefan Kristiansson stefan.kristians

[PATCH v2] openrisc: call do_notify_resume() with interrupts enabled

2013-04-29 Thread Stefan Kristiansson
A signal delivered through do_notify_resume() would cause the irqs_disabled() check in _local_bh_enable_ip() to be triggered. Enable interrupts before calling do_notify_resume(), but read the current_thread_info->flags before doing so. Signed-off-by: Stefan Kristiansson --- arch/openr

Re: [PATCH] openrisc: call do_notify_resume() with interrupts enabled

2013-04-29 Thread Stefan Kristiansson
On Mon, Apr 29, 2013 at 10:12:37AM +0300, Stefan Kristiansson wrote: > A signal delivered through do_notify_resume() would cause the > irqs_disabled() check in _local_bh_enable_ip() to be triggered. > > Enable interrupts before calling do_notify_resume(). > > Signed-off-by: S

[PATCH] openrisc: call do_notify_resume() with interrupts enabled

2013-04-29 Thread Stefan Kristiansson
A signal delivered through do_notify_resume() would cause the irqs_disabled() check in _local_bh_enable_ip() to be triggered. Enable interrupts before calling do_notify_resume(). Signed-off-by: Stefan Kristiansson --- arch/openrisc/kernel/entry.S | 1 + 1 file changed, 1 insertion(+) diff

[PATCH] openrisc: call do_notify_resume() with interrupts enabled

2013-04-29 Thread Stefan Kristiansson
A signal delivered through do_notify_resume() would cause the irqs_disabled() check in _local_bh_enable_ip() to be triggered. Enable interrupts before calling do_notify_resume(). Signed-off-by: Stefan Kristiansson stefan.kristians...@saunalahti.fi --- arch/openrisc/kernel/entry.S | 1 + 1 file

Re: [PATCH] openrisc: call do_notify_resume() with interrupts enabled

2013-04-29 Thread Stefan Kristiansson
On Mon, Apr 29, 2013 at 10:12:37AM +0300, Stefan Kristiansson wrote: A signal delivered through do_notify_resume() would cause the irqs_disabled() check in _local_bh_enable_ip() to be triggered. Enable interrupts before calling do_notify_resume(). Signed-off-by: Stefan Kristiansson

[PATCH v2] openrisc: call do_notify_resume() with interrupts enabled

2013-04-29 Thread Stefan Kristiansson
A signal delivered through do_notify_resume() would cause the irqs_disabled() check in _local_bh_enable_ip() to be triggered. Enable interrupts before calling do_notify_resume(), but read the current_thread_info-flags before doing so. Signed-off-by: Stefan Kristiansson stefan.kristians

[PATCH] openrisc: add cache way information to cpuinfo

2013-04-27 Thread Stefan Kristiansson
Motivation for this is to be able to print the way information properly in print_cpuinfo(), instead of hardcoding it to one. Signed-off-by: Stefan Kristiansson --- arch/openrisc/include/asm/cpuinfo.h | 2 ++ arch/openrisc/kernel/setup.c| 20 +--- 2 files changed, 15

[PATCH] openrisc: add cache way information to cpuinfo

2013-04-27 Thread Stefan Kristiansson
Motivation for this is to be able to print the way information properly in print_cpuinfo(), instead of hardcoding it to one. Signed-off-by: Stefan Kristiansson stefan.kristians...@saunalahti.fi --- arch/openrisc/include/asm/cpuinfo.h | 2 ++ arch/openrisc/kernel/setup.c| 20

[PATCH] openrisc: avoid using function parameter regs in reset vector

2012-10-12 Thread Stefan Kristiansson
The kernel might be invoked through the reset vector, so to preserve parameters passed to it, temp regs that are not in the function parameter range needs to be used. Signed-off-by: Stefan Kristiansson --- arch/openrisc/kernel/head.S |6 +++--- 1 file changed, 3 insertions(+), 3 deletions

[PATCH] openrisc: avoid using function parameter regs in reset vector

2012-10-12 Thread Stefan Kristiansson
The kernel might be invoked through the reset vector, so to preserve parameters passed to it, temp regs that are not in the function parameter range needs to be used. Signed-off-by: Stefan Kristiansson stefan.kristians...@saunalahti.fi --- arch/openrisc/kernel/head.S |6 +++--- 1 file

<    1   2