summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* ARM i.MX/watchdog: Make i.MX watchdog driver the reset source on i.MXSascha Hauer2012-10-055-45/+33
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX: Add watchdog devices to SoCsSascha Hauer2012-10-059-0/+9
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* watchdog: Add i.MX watchdog supportSascha Hauer2012-10-053-0/+187
| | | | | | This adds a driver for the watchdog found on i.MX1-i.MX6. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM pbl: actually create cached mappings in the decompressorSascha Hauer2012-10-041-4/+3
| | | | | | | | | We called create_sections with 4096MB as size argument, but create_sections expected the argument in bytes, so create sections was completely optimized away due to the size >>= 20. This patch changes the size argument to be in megabytes and adjusts map_cachable to pass the argument in megabytes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM pbl: Provide a dummy error function for the decompressorSascha Hauer2012-10-041-1/+6
| | | | | | | | | We can't do anything useful in the error function, so we just hang. This has the advantage that at least when a JTAG debugger is connected we can see what happens. Otherwise the code just jumps to NULL in case of an error. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i2c i.MX: fixup clock support for powerpcSascha Hauer2012-10-041-14/+1
| | | | | | | This produced a warning on powerpc since the conversion to common clk support on i.MX. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* calao: at91 qil/tny/usb auto detect the phy addrJean-Christophe PLAGNIOL-VILLARD2012-10-043-3/+3
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* gui: blit the surface on demandJean-Christophe PLAGNIOL-VILLARD2012-10-045-6/+11
| | | | | | | | Do not blit the surface everytime we write an image As we want to able to render multiple image this will cause 1 blit per image; Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* graphic_utils: introduce common fb_open/closeJean-Christophe PLAGNIOL-VILLARD2012-10-046-51/+69
| | | | | | | To open, memmap, get the fb_info and if needed allocate the offscreen buffer Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* gui: introduce screen and surface to factorize and simplify codeJean-Christophe PLAGNIOL-VILLARD2012-10-047-72/+113
| | | | | | | | | | Instead of passing hundreds of parameter, just pass the right structure. struct screen represent the screen with a without double buffering. struct surface represent the part of the screen we want to render. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* graphic_utils: pass image so we can draw only the visible part of the imageJean-Christophe PLAGNIOL-VILLARD2012-10-043-5/+9
| | | | | | | This is needed if the image is bigger than the screen. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* gui: move gui file to include/gui and lib/guiJean-Christophe PLAGNIOL-VILLARD2012-10-0422-69/+95
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* image_renderer: fix size typeJean-Christophe PLAGNIOL-VILLARD2012-10-041-1/+1
| | | | | | | | | | /opt/work/barebox/lib/image_renderer.c: In function 'image_renderer_open': /opt/work/barebox/lib/image_renderer.c:37:2: warning: passing argument 2 of 'read_file' from incompatible pointer type [enabled by default] In file included from /opt/work/barebox/lib/image_renderer.c:11:0: /opt/work/barebox/include/fs.h:167:7: note: expected 'size_t *' but argument is of type 'int *' Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net/designware: fix phylib supportJean-Christophe PLAGNIOL-VILLARD2012-10-041-1/+2
| | | | | | | | | | | | | | /opt/work/barebox/drivers/net/designware.c: In function 'dwc_update_linkspeed': /opt/work/barebox/drivers/net/designware.c:234:9: error: 'mac_p' undeclared (first use in this function) /opt/work/barebox/drivers/net/designware.c:234:9: note: each undeclared identifier is reported only once for each function it appears in /opt/work/barebox/drivers/net/designware.c: In function 'dwc_ether_open': /opt/work/barebox/drivers/net/designware.c:254:6: error: too few arguments to function 'phy_device_connect' /opt/work/barebox/include/linux/phy.h:252:5: note: declared here /opt/work/barebox/drivers/net/designware.c: At top level: /opt/work/barebox/drivers/net/designware.c:226:13: warning: 'dwc_update_linkspeed' defined but not used Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net/designware: fix phy_addr type to intJean-Christophe PLAGNIOL-VILLARD2012-10-041-1/+1
| | | | | | | so we can pass -1 for auto detect Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net/designware: update version display to print user ID and Synosys IDJean-Christophe PLAGNIOL-VILLARD2012-10-041-1/+10
| | | | | | | So we can check it with the kernel one Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* amba/bus: add missing bus_registerJean-Christophe PLAGNIOL-VILLARD2012-10-041-0/+7
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net mdio_bus: Add missing bus_registerSascha Hauer2012-10-041-2/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/fixes'Sascha Hauer2012-10-043-5/+8
|\
| * ARM i.MX51 babbage: Add delay after phy resetSascha Hauer2012-10-041-1/+3
| | | | | | | | | | | | | | Since we have phylib the phy won't be detected after poweron. It seems the phy needs some time after reset. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * commands/mount: fix typo and wording in help messageJan Luebbe2012-10-041-1/+1
| | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM i.MX clocksource: fix timer source selectionSascha Hauer2012-10-041-3/+4
| | | | | | | | | | | | | | | | | | - The i.MX1 timer does not have IPG clock as source, so rename the define accordingly - for the i.MX31 timer we want to use the per clock, not the ipg clock. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/imx-clk'Sascha Hauer2012-10-04106-3093/+4479
|\ \
| * | ARM i.MX: Remove old clock supportSascha Hauer2012-10-0419-2158/+10
| | | | | | | | | | | | | | | | | | | | | The old clock support is now unused. Remove it. The former i.MX clko command is superseeded by generic clock manipulation commands. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | video i.MX IPU: Switch to clock supportSascha Hauer2012-10-041-2/+8
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | video i.MX: Switch to clock supportSascha Hauer2012-10-041-1/+8
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | i2c i.MX: Switch to clock supportSascha Hauer2012-10-041-2/+21
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mci i.MX: Switch to clock supportSascha Hauer2012-10-041-3/+12
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mci i.MX ESDHC: Switch to clock supportSascha Hauer2012-10-041-3/+12
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM i.MX: Switch clocksource to clk_getSascha Hauer2012-10-041-2/+15
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | spi i.MX: Switch to clk supportSascha Hauer2012-10-041-2/+19
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | serial i.MX: Switch to clk supportSascha Hauer2012-10-041-5/+20
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net fec: Switch to clk supportSascha Hauer2012-10-042-3/+32
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM i.MX35: Switch to common clkSascha Hauer2012-10-043-2/+189
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM i.MX21: Switch to common clkSascha Hauer2012-10-043-1/+121
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM i.MX6: Switch to common clkSascha Hauer2012-10-043-2/+309
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM i.MX31: Switch to common clkSascha Hauer2012-10-043-2/+136
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM i.MX1: Switch to common clk supportSascha Hauer2012-10-043-2/+111
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM i.MX5: Switch to common clk supportSascha Hauer2012-10-044-4/+304
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM i.MX25: Switch to common clk supportSascha Hauer2012-10-043-2/+157
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM i.MX27: implement clk supportSascha Hauer2012-10-044-2/+160
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM i.MX: initial clk supportSascha Hauer2012-10-047-0/+866
| | | | | | | | | | | | | | | | | | | | | This adds the basic i.MX common clk support and some pll and pfd drivers. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | commands: Add clk commandsSascha Hauer2012-10-043-0/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds some basic commands to manupulate clocks on the command line. Right now we have: - clk_set_parent - clk_set_rate - clk_enable - clk_disable - clk_dump The commands work based on the clock name, otherwise they behave like the Linux Kernel C functions. clk_dump will dump the clocktree to the console. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | clk: initial common clk supportSascha Hauer2012-10-048-1/+563
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds barebox common clk support loosely based on the Kernel common clk support. differences are: - barebox does not need prepare/unprepare - no parent rate propagation for set_rate - struct clk is not really encapsulated from the drivers Along with the clk support we have support for some basic clk building blocks: - clk-fixed - clk-fixed-factor - clk-mux - clk-divider clk-fixed and clk-fixed-factor are completely generic, clk-mux and clk-divider are currently the way i.MX muxes/dividers are implemented. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | clk clkdev: Add clkdev matching based on physbaseSascha Hauer2012-10-042-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most clock/device associations can be done based on the physical base address of the corresponding device. So instead of depending on string matching add an optional possibility to associate a clock lookups with physical addresses. This also has the advantage that the lookups for devicetree based devices can be identical to the platform based devices. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | err.h: introduce IS_ERR_OR_NULLSascha Hauer2012-10-041-0/+5
| | | | | | | | | | | | | | | | | | Copied from Linux. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM i.MX25: Add function to setup chipselectSascha Hauer2012-10-043-5/+13
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM i.MX35: Add function to setup chipselectSascha Hauer2012-10-046-17/+21
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM i.MX31: Add function to setup chipselectSascha Hauer2012-10-044-23/+22
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM i.MX21: Add function to setup chipselectSascha Hauer2012-10-044-34/+19
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>