Commit Graph

158696 Commits

Author SHA1 Message Date
Niu Xule
dcb6d4440a ENGR00123078-1 MX28: Add L2 Switch resources definition
L2 Switch resources definition for MX28

Signed-off-by: Niu Xule <b23300@freescale.com>
2010-08-10 11:50:16 -05:00
Jason Chen
57ee5e5981 ENGR00123400 imx53 arm2: set correct IOMUX for dvi
Set the correct IOMUX for ARM2 board.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:50:15 -05:00
Jason Chen
cedf277fe5 ENGR00122780 ipufb: rework display device setting method
Rework the display command line options to not require new option for
every new display. Add mxcdi0fb/mxcdi1fb option <fmt> and to tell system
what kind of display device is going to use.

Use "di1_primary" to make DI1 the primary display (i.e. fb0).

The display selection is done using video= parameter.

        For example on imx51:

                  di             di_fmt      video_mode
        DVI:      0              RGB24      mxcdi0fb:800x600M-16@60 etc
        DVI-HDMI: 0              RGB24      mxcdi0fb:720P60
        LVDS:     0              LVDS666    mxcdi0fb:XGA
        WVGA lcd: 1              RGB565     mxcdi1fb:800x480M-16@55
        TVE:      1              YUV444     mxcdi1fb:TV-NTSC
                                            mxcdi1fb:TV-PAL
                                            mxcdi1fb:720P60
        For example on imx53:

                  di             di_fmt      video_mode
        DVI:      0              RGB24      mxcdi0fb:800x600M-16@60 etc
        DVI-HDMI: 0              RGB24      mxcdi0fb:720P60
        WVGA lcd: 0              RGB565     mxcdi0fb:800x480M-16@55
        TVE:      1              YUV444     mxcdi1fb:TV-NTSC
                                            mxcdi1fb:TV-PAL
                                            mxcdi1fb:720P60

If you want to set NTSC tv as primary display, and make second display
DI0 as DVI 1024x768 resolution, just add

"di1_primary video=mxcdi0fb:RGB24,1024x768M-16@60 video=mxcdi1fb:YUV444,TV-NTSC"

to cmdline.

Signed-off-by: Rob Herring <r.herring@freescale.com>
Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:50:15 -05:00
Aisheng.Dong
b5db754d35 ENGR00123338 MX23: MTD block device support
Add MTD_BLOCK imx23 configuration

Signed-off-by: Aisheng.Dong <b29396@freescale.com>
2010-08-10 11:50:14 -05:00
Rob Herring
d168c16c2a ENGR00122962 ipu: don't set axi id to 1 on mx53
Setting the AXI ID on to 1 for sync display channels on MX53 causes
display flickering when system is heavily loaded.

Signed-off-by: Rob Herring <r.herring@freescale.com>
(cherry picked from commit 30df5734fcea4146b60f35238aaf5368f3392b0d)
2010-08-10 11:50:13 -05:00
Sammy He
e5f79d1a63 ENGR00123325-2 mx5x: Change default DMA zone to 96M
Change default DMA zone to 96M on mx5x

Signed-off-by: Sammy He <r62914@freescale.com>
2010-08-10 11:50:13 -05:00
Sammy He
c79730c0c0 ENGR00123325-1 Increase DMA zone to 96M on mx5x
Increase DMA zone to 96M to fix memory not enough issue with 1080p
video playback.

Signed-off-by: Sammy He <r62914@freescale.com>
2010-08-10 11:50:12 -05:00
Xie Xiaobo
19bb66e24a ENGR00123296 MX5: Fix FEC compiling error
1. One variable declaration was controlled by ARCH_MXS, but it was
used by other platforms, So remove the ARCH_MXS flags controlling.
2. Added judgement for FEC 1588 interrupt enablement.

Signed-off-by: Xie Xiaobo <X.Xie@freescale.com>
2010-08-10 11:50:12 -05:00
Xiexiaobo
9e4ac5e73b ENGR00122832-2 MX28: Support for IEEE 1588 interface functionality
Supply the 1588 support for MX28 FEC.

Signed-off-by: Xie Xiaobo <X.Xie@freescale.com>
2010-08-10 11:50:11 -05:00
Xie Xiaobo
57aafaa6ad ENGR00122832-1 MX28: Configure clock source for FEC 1588 timer
Select clock for Ethernet 1588 timer and set the divider.

