stm32: update USB buffer size for STM32F0x2

The STM32F0x2 has a 1024-byte dedicated SRAM buffer for USB rather than
a 512-byte one as previous parts.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>

BRANCH=none
BUG=chrome-os-partner:28295
TEST=make buildall

Change-Id: I9fc8d76fbaa01f2b4cb0a814314c69192a6cbb95
Reviewed-on: https://chromium-review.googlesource.com/204437
Reviewed-by: Todd Broch <tbroch@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
Vincent Palatin
2014-06-18 08:45:30 -07:00
committed by chrome-internal-fetch
parent b162ac513a
commit 635a07ddad
2 changed files with 5 additions and 0 deletions

View File

@@ -40,3 +40,6 @@
/* Reduced history because of limited RAM */
#undef CONFIG_CONSOLE_HISTORY
#define CONFIG_CONSOLE_HISTORY 3
/* STM32F0 has a larger USB RAM */
#define CONFIG_USB_RAM_SIZE 1024

View File

@@ -87,6 +87,8 @@
/* Dedicated SRAM region for USB transfers */
#define CONFIG_USB_RAM_BASE 0x40006000
#ifndef CONFIG_USB_RAM_SIZE
#define CONFIG_USB_RAM_SIZE 512
#endif
#endif /* __CROS_EC_CONFIG_CHIP_H */