summaryrefslogtreecommitdiffstats
path: root/board/freescale/mx53ard/mx53ard.c
Commit message (Collapse)AuthorAgeFilesLines
* mx53ard: Initialize return code with errorFabio Estevam2012-03-271-1/+1
| | | | | | | | | The variable "rc" is the return of board_eth_init() function. Initialize it with an error code, so that this function can return an error when CONFIG_SMC911X is not set. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Stefano Babic <sbabic@denx.de>
* mx53ard: Use gpio_direction_input prior to gpio_get_valueFabio Estevam2012-02-271-0/+2
| | | | | | Use gpio_direction_input prior to gpio_get_value. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
* mmc: Change board_mmc_getcd() function prototype.Thierry Reding2012-01-081-4/+5
| | | | | | | | | | | | | | | | | | | | | The new API no longer uses the extra cd parameter that was used to store the card presence state. Instead, this information is returned via the function's return value. board_mmc_getcd() returns -1 to indicate that no card-detection mechanism is implemented; 0 indicates that no card is present and 1 is returned if it was detected that a card is present. The rationale for this change can be found in the following email thread: http://lists.denx.de/pipermail/u-boot/2011-November/110180.html In summary, the old API was not consistent with the rest of the MMC API which always passes a struct mmc as the first parameter. Furthermore the cd parameter was used to mean "card absence" in some implementations and "card presence" in others. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de> Tested-by: Jason Liu <jason.hui@linaro.org>
* mx53ard: Configure the pins as GPIOs prior to using gpio_get_valueFabio Estevam2011-12-061-0/+3
| | | | | | Configure the pins as GPIO prior to using gpio_get_value. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
* mx53ard: Remove unused get_board_rev functionFabio Estevam2011-11-041-5/+0
| | | | | | No board information is passed for MX53ARD, so remove get_board_rev function. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
* mx53ard: Place machine ID into board configFabio Estevam2011-09-301-1/+0
| | | | | | Let common code set the machine ID. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
* MX5: mx53ard: make use of GPIO frameworkStefano Babic2011-09-041-4/+4
| | | | | Signed-off-by: Stefano Babic <sbabic@denx.de> CC: Fabio Estevam <fabio.estevam@freescale.com>
* Remove volatile qualifier in get_ram_size() callsAlbert ARIBAUD2011-07-171-2/+2
| | | | | | | | | Checkpatch.pl complains about the volatile qualifier in calls to get_ram_size(). Remove this qualifier in the prototype and in the calls where it is useless, and leave it only in the function body where it is needed. Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
* MX53: Add initial support for MX53ARDFabio Estevam2011-07-041-0/+306
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
OpenPOWER on IntegriCloud