Signed-off-by: Xie Xiaobo <X.Xie@freescale.com>
2010-08-10 11:50:10 -05:00
Frank Li
8fcc0e5292 ENGR00123293 iMX23 fix ssp clock is too slow
bypass bit set to wrong possition. So ssp alays use xtal.
mmc use ssp module divider instead of ssp clock source

Signed-off-by: Frank Li <Frank.Li@freescale.com>
2010-08-10 11:50:10 -05:00
Robert Lee
96783bb56e ENGR00123283 MX23: clock driver causes ssp_clk change timeout out of suspend
If you boot up and then go into suspend mode, the clk_busy_wait()
 function causes a timeout in the ssp_set_rate function because
 the rate is being set while the clock is disable
 resulting in the busy bit staying false.

Signed-off-by: Robert Lee <robert.lee@freescale.com>
2010-08-10 11:50:09 -05:00
Robert Lee
e849bc9877 ENGR00123222 MX23/MX28: Add power optimization functionality to cpufreq
MX23/MX28: Add power optimization functionality to cpufreq
Add working HCLK autoslow interface and functionality
 to cpufreq and clock driver.
Add lowering of x_clk for lowest clock speed state.
MX23: Fix 392MHz voltage value from 1475000 to 1450000.
  This lower value is all that is needed when using 130MHz hclk.
MX23: change emiclk from 120000 to 130910 for 360000 cpu entry.
 130910 allows more bandwidth and avoids momentary halting
 of sdram traffic required between emiclk changes.
MX23/28: fiix problem with previous hclk autoslow
 implementation causing a corruption of the CLKCTRL
 _HBUS register.  The regular hclk divider was getting
 set to 21 or 22 or 23 when the LCD was turned off.
  This very low speed starves the system.

Signed-off-by: Robert Lee <robert.lee@freescale.com>
2010-08-10 11:50:09 -05:00
Peter Chen
de9c60832d ENGR00122684: imx23: add nand support for updater defconfig
imx23: add nand support for and updater defconfig

Signed-off-by: Peter Chen <b29397@freescale.com>
2010-08-10 11:50:08 -05:00
Jason Liu
963774c857 ENGR00123170 Preserve NAND bad block indication
Preserve bad block indication of NAND

Signed-off-by:Jason Liu <r64343@freescale.com>
2010-08-10 11:50:07 -05:00
Nancy Chen
57d78d1a45 ENGR00123197 MX23: Fix CPU freq cannot be changed after LCD is off if mDDR used
MX23: Fix CPU frequency can not be changed after LCD is off if mDDR is used.

Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
2010-08-10 11:50:07 -05:00
Ranjani Vaidyanathan-RA5478
d4c1592ec1 ENGR00122920: Fix failure to boot from MMC slot 0 on MX51.
Disabling PLL3 was causing failure to boot from MMC slot0.
Move SDHC clocks to be sourced from PLL2 instead of PLL3.

Signed-off-by: Ranjani Vaidyanathan-RA5478 <Ranjani.Vaidyanathan@freescale.com>
2010-08-10 11:50:06 -05:00
Ranjani Vaidyanathan-RA5478
e5f82159f7 ENGR00122789: Fixed long-term video playback issue.
Fixed long-term video playback issue due to incorrect increment of
clock usecount.
Fixed various bugs associated with system entering LP-APM mode.
Fixed incorrect enabling of PLL3 that was not allowing system to enter
LP-APM mode if TVE was built in.
EMI_GARB clock needs to be enabled when certain clock dividers are changed.

Signed-off-by: Ranjani Vaidyanathan-RA5478 <Ranjani.Vaidyanathan@freescale.com>
2010-08-10 11:50:06 -05:00
Richard Zhu
57d6c987c8 ENGR00123128 MX25 wifi small data transfer error in DMA mode
Use the DMA mode in normal, and revert to PIO mode when
 there are small data transmissions.

 Signed-off-by: Richard Zhu <r65037@freescale.com>
2010-08-10 11:50:05 -05:00
Jeremy.Yao
e6b67903df ENGR00123168 : iMX23 SSP/MMC change clock setting
Change mmc clock setting to fit new clock driver

