[PATCH 1/2] i.MX51: Synchronize iomux header file from kernel

2012-06-14 Thread Alexander Shiyan
Signed-off-by: Alexander Shiyan --- arch/arm/mach-imx/include/mach/iomux-mx51.h | 48 +- 1 files changed, 24 insertions(+), 24 deletions(-) diff --git a/arch/arm/mach-imx/include/mach/iomux-mx51.h b/arch/arm/mach-imx/include/mach/iomux-mx51.h index c7f5169..36c8989 10

[PATCH 2/2] ARM: initial ConnectCore® i.MX51 board support

2012-06-14 Thread Alexander Shiyan
This patch adds support for ConnectCore® i.MX51 board from Digi International. A separate option includes support for debugging board for this module. Some code taken from the bootloader U-Boot and patch from Digi. Functional of Ethernet not tested yet. barebox 2012.05.0-00316-g4024d9c-dirty #0 We

Re: add 'poweroff' support

2012-06-14 Thread Sascha Hauer
On Wed, Jun 13, 2012 at 11:43:06PM +0400, Antony Pavlov wrote: > This patch series adds the ability to turn power off on > Ritmix RZX-50 game console. > > The Ritmix RZX-50 game console is a battery-powered device. > So I you keep it running barebox it can to use up the battery > in 14-16 hours. S

Re: [PATCH 1/2] i.MX51: Synchronize iomux header file from kernel

2012-06-14 Thread Sascha Hauer
On Thu, Jun 14, 2012 at 10:59:37AM +0400, Alexander Shiyan wrote: > > Signed-off-by: Alexander Shiyan Applied to -next. Thanks Sascha > --- > arch/arm/mach-imx/include/mach/iomux-mx51.h | 48 +- > 1 files changed, 24 insertions(+), 24 deletions(-) > > diff --git a/

Re: [PATCH] commands: add msleep command

2012-06-14 Thread Sascha Hauer
On Wed, Jun 13, 2012 at 12:01:50PM +0200, Steffen Trumtrar wrote: > Add a command to sleep for n milliseconds. > > Signed-off-by: Steffen Trumtrar Applied, thanks Sascha > --- > commands/Kconfig |4 > commands/Makefile |1 + > commands/msleep.c | 40 +++

Re: [PATCH 5/8] arm: mxs: add functions to get/set vddio

2012-06-14 Thread Sascha Hauer
On Tue, May 08, 2012 at 09:53:58AM +0200, Wolfram Sang wrote: > Needed for ocotp write. > > + > +int imx_set_vddio(int new_voltage) You should add the unit to the parameter name, i.e. new_voltage_uv Sascha -- Pengutronix e.K. | | Industria

Re: [PATCH 8/8] arm: mxs: add write support for ocotp

