Hi!
> This is not yet a complete replacement:
>
> - We use the legacy NAND driver instead of the newly backported driver
> that Linux uses with the hardware, presumably without issues
>
> - OHCI hangs during probe, so it's disabled for now
>
> - A barebox with comparative functionalit
have to go.
Signed-off-by: Wolfram Sang
---
arch/arm/configs/usb_a9g20_defconfig | 15 ++-
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/arch/arm/configs/usb_a9g20_defconfig
b/arch/arm/configs/usb_a9g20_defconfig
index 20b1f27b9e..56f78ba7a8 100644
--- a/arch/arm
Here are the remaining two patches to make a (for me) useable barebox
with the defconfig and no other patches. Comments welcome!
Wolfram Sang (2):
ARM: at91: usb-a926x: remove nand partitions from config
defconfigs: usb-a9g20: update to a working version
.../boards/usb-a926x/defaultenv-usb
, remove it from the config file.
Signed-off-by: Wolfram Sang
---
Or shall I rather remove it from the board file?
arch/arm/boards/usb-a926x/defaultenv-usb-a926x/config | 4
1 file changed, 4 deletions(-)
diff --git a/arch/arm/boards/usb-a926x/defaultenv-usb-a926x/config
b/arch/arm/boards/usb
Hi Sascha,
> Anyway, what's really missing is DT support. I scribbled a patch to get
> you started in case you are motivated. Basically it's: Compile in the
> device tree, throw away all the device registration from the board code,
> see where it gets you and fix the fallout ;)
So, I tried this p
> > I accidently erased it, so my journey for unbricking the device began.
> > at91bootstrap, openocd, barebox - they all once supported A9G20, but
> > nowadays all of them were broken. Well, I fixed openocd and barebox
> > mostly so far, the bootstrap is still the missing piece.
>
> You may be h
Hi,
> > It is a direct replacement for at91bootstrap and loads barebox as the
> > next step bootloader.
> The above is entirely correct - as the barebox variant supports booting from
> SD card only, where at91bootstrap support additional boot sources.
So, I quickly built the bootstrap for A9263 a
Hi Sascha!
> Nice to hear from you here ;)
Yeah, it has been only 10 years... :)
> I have no idea how the SDRAM setup is done on the USB-A9G20. There seems
> to be SDRAM setup code for the USB-A9263, but not for the USB-A9G20. Is
> there some AT91Bootstrap required?
Yes. There is a bootstrap re
Hi Sam,
> It is only a few weeks ago I argued that there was no users of the older
> at91sam* boards, and then you prove me wrong here.
At your service ;)
> I will try to remember that you may be able to test should someone
> decide to move the barebox support for qil_a9g20 to DT and add PBL
> s
54bcca always populates 'ecc_mode' but forgot to remove the
code which overwrote the previously hardcoded 'NAND_ECC_SOFT'
when needed. This is obsolete now.
Fixes: 54bcca ("mtd: atmel_nand: retrieve ecc_mode from pdata")
Signed-off-by: Wolfram Sang
---
d
Fixes "WARNING: Unsupported ECC algorithm!" on my USB-A9G20.
Fixes: b6bcd96de5 ("mtd: nand: Update to Linux-5.9")
Signed-off-by: Wolfram Sang
---
Or maybe we should make HAMMING the default fallback in nand_base.c?
drivers/mtd/nand/atmel/legacy.c | 4
1 file c
While trying to unbrick my Calao USB-A9G20, barebox couldn't read the
NAND BB tables unlike the binary-only barebox from 2013. The first two
patches fix that. The third one is a cleanup.
Happy hacking!
Wolfram Sang (3):
mtd: nand: atmel: legacy: add 'algo' to use
mtd: nand
193 ("mtd: atmel_nand: Add per board ECC setup")
Signed-off-by: Wolfram Sang
---
The other option is to revert babffbb193. I don't see any user. The code
was obviously not enough tested as well.
drivers/mtd/nand/atmel/legacy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion
Signed-off-by: Wolfram Sang
---
commands/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commands/Kconfig b/commands/Kconfig
index ec15f4e543..27769950d9 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -1383,7 +1383,7 @@ config CMD_EDIT
depends on
Signed-off-by: Wolfram Sang
---
commands/Kconfig | 4 +++-
commands/nand.c | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/commands/Kconfig b/commands/Kconfig
index 27769950d9..76dfca2dfd 100644
--- a/commands/Kconfig
+++ b/commands/Kconfig
@@ -1950,12 +1950,14 @@ config
Imported from mtd-utils and stripped down to needed functionality.
Based on an older version (1.4.5.) since the newer do use MEMWRITE
interfaces which we don't have in barebox (yet).
Signed-off-by: Wolfram Sang
---
commands/Kconfig |8 +
commands/Makefile|1 +
com
Based on mtd-utils and stripped down to needed functionality and
reworked to barebox interfaces.
Signed-off-by: Wolfram Sang
---
include/mtd/libmtd.h | 149
lib/Kconfig |3 +
lib/Makefile |1 +
lib/libmtd.c | 368
Imported from mtd-utils and stripped down to needed functionality.
Signed-off-by: Wolfram Sang
---
include/mtd/libubigen.h | 182 +++
lib/Kconfig |3 +
lib/Makefile|1 +
lib/libubigen.c | 312
Imported from mtd-utils and stripped down to needed functionality.
Add prefix to functions so we have a clean namespace.
Signed-off-by: Wolfram Sang
---
include/mtd/libscan.h | 101 +++
lib/Kconfig |3 +
lib/Makefile |1 +
lib/libscan.c
Needed for ubiformat, we are interested in image_seq especially.
Signed-off-by: Wolfram Sang
---
include/mtd/ubi-media.h | 55 ++-
1 file changed, 30 insertions(+), 25 deletions(-)
diff --git a/include/mtd/ubi-media.h b/include/mtd/ubi-media.h
mtd-utils have a few macros for printouts. Provide the wrappers to make
it easier to import them.
Signed-off-by: Wolfram Sang
---
include/mtd/utils.h | 47 +++
1 file changed, 47 insertions(+)
create mode 100644 include/mtd/utils.h
diff --git a
something
* add '-y' to do something in dubious situations :)
* quite some bugfixes
(* verified subpage-size handling, found a bug in nand_mxs driver)
Please test, comment, apply...
Thanks,
Wolfram
Wolfram Sang (11):
mtd: drop custom is_power_of_2()
lib: misc: add '
Since this is the 'official' notation, we should support it.
Signed-off-by: Wolfram Sang
---
lib/misc.c |5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/misc.c b/lib/misc.c
index 1a08502..0f3eb9a 100644
--- a/lib/misc.c
+++ b/lib/misc.c
@@ -47,8 +47,11 @
We have proper version in log2.h these days.
Signed-off-by: Wolfram Sang
---
drivers/mtd/ubi/ubi-barebox.h |5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/mtd/ubi/ubi-barebox.h b/drivers/mtd/ubi/ubi-barebox.h
index 72f29a6..7574607 100644
--- a/drivers/mtd/ubi
Copy over the latest version from u-boot which handles bigger sizes now
and does arithmetic with shifts instead of divisions.
Signed-off-by: Wolfram Sang
---
include/common.h |2 +-
lib/display_options.c | 47 +++
2 files changed, 32
To make that, we need to shift mtd_erase before mtd_ioctl.
ubi-utils need that, especially ubiformat.
Signed-off-by: Wolfram Sang
---
drivers/mtd/core.c | 68 +++-
fs/devfs-core.c|3 ++-
2 files changed, 37 insertions(+), 34 deletions
It is not the chip, but this controller which cannot do subpage writes.
So, make sure we add the flag at the proper place, so it doesn't get
overwritten by flash detection anymore.
Signed-off-by: Wolfram Sang
---
drivers/mtd/nand/nand_mxs.c | 12 +---
1 file changed, 9 inser
This is needed for a later command to scrub away bad blocks. ONLY USE THIS
FEATURE WHEN YOU KNOW WHAT YOU ARE DOING!
Signed-off-by: Wolfram Sang
---
drivers/mtd/core.c|3 ++-
drivers/mtd/nand/nand_write.c | 37 -
include/linux/mtd/mtd-abi.h
Allows erasing a whole NAND device including the bad blocks. Only meant
for development where one might accidently overwrite real bad block
information. Make sure you understood the help text!
Signed-off-by: Wolfram Sang
---
commands/Kconfig|8 +
commands/flash.c
to be
erased (which may succeed or not). This is really *not recommended*, except for
certain development use cases!
Wolfram Sang (2):
mtd: nand: add flag to allow erasing of bad blocks
commands: add scrub
commands/Kconfig |8 +
commands/flash.c | 68
Signed-off-by: Wolfram Sang
---
commands/flash.c |4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/commands/flash.c b/commands/flash.c
index b1673de..d22d6a0 100644
--- a/commands/flash.c
+++ b/commands/flash.c
@@ -54,7 +54,7 @@ static int do_flerase(int argc, char *argv
On Thu, Dec 13, 2012 at 04:45:54PM +0100, Wolfram Sang wrote:
> Allows erasing a whole NAND device including the bad blocks. Only meant
> for development where one might accidently overwrite real bad block
> information.
>
> Signed-off-by: Wolfram Sang
Ooops, wrong one. Please
Allows erasing a whole NAND device including the bad blocks. Only meant
for development where one might accidently overwrite real bad block
information.
Signed-off-by: Wolfram Sang
---
commands/Kconfig|8 +
commands/flash.c| 68
also and completely get rif of ubiutils-common? What
would be a proper name for the function, printull_suffix? Or
ulltostr_suffix? :)
--
Pengutronix e.K. | Wolfram Sang|
Industrial Linux Solutions | http://www.pengutronix.de/ |
signatu
all addresses of the FSF.
> The above is outdated anyway.
Dropped it from the whole series.
--
Pengutronix e.K. | Wolfram Sang|
Industrial Linux Solutions | http://www.pengutronix.de/ |
signature.asc
Des
On Tue, Dec 11, 2012 at 10:22:05AM +0100, Sascha Hauer wrote:
> On Mon, Dec 10, 2012 at 09:14:06AM +0100, Wolfram Sang wrote:
> > Will need this later for ubiformat.
> >
> > Signed-off-by: Wolfram Sang
>
> We already have it in a public place: include/linux/log2.h
..
Imported from mtd-utils and stripped down to needed functionality.
Based on an older version (1.4.5.) since the newer do use MEMWRITE
interfaces which we don't have in barebox (yet).
Signed-off-by: Wolfram Sang
---
commands/Kconfig |9 +
commands/Makefile|1 +
com
We have two versions in the tree. Use the newer one, and put it into the
mtd directory while we are at it.
Signed-off-by: Wolfram Sang
---
commands/ubi.c |2 +-
drivers/mtd/ubi/ubi.h|3 +-
{drivers/mtd/ubi => include/mtd}/ubi-medi
Based on mtd-utils and stripped down to needed functionality and
reworked to barebox interfaces.
Signed-off-by: Wolfram Sang
---
include/mtd/libmtd.h | 154 +
lib/Kconfig |3 +
lib/Makefile |1 +
lib/libmtd.c | 371
Imported from mtd-utils and stripped down to needed functionality.
Add prefix to functions so we have a clean namespace.
Signed-off-by: Wolfram Sang
---
include/mtd/libscan.h | 105 +++
lib/Kconfig |3 +
lib/Makefile |1 +
lib/libscan.c
Imported from mtd-utils and stripped down to needed functionality for
ubiformat.
Signed-off-by: Wolfram Sang
---
include/mtd/ubiutils-common.h | 26 +
lib/Kconfig |3 +
lib/Makefile |1 +
lib/ubiutils-common.c | 122
Imported from mtd-utils and stripped down to needed functionality.
Signed-off-by: Wolfram Sang
---
include/mtd/libubigen.h | 186
lib/Kconfig |3 +
lib/Makefile|1 +
lib/libubigen.c | 316
To make that, we need to shift mtd_erase before mtd_ioctl.
ubi-utils need that, especially ubiformat.
Signed-off-by: Wolfram Sang
---
drivers/mtd/core.c | 68 +++-
fs/devfs-core.c|3 ++-
2 files changed, 37 insertions(+), 34 deletions
Hi,
here is the ubiformat series rebased against v2012.12.0. All comments I have
received have been addressed. The command has been tested on a MX35 based
board. Please help testing.
Regards,
Wolfram Sang
Wolfram Sang (10):
mtd: move is_power_of_2() to a public place
ubi: consolidate
Needed for ubiformat, we are interested in image_seq especially.
Signed-off-by: Wolfram Sang
---
include/mtd/ubi-media.h | 57 +++
1 file changed, 33 insertions(+), 24 deletions(-)
diff --git a/include/mtd/ubi-media.h b/include/mtd/ubi-media.h
Will need this later for ubiformat.
Signed-off-by: Wolfram Sang
---
drivers/mtd/ubi/ubi-barebox.h |5 +
include/mtd/utils.h | 25 +
2 files changed, 26 insertions(+), 4 deletions(-)
create mode 100644 include/mtd/utils.h
diff --git a/drivers/mtd/ubi
mtd-utils have a few macros for printouts. Provide the wrappers to make
it easier to import them.
Signed-off-by: Wolfram Sang
---
include/mtd/utils.h | 27 +++
1 file changed, 27 insertions(+)
diff --git a/include/mtd/utils.h b/include/mtd/utils.h
index 229fb34
012.12.0, soon.
Thanks,
Wolfram
--
Pengutronix e.K. | Wolfram Sang|
Industrial Linux Solutions | http://www.pengutronix.de/ |
signature.asc
Description: Digital signature
___
barebox mailing l
On Sat, Oct 27, 2012 at 10:11:48PM +0200, Jean-Christophe PLAGNIOL-VILLARD
wrote:
> On 12:16 Fri 26 Oct , Wolfram Sang wrote:
> > Based on mtd-utils and stripped down to needed functionality and
> > reworked to barebox interfaces.
> based on which verison of libmtd?
1.4.5
MEMERASE:
> > + ret = mtd_erase(cdev, ei->length, ei->start + cdev->offset);
> > + break;
>
> Please check this compiles with CONFIG_MTD_WRITE disabled.
It does, since I move mtd_erase to the front. The upper block and
mtd_erase are both protected by
already before sending commands to NAND.
Signed-off-by: Wolfram Sang
---
drivers/mtd/nand/nand_mxs.c | 13 ++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/nand/nand_mxs.c b/drivers/mtd/nand/nand_mxs.c
index 975a44f..c4509d3 100644
--- a/drivers/mtd/nand
On Wed, Dec 05, 2012 at 07:37:32PM +0100, Sascha Hauer wrote:
> On Wed, Dec 05, 2012 at 03:53:53PM +0100, Wolfram Sang wrote:
> > It could happen (1 out of 100 times) that NAND did not start up
> > correctly after warm rebooting, so barebox could not find its
> > environment
already before sending commands to NAND.
Signed-off-by: Wolfram Sang
---
drivers/mtd/nand/nand_mxs.c | 13 ++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/nand/nand_mxs.c b/drivers/mtd/nand/nand_mxs.c
index 975a44f..c4509d3 100644
--- a/drivers/mtd/nand
Pinmuxing was wrong and no GPMI device was created.
Signed-off-by: Wolfram Sang
---
arch/arm/boards/karo-tx28/tx28.c |6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boards/karo-tx28/tx28.c b/arch/arm/boards/karo-tx28/tx28.c
index a62cb82..6e8da15 100644
The rate is not constant as the comment said, but is hclk. The result
was that MII clock was often calculated wrong.
Reported-by: Michael Grzeschik
Signed-off-by: Wolfram Sang
---
arch/arm/mach-mxs/speed-imx28.c |3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/arm
oper error messages.
Yet, I also think there is a line somewhere to not state too obvious
things?
--
Pengutronix e.K. | Wolfram Sang|
Industrial Linux Solutions | http://www.pengutronix.de/
On Wed, Oct 31, 2012 at 09:48:31AM +0100, Juergen Beisert wrote:
> Wolfram Sang wrote:
> > On Wed, Oct 31, 2012 at 09:29:56AM +0100, Juergen Beisert wrote:
> > > Wolfram Sang wrote:
> > > > Signed-off-by: Wolfram Sang
> > > > ---
> > > > driv
On Wed, Oct 31, 2012 at 09:29:56AM +0100, Juergen Beisert wrote:
> Wolfram Sang wrote:
> > Signed-off-by: Wolfram Sang
> > ---
> > drivers/dma/apbh_dma.c |4 +++-
> > 1 file changed, 3 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/dma/apbh_d
r:
Reported-by: Wolfram Sang
--
Pengutronix e.K. | Wolfram Sang|
Industrial Linux Solutions | http://www.pengutronix.de/ |
signature.asc
Description: Digital signature
___
barebox maili
While flash layout may be custom, at least the nand0-device is good to
have.
Signed-off-by: Wolfram Sang
---
arch/arm/boards/freescale-mx28-evk/mx28-evk.c | 20
1 file changed, 20 insertions(+)
diff --git a/arch/arm/boards/freescale-mx28-evk/mx28-evk.c
b/arch/arm/boards
Took the mx28evk defconfig, activated DMA and NAND, used savedefconfig;
this patch is the result.
Signed-off-by: Wolfram Sang
---
arch/arm/configs/imx28evk_defconfig | 18 +-
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/arch/arm/configs/imx28evk_defconfig
b
Signed-off-by: Wolfram Sang
---
drivers/dma/apbh_dma.c |4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/dma/apbh_dma.c b/drivers/dma/apbh_dma.c
index 363878f..d30b8fb 100644
--- a/drivers/dma/apbh_dma.c
+++ b/drivers/dma/apbh_dma.c
@@ -555,7 +555,9 @@ int
Signed-off-by: Wolfram Sang
---
drivers/mtd/nand/nand_mxs.c | 12 +---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/nand/nand_mxs.c b/drivers/mtd/nand/nand_mxs.c
index 8aeb14d..906d695 100644
--- a/drivers/mtd/nand/nand_mxs.c
+++ b/drivers/mtd/nand
These routines can fail, add support for that. Also, put in missing
copyright headers.
Signed-off-by: Wolfram Sang
---
arch/arm/mach-mxs/common.c | 39 +++
1 file changed, 35 insertions(+), 4 deletions(-)
diff --git a/arch/arm/mach-mxs/common.c b/arch/arm
Imported from mtd-utils and stripped down to needed functionality.
Based on an older version (1.4.5.) since the newer do use MEMWRITE
interfaces which we don't have in barebox (yet).
Signed-off-by: Wolfram Sang
---
commands/Kconfig |9 +
commands/Makefile|1 +
com
We have two versions in the tree. Use the newer one, and put it into the
mtd directory while we are at it.
Signed-off-by: Wolfram Sang
---
commands/ubi.c |2 +-
drivers/mtd/ubi/ubi.h|3 +-
{drivers/mtd/ubi => include/mtd}/ubi-medi
Imported from mtd-utils and stripped down to needed functionality.
Signed-off-by: Wolfram Sang
---
include/mtd/libubigen.h | 186
lib/Kconfig |3 +
lib/Makefile|1 +
lib/libubigen.c | 316
Based on mtd-utils and stripped down to needed functionality and
reworked to barebox interfaces.
Signed-off-by: Wolfram Sang
---
include/mtd/libmtd.h | 154 +
lib/Kconfig |3 +
lib/Makefile |1 +
lib/libmtd.c | 371
Needed for ubiformat, we are interested in image_seq especially.
Signed-off-by: Wolfram Sang
---
include/mtd/ubi-media.h | 57 +++
1 file changed, 33 insertions(+), 24 deletions(-)
diff --git a/include/mtd/ubi-media.h b/include/mtd/ubi-media.h
To make that, we need to shift mtd_erase before mtd_ioctl.
ubi-utils need that, especially ubiformat.
Signed-off-by: Wolfram Sang
---
drivers/mtd/core.c | 68 +++-
fs/devfs-core.c|3 ++-
2 files changed, 37 insertions(+), 34 deletions
mtd-utils have a few macros for printouts. Provide the wrappers to make
it easier to import them.
Signed-off-by: Wolfram Sang
---
include/mtd/utils.h | 27 +++
1 file changed, 27 insertions(+)
diff --git a/include/mtd/utils.h b/include/mtd/utils.h
index 229fb34
ach and if people
are interested in testing, too, this is very much appreciated!
Kind regards,
Wolfram
Wolfram Sang (10):
mtd: move is_power_of_2() to a public place
ubi: consolidate ubi-media.h
ubi: bump ubi-media.h to newest version
devfs & mtd: add MEMERASE ioctl support
mtd
Will need this later for ubiformat.
Signed-off-by: Wolfram Sang
---
drivers/mtd/ubi/ubi-barebox.h |5 +
include/mtd/utils.h | 25 +
2 files changed, 26 insertions(+), 4 deletions(-)
create mode 100644 include/mtd/utils.h
diff --git a/drivers/mtd/ubi
Imported from mtd-utils and stripped down to needed functionality.
Add prefix to functions so we have a clean namespace.
Signed-off-by: Wolfram Sang
---
include/mtd/libscan.h | 105 +++
lib/Kconfig |3 +
lib/Makefile |1 +
lib/libscan.c
Imported from mtd-utils and stripped down to needed functionality for
ubiformat.
Signed-off-by: Wolfram Sang
---
include/mtd/ubiutils-common.h | 26 +
lib/Kconfig |3 +
lib/Makefile |1 +
lib/ubiutils-common.c | 122
Signed-off-by: Wolfram Sang
---
drivers/mtd/ubi/build.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index f2c8923..1ea1209 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -701,7 +701,7 @@ static
CDPATH has sideeffects when generating barebox_default_env.h (printing
the directory name into the header file), causing a build failure.
Disable it for the build.
Signed-off-by: Wolfram Sang
---
Makefile |3 +++
1 file changed, 3 insertions(+)
diff --git a/Makefile b/Makefile
index
On Tue, Oct 23, 2012 at 09:04:55AM +0200, Sascha Hauer wrote:
> On Mon, Oct 22, 2012 at 07:14:08PM +0200, Wolfram Sang wrote:
> > Depending on the user's settings (CDPATH), 'cd' may print out the
> > directory which was changed to. This causes broken barebox_def
Got this when compiling sandbox on a 64-bit system:
drivers/mtd/ubi/cdev.c: In function ‘ubi_volume_cdev_read’:
drivers/mtd/ubi/cdev.c:26:2: warning: format ‘%d’ expects argument of type
‘int’, but argument 3 has type ‘size_t’ [-Wformat]
Signed-off-by: Wolfram Sang
---
drivers/mtd/ubi/cdev.c
Depending on the user's settings (CDPATH), 'cd' may print out the
directory which was changed to. This causes broken barebox_default_env.h
to be generated. Ignore the cd printout.
Signed-off-by: Wolfram Sang
---
common/Makefile |2 +-
1 file changed, 1 insertion(+), 1 de
> I wonder if it's worth to have this as a general callback in the i2c
> layer.
There kernel has a framework in the making. I still need to give more
review to it:
http://article.gmane.org/gmane.linux.drivers.i2c/12558
--
Pengutronix e.K. | W
Currently, the timeout when waiting for packages is smaller than the
timeout communicated to the TFTP server for retransmitting. Make sure we
wait at least for two retransmissions before giving up.
Signed-off-by: Wolfram Sang
---
net/tftp.c |3 ++-
1 file changed, 2 insertions(+), 1
For some reason, the mxs-boards missed some length paramters when adding
devices. This made reading from ocotp crash in the current version.
Provide missing lenghts, use a consistent format and fix the length for
the LCDIF.
Signed-off-by: Wolfram Sang
---
arch/arm/boards/freescale-mx28-evk/mx28
If a second bootstream was used, there was a sanity check which was not
only wrong (using erasesize instead of writesize) but also superfluous
(we got the block from an existing cdev, so it must be in the flash
range). Simply remove it to make bcb work as expected.
Signed-off-by: Wolfram Sang
miidev_wait_aneg() polled the wrong bit, so link detection did fail on
boards where the PHY had to come out of a powerdown mode.
Signed-off-by: Wolfram Sang
---
drivers/net/miidev.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/miidev.c b/drivers/net
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
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
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
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
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
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
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
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
y populate write-function if really needed
Wolfram Sang (8):
arm: mxs: make get_hclk result useable for upcoming set_hclk
arm: mxs: add imx_set_hclk
arm: mxs: refactor access to power domain
arm: mxs: add POWER_BASE for MX28, too
arm: mxs: add functions to get/set vddio
arm: mxs: refact
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
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/arc
Signed-off-by: Wolfram Sang
---
arch/arm/boards/freescale-mx28-evk/mx28-evk.c | 25 +++--
arch/arm/mach-mxs/Kconfig |1 +
2 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boards/freescale-mx28-evk/mx28-evk.c
b/arch/arm/boards
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
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
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
1 - 100 of 138 matches
Mail list logo