Signed-off-by: Jeremy Yao <r65161@freescale.com>
2010-08-10 11:50:05 -05:00
Jeremy.Yao
02c42f8a8c ENGR00123159: MXS AUART Unset Stick Parity Select
Unset SPS bit, allow normal parity check

Signed-off-by: Jeremy Yao <r65161@freescale.com>
2010-08-10 11:50:04 -05:00
Robert Lee
0d3e4e8356 ENGR00123125 mx23: cleanup and fixes of mach-mx23/clock.c
- add set_rate functionality for x_clk.
 Added the x_set_rate and x_round_rate functions.  A lower
 x_clk rate will be used for the lowest power 24Mhz state.
 This implementation to be added later into cpufreq but
 going ahead and providing the necessary clock driver
 functionality now.

- add enable/disable functionality to ref clocks
 Assigned the enable and disable function pointers
 of each of the *_ref_clk tables to the mx23 enable
 and disable functions.

- change lcd clock (default) parent to ref_pix
 Self explanatory.  Previously this was incorrectly
 assigned directly to the PLL which would cause
 ref_pix clock to never be gated when not being
 used which causes very small but unnecessary
 additional power usage to occur when the LCD is disabled.

- add hbus autoslow function to be used by cpufreq
 Added this function for eventual used by cpufreq driver.

- fix pll_enable() delay
This delay was changed to match delay requirements given
 in the mx23 reference manual from the definition of the
 PLLCTRL0 POWER bitfield.

- revise emi_set_rate

emi_set_rate had several small issues.
The amount of iram it was asking for was set to an
 arbitrary amount instead of being assigned to the
 size of the assembly code.  Instead, assigning it
 to the size of the assembly code.

When no changes in emiclk speed were being made, we didn't
 need to spend the time allocating iram, disabling fiqs/irqs,
 and jumping to the assembly routines  Added checks to
 minimize the time spent in emi_set_rate if then new
 clock divisors were the same as the old.

Added functionality for switching the parent between
 ref_emi_clk and ref_xtal_clk source based on the clock
 speed.

- added "set_sys_dependent_parent" functionality to allow
 the reduction some of the peripheral clocks (mainly SSP
 and GPMI) during the lowest power 24MHz cpu_clk state
 was needed to allow the PLL to turn off and achieve
 minimum power usage for that state.  The
 "set_sys_dependent_parent" functionality implements this
 functionality by checking the cpu speed and changing the
 parent as needed (but only when the ref count is zero).

- other minor cleanup

In a couple of locations, I saw the following syntax being used:

> -val &= ~(BM_CLKCTRL_FRAC_CPUFRAC << BP_CLKCTRL_FRAC_CPUFRAC);
> -val |= clkctrl_frac;

This was incorrect because the BM_ definition is already
 shifted to the correct bitfield location of the register.
  Shifting it over further by BP_ is a bug.  This bug
 didn't cause problems in these cases because the BP_
 value happended to be zero, but needed cleaning up anyway.

The mx23_raw_enable was being called without any delays
 to ensure the clock was ready for use.  Added a call
 to check the clock busy bit to ensure the clock is ready
 before being used.

-  Added clock_busy_wait function which replaced all the
 individual busy_wait handling and properly accounts for
 clocks with xtal source (which use a separate xtal
 sourced busy bit).

-  Cleaned up xtal and rtc clocks/sources functionality.

-  Added functionality to SSP and GPMI set_rate function
 to allow changing the parent clock to the xtal if the
 rate is a factor of 24MHz.

Signed-off-by: Robert Lee <robert.lee@freescale.com>
2010-08-10 11:50:03 -05:00
Jason Liu
19befe2279 ENGR00123134-3 MX53 NAND defconfig support
MX53 NAND defconfig support

Signed-off-by:Jason Liu <r64343@freescale.com>
2010-08-10 11:50:03 -05:00
Jason Liu
f470223cff ENGR00123134-2 MX53 NAND driver support
MX53 NAND driver support

Signed-off-by:Jason Liu <r64343@freescale.com>
2010-08-10 11:50:02 -05:00
Jason Liu
f1e030678c ENGR00123134-1 MX53 NAND mach support
MX53 NAND mach support