2012-06-14 Thread Sascha Hauer
On Tue, May 08, 2012 at 09:54:01AM +0200, Wolfram Sang wrote: > > +static ssize_t mxs_ocotp_cdev_write(struct cdev *cdev, const void *buf, > size_t count, > + ulong offset, ulong flags) > +{ > + struct ocotp_priv *priv = cdev->priv; > + void __iomem *base = priv->base; > +

[PATCH V2] arm: mxs: get MAC from OCOTP for MX28EVK

2012-06-14 Thread Wolfram Sang
Signed-off-by: Wolfram Sang --- V2: rewrote code according to Sascha's style guide ;) arch/arm/boards/freescale-mx28-evk/mx28-evk.c | 30 +++-- arch/arm/mach-mxs/Kconfig |1 + 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/arch/arm/

[PATCH V2 5/8] arm: mxs: add functions to get/set vddio

2012-06-14 Thread Wolfram Sang
Needed for ocotp write. Signed-off-by: Wolfram Sang --- arch/arm/mach-mxs/include/mach/power.h |2 ++ arch/arm/mach-mxs/power.c | 38 2 files changed, 40 insertions(+) diff --git a/arch/arm/mach-mxs/include/mach/power.h b/arch/arm/mach-mxs/in

[PATCH V2 0/8] arm: mxs: add ocotp write support

2012-06-14 Thread Wolfram Sang
Because OCOTP write needs to change HCLK and VDDIO, some preparations are needed before we can finally write to OCOTP. Tested with a custom board and a TX28. V2: Patch 5/8: - add unit "uV" to function parameter name Patch 8/8: - get rid of #ifdefs by using IS_ENABLED - only populate wr

[PATCH V2 2/8] arm: mxs: add imx_set_hclk

2012-06-14 Thread Wolfram Sang
needed for writing the One-Time-Prgorammable Signed-off-by: Wolfram Sang --- arch/arm/mach-mxs/include/mach/clock-imx23.h |1 + arch/arm/mach-mxs/include/mach/clock-imx28.h |1 + arch/arm/mach-mxs/speed-imx23.c | 21 + arch/arm/mach-mxs/speed-imx28.c

[PATCH V2 1/8] arm: mxs: make get_hclk result useable for upcoming set_hclk

2012-06-14 Thread Wolfram Sang
To avoid getting a different divider due to rounding errors when using set_hclk later, use DIV_ROUND_UP for the returned value. Signed-off-by: Wolfram Sang --- arch/arm/mach-mxs/speed-imx23.c |5 +++-- arch/arm/mach-mxs/speed-imx28.c |5 +++-- 2 files changed, 6 insertions(+), 4 deletion

[PATCH V2 4/8] arm: mxs: add POWER_BASE for MX28, too

2012-06-14 Thread Wolfram Sang
Signed-off-by: Wolfram Sang --- arch/arm/mach-mxs/include/mach/imx28-regs.h |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-mxs/include/mach/imx28-regs.h b/arch/arm/mach-mxs/include/mach/imx28-regs.h index 9a2052c..23ac306 100644 --- a/arch/arm/mach-mxs/include/mach/imx28-re

[PATCH V2 3/8] arm: mxs: refactor access to power domain

2012-06-14 Thread Wolfram Sang
usbphy initializaion needs to access the power supply and has this embedded. Refactor to a seperate power.c, since we need other accesses in the future. Signed-off-by: Wolfram Sang --- arch/arm/mach-mxs/Makefile |2 +- arch/arm/mach-mxs/include/mach/power.h |6 + arch/arm

[PATCH V2 7/8] arm: mxs: use consistent naming for #defines for ocotp

2012-06-14 Thread Wolfram Sang
Will the code more readable, especially since future additions are planned. Signed-off-by: Wolfram Sang --- arch/arm/mach-mxs/ocotp.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-mxs/ocotp.c b/arch/arm/mach-mxs/ocotp.c index 7f9107a..f18d0

[PATCH V2 6/8] arm: mxs: refactor timeout routine for ocotp

2012-06-14 Thread Wolfram Sang
Let's keep the timeout routine in a central place. We will need it more often when we add write support. Signed-off-by: Wolfram Sang --- arch/arm/mach-mxs/ocotp.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-mxs/ocotp.c b/arch/a

[PATCH V2 8/8] arm: mxs: add write support for ocotp

2012-06-14 Thread Wolfram Sang
Since we now can change HCLK and VDDIO, we can now support writing to OCOTP. Writing is done via a special data register. This is u32, so we need to fill a temporary buffer when offset or count is not aligned. The write is also protected by a special device variable. Signed-off-by: Wolfram Sang -

Re: [PATCH V2] arm: mxs: get MAC from OCOTP for MX28EVK

2012-06-14 Thread Sascha Hauer
On Thu, Jun 14, 2012 at 03:13:03PM +0200, Wolfram Sang wrote: > Signed-off-by: Wolfram Sang > --- > > V2: rewrote code according to Sascha's style guide ;) > > arch/arm/boards/freescale-mx28-evk/mx28-evk.c | 30 > +++-- > arch/arm/mach-mxs/Kconfig |

Re: [PATCH V2] arm: mxs: get MAC from OCOTP for MX28EVK

2012-06-14 Thread Wolfram Sang
On Thu, Jun 14, 2012 at 04:10:16PM +0200, Sascha Hauer wrote: > On Thu, Jun 14, 2012 at 03:13:03PM +0200, Wolfram Sang wrote: > > Signed-off-by: Wolfram Sang > > --- > > > > V2: rewrote code according to Sascha's style guide ;) > > > > arch/arm/boards/freescale-mx28-evk/mx28-evk.c | 30 > > +