summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | ARM: MXS: ocotp: Use dev_add_param_bool for parameterSascha Hauer2013-04-111-30/+4
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | USB gadget at91: Use dev_add_param_bool for vbus parameterSascha Hauer2013-04-111-16/+7
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mtd: Nand: Use dev_add_param_bool for erasebad parameterSascha Hauer2013-04-112-10/+13
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | console: Use dev_add_param_int for baudrate parameterSascha Hauer2013-04-113-25/+18
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ARM: i.MX: iim: Use dev_add_param_bool for parametersSascha Hauer2013-04-111-51/+14
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | pwm: Use dev_add_param_int for pwm parametersSascha Hauer2013-04-111-59/+30
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Cc: Robert Jarzmik <robert.jarzmik@free.fr>
| * | | param: pass param to dev_remove_paramSascha Hauer2013-04-112-13/+8
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | fb: imx-ipu-fb: Use dev_add_param_int for alpha parameterSascha Hauer2013-04-111-17/+10
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | fb: imxfb: Use dev_add_param_int for alpha parameterSascha Hauer2013-04-111-17/+9
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | fb: Use dev_add_param_bool for enable parameterSascha Hauer2013-04-112-21/+13
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ata: Use dev_add_param_bool for probe parameterSascha Hauer2013-04-112-11/+11
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mci: Use dev_add_param_int for probe parameterSascha Hauer2013-04-112-28/+12
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | treewide: Use dev_add_param_int_ro where possibleSascha Hauer2013-04-118-47/+26
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | param: remove now unused dev_[gs]et_param_ipSascha Hauer2013-04-112-32/+0
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | netconsole: use dev_add_param_* helpersSascha Hauer2013-04-111-44/+6
| | | | | | | | | | | | | | | | | | | | | | | | For shorter code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: store ethernet device parameters in deviceSascha Hauer2013-04-113-82/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rather than storing the parameters globally and trying to keep them in sync with the device parameters, store the parameters in the ethernet device directly. Also, update to dev_add_param_ip(). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | net: ksz8864: Use dev_add_param_bool for enable parameterSascha Hauer2013-04-111-19/+11
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | param: Add ip address convenience functionSascha Hauer2013-04-112-8/+100
| | | | | | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | param: Add integer and boolean parameter helpersSascha Hauer2013-04-112-0/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds convenience functions for directly registering integers and bools as device parameter. This way driver no longer have to fiddle with string handling. The format used to print the parameter is passed to the functions to be able to print parameters in a flexible way. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | param: refactor __dev_add_paramSascha Hauer2013-04-071-13/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let __dev_add_param take a previously allocated struct param_d. This helps when later other users wish to embed a struct param_d in a bigger struct. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | param: Add dev member to struct param_dSascha Hauer2013-04-062-0/+2
| |/ / | | | | | | | | | | | | | | | This will make it unnecessary to pass the dev pointer around later. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/omap'Sascha Hauer2013-05-0613-68/+193
|\ \ \
| * | | m33xx-clock: remove unused codeJan Luebbe2013-04-191-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch includes no functional change. If a configurable DDRPLL_M is required later, it should be set by the board instead of from here. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | m33xx-clock: configure PLLs based on oscillator frequencyJan Luebbe2013-04-191-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The *PLL_N values can be calculated from the OSC value. This patch includes no functional change. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | am33xx: add defines for GPIOsJan Luebbe2013-04-192-0/+8
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | beaglebone: remove stray semicolonJan Luebbe2013-04-181-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | omap: move to common bootsource frameworkJan Luebbe2013-04-186-56/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Folded fix into this patch: [PATCH] omap4 regression: set correct boot source Signed-off-by: Vicente Bergas <vicencb@gmail.com>
| * | | OMAP4: add command to select next boot device priorityVicente Bergas2013-04-115-0/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On OMAP4 SoC there is a SAR memory region (Save & Rescue) where the ROM code reads the device to boot from. This patch adds a way to set this. Signed-off-by: Vicente Bergas <vicencb@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | Merge branch 'for-next/of'Sascha Hauer2013-05-0616-148/+575
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: arch/arm/mach-imx/Makefile
| * | | | pinctrl: move imx-iomux-v1 to drivers/pinctrl/Sascha Hauer2013-04-235-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For consistency reasons. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | pinctrl: move imx-iomux-v2 to drivers/pinctrl/Sascha Hauer2013-04-235-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For consistency reasons. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | pinctrl: switch i.MX iomux-v3 support to pinctrlSascha Hauer2013-04-236-112/+229
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This switches the iomux-v3 (found on i.MX25,35,51,53,6) to pinctrl support. The old SoC specific API is kept for compatibility. The pinctrl devicetree support is enabled automatically when OFDEVICE support is available. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | Add initial pinctrl supportSascha Hauer2013-04-237-0/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a massively stripped down pinctrl support. The upper API consists of only of: int pinctrl_select_state(struct device_d *dev, const char *state); This is used to setup the pinmux for a device to a certain state. This function normally does not need to be called manually. The device core will setup the default state before probing a device. The pinctrl core has the job of handling the devicetree. It parses the pinctrl phandles for a device from devicetree, finds the correct pinctrl device and calls its set_state callback with the pinctrl setup device node. The simplicity of this pinctrl framework comes from the fact that we: - Limit usage to devicetree only for now. For non devicetree use the old legacy SoC specific APIs still can be used. - Do not parse the devicetree into internal data structures which are used by the drivers later. This adds the overhead that we may parse the devicetree multiple times for more dynamic setups, but on the other hand we do not need to parse devices from the devicetree we don't use in barebox - Do not detect resource conflicts. Since the framework mainly is a devicetree parser this would be hard to implement. It should be easy for board maintainers to avoid resource conflicts though. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | of: partitions: create bb device for nand flashesSascha Hauer2013-04-221-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For nand flashes automatically create a bb device for each partion. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | of: partitions: pass struct cdev as argumentSascha Hauer2013-04-222-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pass a struct cdev instead of the cdev name to of_parse_partitions. This is available to the caller anyway and makes it easier to use additional stuff from the cdev (like knowing whether it's a mtd device). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | of: read resource names from devicetreeSascha Hauer2013-04-221-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resources can have names and these can also be specified in the devicetree. Add support for it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | of: Allow multiple resources in 'reg' propertySascha Hauer2013-04-222-17/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some devices need multiple resources in the reg property. This patch adds support for it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | of: Add of_property_read_string_index()Sascha Hauer2013-04-222-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Directly imported from the Kernel Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | of: parse phandles before probing devicesSascha Hauer2013-04-221-7/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The phandles have to be parsed completely before registering the devices from the devicetree. Otherwise drivers can't rely on of_find_node_by_phandle in their probe. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | | Merge branch 'for-next/mxs'Sascha Hauer2013-05-062-15/+76
|\ \ \ \ \
| * | | | | MXS/MCI: simplify reset of the MCI device blockJuergen Beisert2013-04-271-14/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since a generic block reset function is a available, also the MCI driver should make use of it. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | ARM/MXS: add more ROM code related documentationJuergen Beisert2013-04-091-1/+74
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 17176c2e2bba606190d9ae51943acb5701063573 adds a test of a new RTC register flag to distinguish a system reset and a wake up event. Shame on me, I have forgotten to define the newly used flag yet. While already here, I also try to document the other flags the RTC provides. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | | Merge branch 'for-next/mtd'Sascha Hauer2013-05-063-17/+20
|\ \ \ \ \
| * | | | | mtd: update NAND manufacturer names from the kernelJan Luebbe2013-04-112-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | nand_base: detect more ONFI flashEric Bénard2013-04-111-7/+6
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | if the flash has a known type, the ONFI detection won't occur and thus we may not detect the right parameters. By testing both namd and pagesize, as done in the kernel, we can detect ONFI flash with know IDs. As an example on an i.MX53 board : - without the patch : NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron NAND 1GiB 3,3V 8-bit), page size: 4096, OOB size: 128 - with the patch : ONFI flash detected ... ONFI param page 0 valid NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron MT29F8G08ABACAWP), page size: 4096, OOB size: 224 in the first case the OOB size is wrong. Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | | | Merge branch 'for-next/misc'Sascha Hauer2013-05-0639-98/+221
|\ \ \ \ \
| * | | | | scripts: allow lines longer than 80 cols with printf() in checkpatchThomas Petazzoni2013-05-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The checkpatch.pl script is also used to validate user-space code in the scripts/ directory, so it should allow printf() lines to be longer than 80 columns. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | Don't honor initrd load addressSascha Hauer2013-05-041-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | U-Boot doesn't honor the load address specified in an initrd. Barebox shouldn't be more strict here. This unbreaks booting an uInitrd generated by Debian's flash-kernel that uses 0 as entry address where there is nothing on the i.MX53 that was used. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | bootm: Simplify initrd address handlingUwe Kleine-König2013-05-041-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | data.initrd_address = UIMAGE_SOME_ADDRESS; ... if (-L was given to bootm) data.initrd_address = address_provided_to_-L; ... if (initrd is provided as uInitrd && data.initrd_address == UIMAGE_SOME_ADDRESS) data.initrd_address = load_address_from_uInitrd; ... if (data.initrd_address == UIMAGE_SOME_ADDRESS) data.initrd_address = UIMAGE_INVALID_ADDRESS; can be simplified to: data.initrd_address = UIMAGE_INVALID_ADDRESS; ... if (-L was given to bootm) data.initrd_address = address_provided_to_-L; ... if (initrd is provided as uInitrd && data.initrd_address == UIMAGE_INVALID_ADDRESS) data.initrd_address = load_address_from_uInitrd; ... The only change introduced by this simplification is for cases where the user passes -L UIMAGE_SOME_ADDRESS or -L UIMAGE_INVALID_ADDRESS to bootm. (-L UIMAGE_SOME_ADDRESS is now used literally instead of ignored before. -L UIMAGE_INVALID_ADDRESS used to skip getting the initrd-address from the uInitrd, now the uInitrd address is honored.) Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | | | NAND: imx: Fix memory leakAlexander Shiyan2013-04-301-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>