Signed-off-by:Jason Liu <r64343@freescale.com>
2010-08-10 11:50:02 -05:00
Jason Liu
a6a9ff450b ENGR00123131 NAND:Get resources from platform data
Get resources from platform data

Signed-off-by:Jason Liu <r64343@freescale.com>
2010-08-10 11:50:01 -05:00
Jason
8df2e21c22 ENGR00122142-4 MX28:Dual ENET mach support
MX28:Dual ENET mach support

Signed-off-by:Jason Liu <r64343@freescale.com>
2010-08-10 11:50:00 -05:00
Jason
c44b119b86 ENGR00122142-3 fec: Add shared mdio bus for dual MAC
MX28 has two MAC,but External PHY can only be configed by MAC0
which means PHY1 should be configed by MAC0 according to IC spec.
This patch enable dual ENET support. If want to test rootfs from
eth1, can add ip=:::::eth1:dhcp in the command line

Signed-off-by: Jason Liu <r64343@freescale.com>
Signed-off-by: Rob Herring <r.herring@freescale.com>
2010-08-10 11:50:00 -05:00
Rob Herring
029dc724df ENGR00122142-2 imx: fix platforms using fec RMII mode
Add FEC phy interface mode platform data for platforms using RMII.

Signed-off-by: Rob Herring <r.herring@freescale.com>
2010-08-10 11:49:59 -05:00
Rob Herring
6615c0116f ENGR00122142-1 fec: fix RMII with phylib
This fixes RMII support which was broken by phylib support.

Signed-off-by: Rob Herring <r.herring@freescale.com>
2010-08-10 11:49:59 -05:00
Bryan Wu
a1d1a6ba44 UBUNTU: SAUCE: (upstream) netdev/fec: fix performance impact from mdio poll operation
BugLink: http://bugs.launchpad.net/bugs/546649
BugLink: http://bugs.launchpad.net/bugs/457878

After introducing phylib supporting, users experienced performace drop. That is
because of the mdio polling operation of phylib. Use msleep to replace the busy
waiting cpu_relax() and remove the warning message.

Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Acked-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
2010-08-10 11:49:58 -05:00
Bryan Wu
d3cb95c9ed UBUNTU: SAUCE: (upstream) netdev/fec: fix phy_speed caculating
BugLink: http://bugs.launchpad.net/bugs/546649
BugLink: http://bugs.launchpad.net/bugs/457878

 - remove duplicated phy_speed caculation
 - fix the phy_speed caculation according to the DataSheet

Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Acked-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
2010-08-10 11:49:57 -05:00
Bryan Wu
7299891410 netdev/fec: fix compiling warning
BugLink: http://bugs.launchpad.net/bugs/457878

Missed to set .ndo_do_ioctl as fec_enet_ioctl, so will generate a compiling
warning due to nobody uses fec_enet_ioctl. This patch fixed that.

Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Acked-by: Amit Kucheria <amit.kucheria@canonical.com>
Acked-by: Colin King <colin.king@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2010-08-10 11:49:57 -05:00
Bryan Wu
e94b913d8e netdev/fec.c: add phylib supporting to enable carrier detection
netdev/fec.c: add phylib supporting to enable carrier detection

BugLink: http://bugs.launchpad.net/bugs/457878

 - removed old MII phy control code
 - add phylib supporting
 - add ethtool interface to make user space NetworkManager works

This patch is ready for upstream, it will be pushed to upstream for merge

Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Acked-by: Amit Kucheria <amit.kucheria@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2010-08-10 11:49:56 -05:00
Patrick Turley
0b7e7c7578 ENGR00122964 Second pass at unified i.MX23/i.MX28 NAND Flash driver
Deleted the old drivers.

Broke the driver into separate files, for readability and to isolate
hardware dependencies.

Fixed bad block problems in the boot area for the i.MX23.

At this writing, UBI can't handle MTDs larger than 2GiB. If the
general use partition is larger than 2GiB, the driver will create
sub-partitions, none of which are larger than 2GiB.

Updated the default configs for the i.MX23 and i.MX28.

Other, miscellaneous changes.

Signed-off-by: Patrick Turley <patrick.turley@freescale.com>
2010-08-10 11:49:55 -05:00
Liu Ying
9ba5a62a58 ENGR00123129 IPUv3:Enable DMFC watermark
Enable IDMAC WM enable bit when enable corresponding
DMFC channel's watermark.

Signed-off-by: Liu Ying <b17645@freescale.com>
2010-08-10 11:49:55 -05:00
Zhou Jingyu
4a56bf5a1b ENGR00122023 MX23 Fix build error for power supply driver
Fix build error debug options selected for power driver

Signed-off-by: Zhou Jingyu <Jingyu.Zhou@freescale.com>
2010-08-10 11:49:54 -05:00
Liu Ying
f11df386cc ENGR00122474 IPUv3:Check IDMAC's EBA/UBO/VBO/ILO 8B aligned
IDMAC's EBA/UBO/VBO/ILO are 8-byte aligned.
This patch will check the values for EBA/UBO/VBO/ILO 8-byte aligned.
If not, the driver will give out warning information.

Signed-off-by: Liu Ying <b17645@freescale.com>
2010-08-10 11:49:54 -05:00
Lily Zhang
7dd4a59add ENGR00123072-3 MX31: Add keypad mem resource
Add keypad memory resource in MX31 3-stack platform

Signed-off-by: Lily Zhang <r58066@freescale.com>
2010-08-10 11:49:53 -05:00
Lily Zhang
d05108c1ca ENGR00123072-2 MX25: Add Keypad mem resource
Add Keypad mem resource in MX25 platform

Signed-off-by: Lily Zhang <r58066@freescale.com>
2010-08-10 11:49:52 -05:00
Lily Zhang
0d3dd29788 ENGR00123072-1 Keypad: get mem from platform resource
1. Get mem from platform resource in mxc keypad driver
2. Remove unnecessory header file

Signed-off-by: Lily Zhang <r58066@freescale.com>
2010-08-10 11:49:52 -05:00
Nancy Chen
847b9ff26b ENGR00123086 MX23: CPU frequency can not be changed to 64 MHz
MX23: CPU frequency can not be changed to 64 MHz.

Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
2010-08-10 11:49:51 -05:00
Robert Lee
9935572c5a ENGR00122951 MX23 w/ mDDR: EMI 24MHz clock changes caused crashes
MX23 w/ mDDR: EMI clock change code causes crashes with 24MHz state transitions.

Signed-off-by: Robert Lee <robert.lee@freescale.com>
2010-08-10 11:49:51 -05:00
Alan Tull
4f61210f20 ENGR00123047 move atheros fw to firmware imx repository
Firmware will be copied to the /lib/firmware/ath6k/AR6102 directory
so change the path in the driver.

Signed-off-by: Alan Tull <r80115@freescale.com>
2010-08-10 11:49:50 -05:00
Dinh Nguyen
1be09a9131 ENGR00122838 gadget: Fix bitfield for calculating maximum packet size
The max packet length bit mask used for isochronous endpoints should
be 0x7FF instead of 0x8FF. 0x8FF will actually clear higher-order bits
in the max packet length field.

Signed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com>
2010-08-10 11:49:50 -05:00
Lily Zhang
e987c86b40 ENGR00123071 MX53: Remove iomux warning in boot
1. Remove iomux warning in boot
2. Put I2C PIN configurations into table

Signed-off-by: Lily Zhang <r58066@freescale.com>
2010-08-10 11:49:49 -05:00
Nancy Chen
14d285d3a9 ENGR00122696 MX23: cpufreq-set can not work when fb0 is blank
Fixed cpufreq-set can not work when fb0 is blank.
Fixed incorrect clock dividers

Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
2010-08-10 11:49:48 -05:00
Lily Zhang
f039620bae ENGR00123022 MX53: Add SPI NOR support
Add SPI NOR support in MX53 EVK

Signed-off-by: Lily Zhang <r58066@freescale.com>
2010-08-10 11:49:48 -05:00
Xinyu Chen
6259fab2ec ENGR00123017 MX53 Add support for MLB
Add support for MLB by adding MLB MSL codes.

Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
2010-08-10 11:49:47 -05:00
Jason Chen
c397a8de65 ENGR00122966 ipuv3 fb: set correct stride for nonstand fmt
Set correct stride for non-interleave fmt, if not, will cause v4l output
play uncorrectly for ic_bypass mode.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:49:47 -05:00